#5093: ghc source build cannot find -lgmp even with the build.mk changes and
configure options
----------------------------------+-----------------------------------------
Reporter: guest | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Build System | Version: 7.0.3
Resolution: invalid | Keywords: gmp
Testcase: | Blockedby:
Difficulty: | Os: Linux
Blocking: | Architecture: x86_64 (amd64)
Failure: Building GHC failed |
----------------------------------+-----------------------------------------
Comment(by PHO):
This may slightly be off-topic, but I want to point out that
{{{EXTRA_CABAL_CONFIGURE_FLAGS}}} is no longer effective since {{{rules
/build-package-data.mk}}} does not pass it to {{{cabal configure}}}. I
think the following instruction at the bottom of
http://www.haskell.org/ghc/download_ghc_7_0_3#sources needs to be updated
somehow:
If you have C libraries installed somewhere non-standard then you will
need to put something like this in mk/build.mk before building:
EXTRA_CABAL_CONFIGURE_FLAGS = --extra-include-dirs=/usr/local/include
--extra-lib-dirs=/usr/local/lib
I admit this is even more off-topic but I think the top-level ./configure
should also accept {{{--with-curses-includes=}}} and {{{--with-curses-
libraries=}}} as {{{libraries/terminfo}}} may need them. {{{rules/build-
package-data.mk}}} should append them to {{{$1_$2_CONFIGURE_OPTS}}} just
like how {{{--with-gmp-includes}}} and such are handled.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5093#comment:5>
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