Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ghc 7.10.3 is outdated and currently only only supports x86_64. #1024

Open
dak180 opened this issue May 9, 2023 · 3 comments
Open

ghc 7.10.3 is outdated and currently only only supports x86_64. #1024

dak180 opened this issue May 9, 2023 · 3 comments
Labels
arm64 Build issues and fixes for Apple Silicon new upstream Package has an updated upstream version

Comments

@dak180
Copy link
Member

dak180 commented May 9, 2023

ghc-9.2.7 is now available and has native m1 support.

@dak180 dak180 added new upstream Package has an updated upstream version arm64 Build issues and fixes for Apple Silicon labels May 9, 2023
@nieder
Copy link
Member

nieder commented May 10, 2023

It's going to be a little tough. Our package currently uses the prebuilt binary tarball because IIRC the build process is incredibly hard. So we would need to variant the source download on %m.
https://downloads.haskell.org/~ghc/9.6.1/

Also, all the dylibs have been renamed and are now called something like this libHSfilepath-1.4.2.1-ghc8.10.7.dylib w/out the hash that our current version has libHSfilepath-1.4.0.0-Ey7a1in9roBAE8bUFJ5R9m-ghc7.10.3.dylib So an upgrade would technically be in violation of the Shlibs policy because the ghc mods all link to them. They also Depend on the specific micro version they were built against.

@barracuda156
Copy link

For the record, the last version to build on powerpc, as of now, is 7.6.3, so to support all archs, there must be several simultaneous versions (obviously, no version supports arm64 and ppc at the same time).

@nieder
Copy link
Member

nieder commented Nov 3, 2024

Fink can handle different versions for different architectures (or macOS releases) if necessary.
The packaging problem is that the binaries hardcode the ghc version name and a hash into the dylib install_name, so updating will immediately break any ghc mod built to the previous release.
We can package an arm64 version of ghc that's current, but then it'll be stuck at that release for the same reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm64 Build issues and fixes for Apple Silicon new upstream Package has an updated upstream version
Projects
None yet
Development

No branches or pull requests

3 participants