
I'm guessing this is the same problem with gmp on OS X, but I got it
during the ./configure step, so thought I'd pass along the error
message:
mba:ghc-8.0.0.20160111 xich$ ./configure --prefix=/Users/xich/projects/ghc8
checking for path to top of build tree... dyld: Library not loaded:
/usr/local/opt/gmp/lib/libgmp.10.dylib
Referenced from:
/Users/xich/projects/ghc-8.0.0.20160111/utils/ghc-pwd/dist-install/build/tmp/ghc-pwd
Reason: image not found
configure: error: cannot determine current directory
You made reference to the wiki build instructions... do you have a
link to the ones you mean? I can try following them.
On Wed, Jan 13, 2016 at 2:52 PM, Ben Gamari
George Colpitts
writes: installs fine on mac but cabal install vector fails on primitive, looks to me like gmp library is not provided
cabal install vector Resolving dependencies... Configuring primitive-0.6.1.0... Failed to install primitive-0.6.1.0 Build log ( /Users/gcolpitts/.cabal/logs/primitive-0.6.1.0.log ): cabal: Error: some packages failed to install: primitive-0.6.1.0 failed during the configure step. The exception was: user error ('/usr/local/bin/ghc' exited with an error: *ld: library not found for -lgmp* collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) ) vector-0.11.0.0 depends on primitive-0.6.1.0 which failed to install.
The issue here appears to be that the build was compiled against the host's libgmp on account of the the Wiki build instructions [1] being out of date. I've fixed this particular inaccuracy, but it would be great if someone familiar with Darwin could take a close look at this page: do a build of their own, work through the build instructions, and ensure that the build instructions are still accurate, fixing any issues.
George or Carter, perhaps one of you could pick this up?
Cheers,
- Ben
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs