-
Notifications
You must be signed in to change notification settings - Fork 704
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
error: collect2: fatal error: cannot find 'ld' #7341
Comments
@mbucc thanks for raising this. Does the build work with Stack? |
I could not get it to work with Stack either in this environment. However, I did not record the error. I do know it was a different problem. |
error is slightly misleading, your compiling with |
Does this fail with raw ghc as well? If so we should close as not our issue. |
Pasting the .cabal file and also a log with -v2 verbosity would help, too. I had success compiling on Alpine, but that was statically, so perhaps that makes a difference. |
Also, a repro, e.g., using https://github.com/utdemir/ghc-musl, would be invaluable. @mbucc: when you can provide any of these, or any further info, please kindly re-open. |
@Mikolaj I believe my original bug report includes everything you need to reproduce the issue. I'll leave it to you to reopen if you think it is worth the effort. This is no longer an itch I need to scratch. Thanks! |
@mbucc: did I miss the .cabal file you used? Did you manage to reproduce with the docker image I provided or any other way accessible without installing Alpine? |
Describe the bug
With the same sources,
cabal build
works on OSX but fails on Alpine Linux.To Reproduce
./app/Main.hs
./app/Lib.hs
Expected behavior
It should compile.
System information
The text was updated successfully, but these errors were encountered: