8.4.2 FreeBSD bindist not working with gold & lld

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

8.4.2 FreeBSD bindist not working with gold & lld

Sumit Raja
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?

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.
Reply | Threaded
Open this post in threaded view
|

Re: 8.4.2 FreeBSD bindist not working with gold & lld

Gleb Popov


On Wed, May 30, 2018 at 8:41 AM, Sumit Raja <[hidden email]> 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.


_______________________________________________
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.