Patch breaks build: Windows DLLs: Tag imported gmp symbols with
the package they're from
Ben Lippmeier
Ben.Lippmeier at anu.edu.au
Mon Nov 23 18:26:43 EST 2009
Gah, sorry. I tested it on x86/Windows and x86/Linux but not x86_64. I'll send an inverse.
Ben.
On 24/11/2009, at 8:56 , Ian Lynagh wrote:
>
> Hi Ben,
>
> This patch:
>
> Sat Nov 21 05:43:13 GMT 2009 Ben.Lippmeier at anu.edu.au
> * Windows DLLs: Tag imported gmp symbols with the package they're from.
>
> breaks the build for me on amd64/Linux:
>
> "inplace/bin/ghc-stage1" libraries/integer-gmp/dist-install/build/GHC/Integer.dyn_o libraries/integer-gmp/dist-install/build/GHC/Integer/GMP/Internals.dyn_o libraries/integer-gmp/dist-install/build/GHC/Integer/Type.dyn_o libraries/integer-gmp/dist-install/build/cbits/gmp-wrappers.dyn_o libraries/integer-gmp/dist-install/build/cbits/cbits.dyn_o `/usr/bin/find libraries/integer-gmp/dist-install/build -name "*_stub.dyn_o" -print` -shared -dynamic -dynload deploy -no-auto-link-packages -packageghc-prim-0.2.0.0 -o libraries/integer-gmp/dist-install/build/libHSinteger-gmp-0.2.0.0-ghc6.13.20091123.so
> [...]
> /usr/bin/ld: libraries/integer-gmp/dist-install/build/cbits/gmp-wrappers.dyn_o: relocation R_X86_64_PC32 against `__gmpz_init' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> make[1]: *** [libraries/integer-gmp/dist-install/build/libHSinteger-gmp-0.2.0.0-ghc6.13.20091123.so] Error 1
>
>
> Thanks
> Ian
>
More information about the Cvs-ghc
mailing list