[Pkg-haskell-maintainers] Bug#712228: Bug#712228: ghc: Hard to use for compilation: linking failures with no apparent solution

Reuben Thomas rrt at sc3d.org
Fri Jun 14 20:47:03 UTC 2013


On 14 June 2013 11:17, Joachim Breitner <nomeata at 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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20130614/45ec2fe2/attachment-0001.html>


More information about the Pkg-haskell-maintainers mailing list