Closed spencels closed 5 years ago
Thanks for the report! Curious that stack's build would have different behavior for this than cabal - they are both using the Cabal library to do linking. Which version of cabal are you using?
Cabal 1.24.0.2 (vs. Stack's 1.24.2.0)
ran into the same problem. In my case, it's because the binutils. after I remove it (brew uninstall binutils), it all went ok.
@spencels — I'm going to close this, but do reopen if this still affects you.
I encountered this after using brew
to compile the grpc libraries. Completely removing any homebrew binutils
installations fixed it for me.
Removing binutils
in my case only got me part of the way there. After removing them I was getting errors saying that /usr/local/bin/ar
and /usr/local/bin/strip
could not be found; symlinking the /usr/bin/
analogues to /usr/local/bin
got rid of the errors I was seeing (at least in my toy examples).
same, problem, trying get going with haskell learning.
General summary/comments (optional)
Stack on OS X is unable to build projects due to linker errors: "ignoring file, file was built for archive which is not the architecture being linked (x86_64)
Despite this,
cabal build
succeeds.stack ghci
also works and allows me to import compiled packages.Steps to reproduce
Expected
Successful build.
Actual
Note: I've replaced my username in the above logs with the string "$USER".
The
--verbose
flag doesn't look like it gives any additional info past whatld
returned. I can post it if it is wanted.Stack version
Method of installation
Tried both:
Additional info