-
Notifications
You must be signed in to change notification settings - Fork 697
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
"ghc: panic! (the 'impossible' happened)" using "--enable-executable-dynamic" #2039
Comments
Changing the test suite name to
|
In vty, changing the test suite name has no effect: Using "VerifyAttributeOps", "AttributeOpsTest", "verifyAttributeOps", "attributeopstestsuite" All result in:
|
GHC panics are bugs in GHC. Please report this at the GHC bug tracker. |
It was reported as a GHC bug in https://ghc.haskell.org/trac/ghc/ticket/9625 However, to the best of my understanding, it may still be a bug in Cabal. (That is, even if GHC did not panic, GHC would instead exit with an error.) In thomie's simplified example, cabal is building a dynamic Haskell library with the name |
Does anybody have a workaround for this? It's affecting my nix installations:
This is for the atlassian-connect-descriptor package: http://hackage.haskell.org/package/atlassian-connect-descriptor |
I think this is a bug in the detailed test suite builder. I'm not sure why the |
…executable-dynamic Since commit 18fcd9c, Cabal builds the stub executable and the test library for a LibV09 (detailed-0.9) test in different directories. This is good, but when running the test with --enable-executable-dynamic, we now have to add the test build directory to (DY)LD_LIBRARY_PATH, so that the linker can find the test library when running the stub executable (see haskell#2289 for details). This fixes haskell#2039. The GHC panic mentioned in that ticket must have been resolved earlier already.
Since commit 18fcd9c, Cabal builds the stub executable and the test library for a LibV09 (detailed-0.9) test in different directories. This is good, but when running the test with --enable-executable-dynamic, we now have to add the test build directory to (DY)LD_LIBRARY_PATH, so that the linker can find the test library when running the stub executable (see haskell#2289 for details). This fixes haskell#2039 (read: no parse). The GHC panic mentioned in that ticket must have been resolved earlier already, perhaps also by commit 18fcd9c.
Since commit 18fcd9c, Cabal builds the stub executable and the test library for a LibV09 (detailed-0.9) test in different directories. This is good, but when running the test with --enable-executable-dynamic, we now have to add the test build directory to (DY)LD_LIBRARY_PATH, so that the linker can find the test library when running the stub executable (see haskell#2289 for details). This fixes haskell#2039 (read: no parse). The GHC panic mentioned in that ticket must have been resolved earlier already, perhaps also by commit 18fcd9c.
No longer occurs with GHC 7.10 and later, closing fixed. |
From: jtdaugherty/vty#54
Using
--enable-executable-dynamic
leads to a ghc panic. Filing here as Cabal handles--enable-executable-dynamic
. If this is confirmed to not be caused by Cabal (likely so IMO) then I'll move to ghc's bug tracker.To reproduce:
cabal configure --enable-tests --enable-executable-dynamic
cabal test
Reproduced on GHC 7.8.2, GHC 7.8.3, Cabal 1.18, Cabal 1.20. Ubuntu. The vty report is on Nix, which I do not have a working environment to reproduce with.
The text was updated successfully, but these errors were encountered: