ghc-6.4 fPIC compilation problem on amd64
simonmar at microsoft.com
Tue May 17 06:10:15 EDT 2005
On 13 May 2005 23:11, ariep at xs4all.nl wrote:
>> That's a new one on me. Does your 6.2.2 build otherwise work, i.e.
>> can you build & run programs with it?
> ghc won't even compile a 'main = putStrLn "hello world"' program:
>> # ghc --make Main.hs
>> Chasing modules from: Main.hs
>> Compiling Main ( Main.hs, Main.o )
>> Linking ...
> Main.o: relocation R_X86_64_32 against `__stginit_Main_' can not be
> used when making a shared object; recompile with -fPIC
>> Main.o: could not read symbols: Bad value
>> collect2: ld returned 1 exit status
Then it looks like your 6.2.2 is broken, or perhaps incompatible with
some other tools you have locally. I suggest re-installing (I believe
Gentoo has a ghc-bin package that you can install from scratch).
More information about the Glasgow-haskell-users