Closed voidus closed 4 years ago
If anybody is more knowledgeable about ghc and stuff, I would be willing to pair on debugging this.
This looks the same as https://github.com/tweag/ormolu/issues/470, but the workaround there assumes you're building ormolu with cabal
. I'm building it with nix directly (described in the README) which makes the workaround hard to implement.
I guess it wasn't that hard to implement:
ormolu = nixpkgs.haskell.packages."${ormoluCompiler}".ormolu.overrideAttrs (
oldAttrs: rec {
configureFlags = oldAttrs.configureFlags ++ [ "--ghc-option=-optP-Wno-nonportable-include-path" ];
}
);
but perhaps that ghc-option should be in the default.nix if it allows building on more OSes.
@lrworth Do you want to open a PR?
Absolutely I do.
Describe the bug There is an error about path case (which I don't think breaks the build) and a CPP-related one (which I think is the problem). This might as well be a ghc+macos issue, but I don't know how to diagnose this.
The error messages are:
Full log attached: buildlog.txt
To Reproduce
Expected behavior Successful build
Environment
MacOS Catalina 10.15.4
git show | head -5
Fix non-idempotent transformation of partly documented data definition
Additional context I strongly suspect this is related to the system cc, since I cannot even build old versions (sampled a few back up to september). Any guidance on how to debug would be appreciated.