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, haskell infra: #40642 direct to master #40929
Conversation
Just like with the other `--extra-*` flags, cc/ld-wrapper already handles this, but we need to make Cabal aware so that the haskell builds have the correct metadata.
…Inputs This is because they are just for Setup.hs, so they are just used at build time and completely isolated from the normal components' dependencies. This was previous implemented in 8a8f040, but reverted in e69c7f5 because it broken setup-depends non-cross in haskell shell environments (custom Setup.hs in cross shell environments has never worked). This version adds a special native exception to avoid that breakage.
…taticlib The reason why this does not work is not that we can't built static objects, we can, but we can't use `-staticlib` on GHC on windows. `-staticlib` rolls all dependencies into a combined archive. While this would work on windows if we used gnu ar and MRI script, GHC can't rely on GNU ar, and as such has a quick archive concatenation module for GNU and BSD archives only.
Shell glob works even as the exact set of executable (filenames) varries beween configuations.
nixpkgs#37012 and nixpkgs#37707 introduces the setup-hooks for libiconv, which inject `-liconv` into the `NIX_LDFLAGS`. This breaks horribly on windows where the linker end up having no idea how to linke `-liconv`. The configure.ac file specifically ignores libiconv on windows.
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: ghc Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: ghc Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: ghc Partial log (click to expand)
|
So I'm seeing build failures w/ghc on master-- has this been confirmed to work (x86_64, non-cross, Linux)? If so I'll go debug why I'm seeing failures, but wanted to check things are expected to work before starting that adventure xD. |
I posted this on IRC, but for anyone following here: I've confirmed the failure on another machine :(. LMK if anyone's not seeing it...? Full log (warning, 16M): https://gist.github.com/dtzWill/e17a89191bb9d5be25ddd5339b99e822 |
Worrisome. And sorry. I built some GHC on mac for sure. Building more now. Maybe I thought that used the generic builder from |
No worries, I have plenty of rebuilds before this become my blocking point xD. GL sorting it out, thanks for taking a look! |
ghc is broken on I'll revert this change. |
ghc, haskell-infra: NixOS#40929 take 2
…ross-ghc-for-master"" This reverts commit 29bb31b.
Motivation for this change
#40642 but not to staging so @peti can merge it to
haskell-updates
and then master. [Be sure to merge not rebase or the commits won't be shared with staging.]@peti I removed the staging merge, and then this merges with master cleanly.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)