Skip to content
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

Workaround: lookupSymbol failed in relocateSection (RELOC_GOT) ... HSinteger-gmp-1.0.2.0.o: unknown symbol `___gmp_rands' #228

Open
bwagner opened this issue May 21, 2020 · 3 comments
Labels

Comments

@bwagner
Copy link

bwagner commented May 21, 2020

When following the instructions in the README and then running
hawk '[1..3]'
I get the error:

hawk:
lookupSymbol failed in relocateSection (RELOC_GOT)
/Users/bwagner/.stack/programs/x86_64-osx/ghc-8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0/HSinteger-gmp-1.0.2.0.o: unknown symbol `___gmp_rands'
error: GhcException "unable to load package `integer-gmp-1.0.2.0'"

Jumping around a few github issues, the solution is a blatantly simple:

rm /Users/bwagner/.stack/programs/x86_64-osx/ghc-8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0/HSinteger-gmp-1.0.2.0.o
of course you need to adjust the path in the above statement unless you're on a mac and your username and ghc versions happen to coincide with mine. See:
https://gitlab.haskell.org/ghc/ghc/issues/15105#note_153699

@gelisam
Copy link
Owner

gelisam commented May 21, 2020

Thanks. Since this isn't a bug in hawk, but it is something which hawk users might encounter, I'll keep this ticket open but with the wontfix label, just like I did for #211, to make it easier for users to find.

@osfameron
Copy link

I just installed Stack on my Macbook for the purpose of installing Hawk, and stack install ran to completion.

Got the error as above, and deleted /Users/myusername/.stack/programs/x86_64-osx/ghc-8.4.4/lib/ghc-8.4.4/integer-gmp-1.0.2.0/HSinteger-gmp-1.0.2.0.o as suggested.

Now I get the new error:

$ hawk '[1..3]'
hawk: ghc: readCreateProcessWithExitCode: runInteractiveProcess: exec: does not exist (No such file or directory)

@gelisam gelisam mentioned this issue Jul 7, 2020
@gelisam
Copy link
Owner

gelisam commented Jul 7, 2020

Thanks. The two error messages are unrelated, so let's discuss your new error message in #235.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants