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

Can't run doctest with GHC 8.4.1/8.4.2 on Mac OSX #199

Closed
LeventErkok opened this issue Mar 18, 2018 · 8 comments
Closed

Can't run doctest with GHC 8.4.1/8.4.2 on Mac OSX #199

LeventErkok opened this issue Mar 18, 2018 · 8 comments

Comments

@LeventErkok
Copy link
Contributor

I'm pretty sure this has everything to do with GHC 8.4.1 on Mac instead of doctest itself, but I'm having difficulty running doctest after upgrading to GHC 8.4.1:

$ doctest Data/SBV/Examples/Polynomials/Polynomials.hs
doctest:
lookupSymbol failed in relocateSection (RELOC_GOT)
/usr/local/lib/ghc-8.4.1/integer-gmp-1.0.1.0/HSinteger-gmp-1.0.1.0.o: unknown symbol `___gmp_rands'
doctest: doctest: unable to load package `integer-gmp-1.0.1.0'

The following ticket (observed in haddock) seems to be the same issue, but for haddock: haskell/haddock#767

I'm curious if you tried doctest on Mac with GHC 8.4.1 and have run into this. Are there any known workarounds?

@sol
Copy link
Owner

sol commented Mar 19, 2018

Hey @LeventErkok thank you for taking the time to open this issue!

I'm curious if you tried doctest on Mac with GHC 8.4.1 and have run into this.

I don't have access to Mac hardware, so I can't help with this. What we could do is add a OS X build to travis to detect this kind of issues earlier in the future.

@LeventErkok
Copy link
Contributor Author

I'm afraid the problem is still there with ghc-8.4.2:

doctest:
lookupSymbol failed in relocateSection (RELOC_GOT)
/usr/local/lib/ghc-8.4.2/integer-gmp-1.0.2.0/HSinteger-gmp-1.0.2.0.o: unknown symbol `___gmp_rands'
doctest: doctest: unable to load package `integer-gmp-1.0.2.0'

Can anyone else confirm?

@LeventErkok LeventErkok changed the title Can't run doctest with GHC 8.4.1 on Mac OSX Can't run doctest with GHC 8.4.1/8.4.2 on Mac OSX Apr 21, 2018
@LeventErkok
Copy link
Contributor Author

Sadly this is still an issue with GHC 8.4.2. Progress seems to have stalled on it.

@harpocrates
Copy link

I've reported this as a GHC API bug: https://ghc.haskell.org/trac/ghc/ticket/15105.

@quasicomputational
Copy link
Collaborator

The GHC issue has been resolved so I'm going to assume this is no longer a problem.

@TomMD
Copy link

TomMD commented Oct 25, 2020

That's an interesting assumption. Which version of GHC claims to have fixed the issue? I can produce the same failure in another project with OS-X and GHC 8.10.1

@quasicomputational
Copy link
Collaborator

The GHC bug suggests maybe 8.6.3 had the fix; IIRC 8.10.1 had some fun bugs of its own - is it still reproducing with 8.10.3?

@TomMD
Copy link

TomMD commented Dec 31, 2020

I saw 8.10.3 has a linker issue fixed but haven't updated the project from 8.10.1. When I next move the compiler, probably to 9.0, I can find out and report back.

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

No branches or pull requests

5 participants