[Haskell-cafe] 8.4.2 FreeBSD bindist not working with gold & lld
Gleb Popov
arrowd at freebsd.org
Wed May 30 07:04:27 UTC 2018
On Wed, May 30, 2018 at 8:41 AM, Sumit Raja <sumitraja at gmail.com> wrote:
> Hi,
>
> Just got 8.4.2 running in my FreeBSD 11 environment and am getting the
> following:
> cabal: Failed to build entropy-0.4.1.1 (which is required by exe:test-ghoa
> from oauth2-simple-0.1.0.0). The failure occurred during the configure
> step.
> The exception was:
> dieVerbatim: user error (cabal: '/usr/local/bin/ghc' exited with an error:
> /usr/local/bin/ld.gold: error:
> /usr/local/lib/ghc-8.4.2/rts/libHSrts_thr.a(RTS.thr_o): unexpected reloc
> 8 in
> object file
>
> LLD fails with
>
> configure step. The exception was:
> dieVerbatim: user error (cabal: '/usr/local/bin/ghc' exited with an error:
> /usr/bin/ld.lld: error: do not know how to handle relocation
> 'R_X86_64_RELATIVE' (8)
>
> Saw another thread that discussed this but there was no resolution. Any
> ideas on how to fix this?
>
At least LLD should be working by now on FreeBSD 12, see
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=226872
I don't know if there are plans to merge this fix to 11 branch, though.
> Thanks
> Sumit
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180530/981f13a4/attachment.html>
More information about the Haskell-Cafe
mailing list