ghc-6.4 fPIC compilation problem on amd64

ariep at ariep at
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 ...
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




More information about the Glasgow-haskell-users mailing list