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

dev-lang/ghc-9.2.6 fails to build on musl/clang profile #1399

Closed
vimproved opened this issue Mar 16, 2023 · 3 comments
Closed

dev-lang/ghc-9.2.6 fails to build on musl/clang profile #1399

vimproved opened this issue Mar 16, 2023 · 3 comments

Comments

@vimproved
Copy link
Contributor

build.log: https://0x0.st/H-cA.log
emerge --info: https://0x0.st/H-ca.txt

The error in question appears to be this: hsc2hs: libraries/base/dist-install/build/GHC/Stats_hsc_make: createProcess: posix_spawnp: does not exist (No such file or directory) libraries/array/ghc.mk:4: libraries/array/dist-install/build/.depend-v-dyn.c_asm: No such file or directory

Also, the ebuild for ghc-9.2.6 does not respect CC for me, and fails without having sys-devel/clang-toolchain-symlinks[gcc-symlinks] installed.

@formula-spectre
Copy link

+1
this is my log; it's similar
https://0x0.st/H-m_.log

@hololeap
Copy link
Member

hololeap commented Mar 17, 2023

I didn't have any luck bootstrapping our ghc-9.0.2 ebuild from the ::clang-musl version of ghc-9.0.2

ghc-9.2.* is going to be even worse off because there hasn't been any effort to enable the LLVM backend. I am hoping that hadrian's "flavour transformers" will make this easier than it has been with make.

Once #1397 has hadrian fleshed out a bit better, I would like to work on getting it backported to ghc-9.2.6, which will hopefully help get the ebuild working with musl/clang.

This is the roadmap for now, but any extra help is appreciated, of course.


Related: #1368

@vimproved
Copy link
Contributor Author

vimproved commented Mar 17, 2023

::clang-musl now has 9.2.6, I'll attempt to try it out. Hopefully Hadrian fixes some stuff though :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants