Hi,<br><br><div class="gmail_quote">On 6 October 2010 01:02, Simon Marlow <span dir="ltr">&lt;<a href="mailto:marlowsd@gmail.com">marlowsd@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 29/09/2010 07:25, Vivian McPhail wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Trying to build rc1 from source<br>
<br>
linux x86_64<br>
BuildFlavour = perf<br>
<br>
It seems that the -fPIC flag is set, but an error still occurs (<br>
/usr/bin/ld: libraries/integer-gmp/gmp/objs/abs.o: relocation<br>
R_X86_64_32 against `.text&#39; can not be used when making a shared object;<br>
recompile with -fPIC<br>
)<br>
</blockquote>
<br>
Normally the GMP library would not be built, because it should be installed on your system.  However, if you don&#39;t have the right package installed (e.g. libgmp3-dev on Debian/Ubuntu), then the GHC build system will automatically build GMP.<br>

<br></blockquote><div><br>
Just to let you know, libgmp3-dev is already installed (Debian
package).  Could there be a problem with (debian) package detection? <br><br>Vivian<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Perhaps there is a problem with using our copy of GMP when building shared libraries; we&#39;ll look into that.  In the meantime you should be able to work around the problem by installing the GMP development libraries on your machine.<br>

<br>
Cheers,<br>
        Simon<br>
<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&quot;inplace/bin/ghc-stage1&quot; -fPIC -dynamic  -O -H64m    -package-name<br>
base-4.3.0.0 -hide-all-packages -i -ilibraries/base/.<br>
-ilibraries/base/dist-install/build<br>
-ilibraries/base/dist-install/build/autogen<br>
-Ilibraries/base/dist-install/build<br>
-Ilibraries/base/dist-install/build/autogen -Ilibraries/base/include<br>
-optP-DOPTIMISE_INTEGER_GCD_LCM -optP-include<br>
-optPlibraries/base/dist-install/build/autogen/cabal_macros.h -package<br>
ghc-prim-0.2.0.0 -package integer-gmp-0.2.0.2 -package rts-1.0<br>
-package-name base -XMagicHash -XExistentialQuantification -XRank2Types<br>
-XScopedTypeVariables -XUnboxedTuples -XForeignFunctionInterface<br>
-XUnliftedFFITypes -XDeriveDataTypeable -XGeneralizedNewtypeDeriving<br>
-XFlexibleInstances -XStandaloneDeriving -XPatternGuards<br>
-XEmptyDataDecls -XNoImplicitPrelude -XCPP -no-user-package-conf<br>
-rtsopts -O2 -XGenerics -fno-warn-deprecated-flags     -odir<br>
libraries/base/dist-install/build -hidir<br>
libraries/base/dist-install/build -stubdir<br>
libraries/base/dist-install/build -hisuf dyn_hi -osuf  dyn_o -hcsuf<br>
dyn_hc -c libraries/base/./Data/Typeable.hs-boot -o<br>
libraries/base/dist-install/build/Data/Typeable.dyn_o-boot<br>
/usr/bin/ld: libraries/integer-gmp/gmp/objs/abs.o: relocation<br>
R_X86_64_32 against `.text&#39; can not be used when making a shared object;<br>
recompile with -fPIC<br>
libraries/integer-gmp/gmp/objs/abs.o: could not read symbols: Bad value<br>
collect2: ld returned 1 exit status<br>
make[1]: ***<br>
[libraries/integer-gmp/dist-install/build/<a href="http://libHSinteger-gmp-0.2.0.2-ghc7.0.0.20100924.so" target="_blank">libHSinteger-gmp-0.2.0.2-ghc7.0.0.20100924.so</a><br>
&lt;<a href="http://libHSinteger-gmp-0.2.0.2-ghc7.0.0.20100924.so" target="_blank">http://libHSinteger-gmp-0.2.0.2-ghc7.0.0.20100924.so</a>&gt;] Error 1<br>
make[1]: *** Waiting for unfinished jobs....<br>
make: *** [all] Error 2<br>
<br>
Vivian<div class="im"><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Glasgow-haskell-users mailing list<br>
<a href="mailto:Glasgow-haskell-users@haskell.org" target="_blank">Glasgow-haskell-users@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
</div></blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>---<br>yolar et elver.<br>---<br><br>DISCLAIMER<br><br>This transmission contains information that may be confidential. It is intended for the named addressee only. Unless you are the named addressee you may not copy or use it or disclose it to anyone else.<br>
<br>