#4366: in-tree GMP build problem with shared libraries
-------------------------------+--------------------------------------------
Reporter: simonmar | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 6.13
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Linux | Blocking:
Architecture: x86_64 (amd64) | Failure: Building GHC failed
-------------------------------+--------------------------------------------
Reported by Vivian McPhail <[email protected]> on glasgow-
haskell-users:
{{{
Trying to build rc1 from source
linux x86_64
BuildFlavour = perf
It seems that the -fPIC flag is set, but an error still occurs (
/usr/bin/ld: libraries/integer-gmp/gmp/objs/abs.o: relocation R_X86_64_32
against `.text' can not be used when making a shared object; recompile
with -fPIC
)
"inplace/bin/ghc-stage1" -fPIC -dynamic -O -H64m -package-name
base-4.3.0.0 -hide-all-packages -i -ilibraries/base/. -ilibraries/base
/dist-install/build -ilibraries/base/dist-install/build/autogen
-Ilibraries/base/dist-install/build -Ilibraries/base/dist-
install/build/autogen -Ilibraries/base/include -optP-
DOPTIMISE_INTEGER_GCD_LCM -optP-include -optPlibraries/base/dist-
install/build/autogen/cabal_macros.h -package ghc-prim-0.2.0.0 -package
integer-gmp-0.2.0.2 -package rts-1.0 -package-name base -XMagicHash
-XExistentialQuantification -XRank2Types -XScopedTypeVariables
-XUnboxedTuples -XForeignFunctionInterface -XUnliftedFFITypes
-XDeriveDataTypeable -XGeneralizedNewtypeDeriving -XFlexibleInstances
-XStandaloneDeriving -XPatternGuards -XEmptyDataDecls -XNoImplicitPrelude
-XCPP -no-user-package-conf -rtsopts -O2 -XGenerics -fno-warn-deprecated-
flags -odir libraries/base/dist-install/build -hidir libraries/base
/dist-install/build -stubdir libraries/base/dist-install/build -hisuf
dyn_hi -osuf dyn_o -hcsuf dyn_hc -c libraries/base/./Data/Typeable.hs-
boot -o libraries/base/dist-install/build/Data/Typeable.dyn_o-boot
/usr/bin/ld: libraries/integer-gmp/gmp/objs/abs.o: relocation R_X86_64_32
against `.text' can not be used when making a shared object; recompile
with -fPIC
libraries/integer-gmp/gmp/objs/abs.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libraries/integer-gmp/dist-install/build/libHSinteger-
gmp-0.2.0.2-ghc7.0.0.20100924.so] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4366>
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