On 14 June 2013 11:17, Joachim Breitner <nome...@debian.org> wrote: > Hi, > > Am Freitag, den 14.06.2013, 10:00 +0100 schrieb Reuben Thomas: > > I want to compile a simple Haskell program: > > > > $ git clone git://github.com/jgoerzen/twidge.git > > $ ghc --make -o setup Setup.lhs > > [1 of 1] Compiling Main ( Setup.lhs, Setup.o ) > > Linking setup ... > > /usr/bin/ld.bfd.real: Setup.o: relocation R_X86_64_32S against > `stg_CAF_BLACKHOLE_info’ can not be used when making a shared object; > recompile with -fPIC > > Setup.o: could not read symbols: Bad value > > collect2: error: ld returned 1 exit status > > I can’t reproduce it here, ghc 7.6.3-3, on amd64. >
> Does this occur with every Haskell program compilation, or just this? > This is the only one I tried. I don't use Haskell otherwise, I just wanted to build this one program. However, searching suggests this error is to be expected if you have a dynamically-built system, and suggested adding "-dynamic". As far as I can see, that's a matter of the GHC installation, not of the program being compiled, since I was working in this instance with a single .lhs source file. There might be differences in Ubuntu's toolchain. Not according to the changelog, but of course it could be something unknown!