Changes between Initial Version and Version 1 of Ticket #5093


Ignore:
Timestamp:
Apr 12, 2011 3:23:16 PM (4 years ago)
Author:
igloo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5093 – Description

    initial v1  
    11Hi, I have been trying to build ghc 7.0.3 from source, but the configure script itself always fails when it tries to build ghc-pwd with the error "cannot find -lgmp". I have gmp installed in a non-standard directory, but I have copied mk/build.mk.sample to mk/build.mk and added 
    2  
     2{{{ 
    33EXTRA_CABAL_CONFIGURE_FLAGS = --extra-include-dirs=MY_INCLUDE_DIR \ 
    44                              --extra-lib-dirs=MY_LIB_DIR 
    5  
     5}}} 
    66to the end. Moreover, I have used  
    7  
     7{{{ 
    88--with-gmp-includes=MY_INCLUDE_DIR --with-gmp-libraries=MY_LIB_DIR 
    9  
     9}}} 
    1010as the configure option. Yet, the configure script fails every time at the attempt to build ghc-pwd with the error message "cannot find -lgmp". If I manually modify "configure" to add -LMY_LIB_DIR to the command to build ghc-pwd, then the configure can succeed, but the make will fail when it tries to link ghc-cabal, with the same error. 
    1111