ghc-6.4 fPIC compilation problem on amd64

Hi,
When trying to compile ghc-6.4 from source on my amd64 using a 6.2.2
binary (obtained via gentoo portage), I get the following error message:
#####
make all
[...]
/usr/bin/ghc -o ghc-pkg.bin -H16m -O -cpp -Wall -fno-warn-name-shadowing
-fno-warn-unused-matches -i../../lib/compat -Rghc-timing
-L../../lib/compat -lghccompat Main.o Version.o
/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
<
participants (1)
-
ariep@xs4all.nl