New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unhandled ELF relocation(RelA) type 19 #369
Comments
ugh, that linker error doesn't look good. I wonder if it is a problem with GHC's linker, ala GHC#12147. What version of ghc / gcc / ld / OS / etc. are you using? |
Make sure you have the latest version of stack as well? This ticket mentions that adding something like the following to your ghc-options:
llvm-hs: -opta-Wa,-mrelax-relocations=no |
I'm using a custom build system (made with Shake), but adding that ghc-options didn't help. I'm currently using ubuntu 14.04. ghc 8.0.2, gcc 4.8.4, ld 2.24 |
I'm using GHC 8.0.2 (DYNAMIC_GHC_PROGRAMS = NO), Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-51-generic x86_64), gcc version 5.4.0 20160609, ld 2.26.1 and I got exactly the same error. It looks more like a GHC problem |
Okay, if you can open a new ghc issue and link to it here that would be good. The GHC devs might also have some more advice or workarounds you could try. |
OK, I've made ticket https://ghc.haskell.org/trac/ghc/ticket/13522 |
This comment might be relevant, and probably worth checking for your build system. |
That's interesting because the error output clearly shows that the runtime linker was trying to load the static library @alang9 What is the last code block (starting Can you provide the output of |
Sorry, yes that's indeed the output of
Here's the extra-libraries section:
|
So it looks like the default Thanks for the help! |
I've submitted a patch to I guess this is safe to close now. Feel free to reopen / create a new ticket if you have any other issues. Good luck! |
I get the following errors when trying to build
accelerate-llvm-1.0.0.0
:llvm-hs-4.0.1.0
is build with-fshared-llvm
some more debugging output:
The text was updated successfully, but these errors were encountered: