[GHC] #4112: Building GHC with local libgmp.a fails
GHC
cvs-ghc at haskell.org
Thu Jun 3 10:46:24 EDT 2010
#4112: Building GHC with local libgmp.a fails
-------------------------------+--------------------------------------------
Reporter: Itkovian | Owner:
Type: bug | Status: new
Priority: normal | Component: Build System
Version: 6.13 | Keywords: libgmp, hsc2hs, hsc
Os: Linux | Testcase:
Architecture: x86_64 (amd64) | Failure: Building GHC failed
-------------------------------+--------------------------------------------
Comment(by Itkovian):
A simple workaround this bug is:
diff -rN old-ghc.darcs/utils/ghc-cabal/ghc-cabal.hs new-ghc.darcs/utils
/ghc-cabal/ghc-cabal.hs
335a336,339
> -- XXX Ugly hack to get the --config-option=--with-gmp-libraries
into the DEP_LIB_DIRS
> -- This is required when libgmp.a is not residing in the usual
place, i.e., /usr/lib
> let extraGmpLibLocation = catMaybes $ map (stripPrefix
"--configure-option=--with-gmp-libraries=") config_args
>
363c367
< variablePrefix ++ "_DEP_LIB_DIRS = " ++ unwords (wrap
$ forDeps Installed.libraryDirs),
---
> variablePrefix ++ "_DEP_LIB_DIRS = " ++ unwords (wrap
$ forDeps Installed.libraryDirs) ++ " " ++ unwords (wrap
extraGmpLibLocation),
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4112#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list