#957: Build failure in Cabal/cabal-setup: -lgmp doesn't honor LDFLAGS
----------------------------------+-----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: x86
Os: FreeBSD |
----------------------------------+-----------------------------------------
Comment (by [EMAIL PROTECTED]):
A brief update: later on in the compilation, a similar error happened:
{{{
gmake -f Makefile.ghcbin -wr HS_PROG=stage2/ghc-6.6 stage2/ghc-6.6
gmake[3]: Entering directory `/usr/home/tim/local/src/ghc-6.6/compiler'
../compiler/stage1/ghc-inplace -H16m -O -package ghc -Istage2 -cpp
-fglasgow-exts -fno-generics -Rghc-timing -I. -IcodeGen -InativeGen
-Iparser -Rghc-timing -DGHCI -DBREAKPOINT -threaded -c main/Main.hs -o
stage2/main/Main.o -ohi stage2/main/Main.hi
<<ghc: 231729244 bytes, 428 GCs, 7894881/18966432 avg/max bytes residency
(5 samples), 38M in use, 0.00 INIT (0.00 elapsed), 1.20 MUT (3.94
elapsed), 1.16 GC (1.65 elapsed) :ghc>>
../compiler/stage1/ghc-inplace -o stage2/ghc-6.6 -H16m -O -package ghc
-Istage2 -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -IcodeGen
-InativeGen -Iparser -Rghc-timing -DGHCI -DBREAKPOINT -threaded
stage2/main/Main.o
/usr/bin/ld: cannot find -lgmp
<<ghc: 18037404 bytes, 3 GCs, 101480/101480 avg/max bytes residency (1
samples), 15M in use, 0.00 INIT (0.00 elapsed), 0.04 MUT (7.54 elapsed),
0.02 GC (0.02 elapsed) :ghc>>
gmake[3]: *** [stage2/ghc-6.6] Error 1
gmake[3]: Leaving directory `/usr/home/tim/local/src/ghc-6.6/compiler'
gmake[2]: *** [stage2/ghc-6.6] Error 2
gmake[2]: Leaving directory `/usr/home/tim/local/src/ghc-6.6/compiler'
gmake[1]: *** [stage2] Error 2
gmake[1]: Leaving directory `/usr/home/tim/local/src/ghc-6.6'
gmake: *** [bootstrap2] Error 2
}}}
Again, I was able to continue the compilation after manually executing the
failing command with an additional -L/usr/local/lib.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/957>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs