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
Install Failure - eta: panic! (the 'impossible' happened) (Eta version 0.0.5): #184
Comments
This is the exact bug that's plaguing some Windows systems right now and we haven't had a repro on other platforms yet, awesome! From the looks of it you're on Linux. Hopefully this repro will give me enough info to fix this bug once and for all. Please give me the specs of your system, like exact OS and the versions of zip libraries installed? |
Which zip libraries do you need versions for? I'm not sure how to gather that info. I update through synaptic package manager daily so I hope they are fairly current. john@Fetisov ~/eta/eta $ lsb_release -a Linux Kernel 3.16.0-38-generic 32 bit system |
32-bit system? I wonder if that's the reason. To confirm, can you follow these steps? git clone https://github.com/rahulmutt/zip-bench
cd zip-bench
stack build && stack exec zip-bench I need you to:
|
john@Fetisov ~/Projects/eta/testZip $ git clone https://github.com/rahulmutt/zip-benchCloning into 'zip-bench'... |
john@Fetisov ~/Projects/eta/testZip $ cd zip-bench |
What was the output of |
That was still running. . . . john@Fetisov ~/Projects/eta/testZip/zip-bench $ stack build && stack exec zip-bench |
and here is the before and after of the extraction: john@Fetisov ~/Projects/eta/testZip/zip-bench $ ls |
In your
and share the output? |
john@Fetisov ~/eta/eta/libraries/ghc-prim $ epm install --solver=topdown -v Please report this as a Eta bug: http://github.org/typelead/eta/issues Failed to install ghc-prim-0.4.0.0 |
Can you try extracting /home/john/eta/eta/libraries/ghc-prim/dist/build/GHC/Tuple.jar? And also what size is that file? |
extracting didn't give me an error, but it didn't extract anything either. . .john@Fetisov ~/Projects/eta/testZip/extractTest $ jar xf Tuple.jar |
size of Tuple.jar is |
Well that's interesting. Tuple.jar should be much larger. Can you do a hex dump? xxd -p Tuple.jar |
john@Fetisov ~/Projects/eta/testZip/extractTest $ xxd -p Tuple.jar |
This is the problem. Now we just need to learn the how and why. |
@Hondough Would you mind coming on Gitter or Slack? It'll make debugging a bit easier. |
I cannot right now as I need to go to my day job. We'll need to schedule a time. |
@Hondough No problem then, we can continue here. Thanks for your patience! That should be enough info to work with. |
Can you share the entire contents (recursively) of |
john@Fetisov ~/eta/eta/libraries/ghc-prim/dist $ ls -alR /home/john/eta/eta/libraries/ghc-prim/dist/ /home/john/eta/eta/libraries/ghc-prim/dist/build: /home/john/eta/eta/libraries/ghc-prim/dist/build/autogen: /home/john/eta/eta/libraries/ghc-prim/dist/build/GHC: /home/john/eta/eta/libraries/ghc-prim/dist/package.conf.inplace: |
Thanks! It looks like Go to
And can you upload that log somewhere and share? It might take some time because it dumps quite a bit. |
It failed quickly. |
and here's console: john@Fetisov ~/eta/eta/libraries/ghc-prim $ epm install --solver=topdown -v3 > ghc-prim-build-log.txt Please report this as a Eta bug: http://github.org/typelead/eta/issues epm: Error: some packages failed to install: |
Closed by mistake |
@Hondough This was an issue in the |
I ran the update and it completed w/o errors. |
[1 of 5] Compiling GHC.Types ( GHC/Types.hs, dist/build/GHC/Types.jar )
eta: panic! (the 'impossible' happened)
(Eta version 0.0.5):
Parsing of archive structure failed:
Cannot locate end of central directory
in "/home/john/eta/eta/libraries/ghc-prim/dist/build/GHC/Types.jar"
Please report this as a Eta bug: http://github.org/typelead/eta/issues
Failed to install ghc-prim-0.4.0.0
epm: Error: some packages failed to install:
ghc-prim-0.4.0.0 failed during the building phase. The exception was:
ExitFailure 1
Error when running Shake build system:
user error (Development.Shake.cmd, system command failed
Command: epm install --solver=topdown
Current directory: /home/john/eta/eta/libraries/ghc-prim
Exit code: 1
Stderr:
eta: panic! (the 'impossible' happened)
(Eta version 0.0.5):
Parsing of archive structure failed:
Cannot locate end of central directory
in "/home/john/eta/eta/libraries/ghc-prim/dist/build/GHC/Types.jar"
Please report this as a Eta bug: http://github.org/typelead/eta/issues
epm: Error: some packages failed to install:
ghc-prim-0.4.0.0 failed during the building phase. The exception was:
ExitFailure 1
)
The text was updated successfully, but these errors were encountered: