Recompile with -fPIC (was "building a patched ghc")
José Pedro Magalhães
jpm at cs.uu.nl
Fri Feb 18 11:34:03 CET 2011
Hi all,
I'm getting the same error as Alexy below in some 64bit linux system. What
can I do? Adding -fPIC and also -dynamic does not seem to solve the problem.
Also, this only happens with a perf build; devel1 works fine.
Thanks,
Pedro
On Sat, Jun 26, 2010 at 05:56, braver <deliverable at gmail.com> wrote:
> An attempt to build the trunk gets me this:
>
> /opt/portage/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-
> pc-linux-gnu/bin/ld: rts/dist/build/RtsStartup.dyn_o: relocation
> R_X86_64_PC32 against symbol `StgRun' can not be used when making a
> shared object; recompile with -fPIC
>
> -- I use prefix portage on a CentOS box, admittedly a non-standard
> setup. Its gcc is found first and it wants -fPIC... Should I just
> add it to CFLAGS or what?
>
> -- Alexy
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20110218/ab54bcc4/attachment-0001.htm>
More information about the Glasgow-haskell-users
mailing list