ghc-6.4 fPIC compilation problem on amd64
ariep at xs4all.nl
ariep at xs4all.nl
Fri May 13 18:10:49 EDT 2005
> 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 ...
|
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
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
:(
Greetings,
Arie
More information about the Glasgow-haskell-users
mailing list