-
Notifications
You must be signed in to change notification settings - Fork 841
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
Strange ld
errors when running stack test --coverage
on stack
#614
Comments
@mgsloan What's the plan for this? |
I think the plan for this is to report it as a GHC bug and hope that it gets fixed promptly. I haven't had luck with I tried coming up with a repro involving just cabal, and I get a different issue, a GHC panic error very similar to the ones discussed in https://ghc.haskell.org/trac/ghc/ticket/10745 and https://ghc.haskell.org/trac/ghc/ticket/10665 . I get such behavior when I do
It sounds like simon fixed this in ghc HEAD, 12 hours ago. Tomorrow, I will push a branch which has a travis config which runs It's somewhat mysterious to me why cabal-install runs into this error, whereas stack runs into the ld issue (which seems to go away if you keeping trying to build) |
No way! This just started on a machine that was on recent nightly resolver. @mgsloan ounds like you got it covered, good to hear it fixed in HEAD I think the plan for this is to report it as a GHC bug and hope that it I tried coming up with a repro involving just cabal, and I get a different I get such behavior when I do cabal install --enable-tests --ghc-options=-fhpc [ 4 of 64] Compiling Network.HTTP.Download.Verified ( It sounds like simon fixed this in ghc HEAD, 12 hours ago. Tomorrow, I will — |
I'm merely crossing my fingers that the issue with ld is somehow related. If it's still around with HEAD, I'll create a ghc bug report about it. |
My real question is: is there anything we're going to do for this at the stack level? If not, we should close this issue and move it upstream, with a note in the FAQ about the problem. |
@mgsloan did you test on ghc HEAD? If it's working, we should close this. I can write the FAQ entry in the wiki. |
I've just pushed a test of this to a branch. Here's the build for GHC HEAD: https://travis-ci.org/commercialhaskell/stack/jobs/74637288 Looks like mono-traversable doesn't support GHC HEAD currently:
@snoyberg Yeah, I think this can be closed, as there's nothing to do in stack to fix it. @drwebb Thanks, that sounds good! Such a note should be added regardless of whether it's resolved in GHC HEAD. One thing to be sure to point out is that, oddly enough, trying to recompile over and over again is a good strategy for resolving this. The issue seems to be nondeterministic.. |
I've added a note to the FAQ explaining this is an open issue with no known workaround, and advised using docker to build if it's a big problem. It's kind of a half-way answer, but I'm not sure of a better solution. |
This problem is preventing me from deploying to heroku. :( Hopefully we will figure out the reason! |
Has there been any development on this issue upstream? If there's a ghc ticket for this it would be cool if there was a reference to it here or in the manual, because I recently stumbled across this problem too, which is now preventing me to do static compilation and when I search for the issue I alway just land here or in the manual. If anyone has a link to an upstream ticket please post. |
@JustusAdam There is a ticket for a similar issue which may be related (also see the issue wedens references from). I'll add this information to the FAQ shortly. |
First run I got
Puzzlingly, next run it got further
Then, the third run finished compilation and successfully ran the tests! Very weird.
Next actions:
test --coverage
imply-fPIC
, as a workaround?test --coverage
stack test
when such an error occurs. Yuck!The text was updated successfully, but these errors were encountered: