Open kayhide opened 5 years ago
I wrote this patch and solved the gcc version detection.
But I could not find out how to apply this patch properly in the process of nix build.
Adding this patch to the ghc-patches
on overlays/bootstrap.nix
looked to work but did not.
Any suggestion to make it work?
Here is the branch of what I did: https://github.com/kayhide/haskell.nix/tree/patch-macos-gcc-version
I made a progress.
The problem was actually triggered by a derivation which comes from old-ghc-nix.
On that repo, I successfully applied a patch and built bindist-version
on macOS.
I am going to open a PR there.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I got hit by the problem which is reported on https://gitlab.haskell.org/ghc/ghc/issues/16620 and failed to bootstrap.
When cloning this repository and running the following command:
It failed while building
bindist-version
and raised the following error:I found that the version detection was not working:
This is because my
$CC
is reporting the CUDA version along with the compiler version:This CUDA related problem is also reported https://gitlab.haskell.org/ghc/ghc/issues/14526 .
I am on: