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

"Prelude.chr: bad argument:" exception when attempting to build vector with ghc-9.0.1-alpha-1 #5445

Closed
mgsloan opened this issue Nov 29, 2020 · 3 comments · Fixed by #5508
Closed

Comments

@mgsloan
Copy link
Contributor

mgsloan commented Nov 29, 2020

Steps to reproduce

  1. Clone my ghc-9 branch of vector

  2. Run stack build --stack-yaml=stack-9.yaml

Expected

Builds, or produces some compilation error.

Actual

$ stack build --stack-yaml=stack-9.yaml                                                                  
Stack has not been tested with GHC versions above 8.10, and using 9.0.0.20200925, this may fail                                      
Stack has not been tested with Cabal versions above 3.2, but version 3.4.0.0 was found, this may fail                                
vector> configure (lib)                                                                                                              
Configuring vector-0.13.0.1...                                                                                                       
                                                                                                                                     
Warning: Failed to decode module interface:
         /home/mgsloan/oss/vector/.stack-work/dist/x86_64-linux/Cabal-3.4.0.0/build/Data/Vector/Internal/Check.hi Decoding failure:
         not enough bytes

Warning: Failed to decode module interface:
         /home/mgsloan/oss/vector/.stack-work/dist/x86_64-linux/Cabal-3.4.0.0/build/Data/Vector/Fusion/Util.hi Decoding failure:
         not enough bytes

Warning: Failed to decode module interface:
         /home/mgsloan/oss/vector/.stack-work/dist/x86_64-linux/Cabal-3.4.0.0/build/Data/Vector/Fusion/Stream/Monadic.hi Decoding
         failure: not enough bytes

Warning: Failed to decode module interface:
         /home/mgsloan/oss/vector/.stack-work/dist/x86_64-linux/Cabal-3.4.0.0/build/Data/Vector/Fusion/Bundle/Size.hi Decoding
         failure: not enough bytes
Prelude.chr: bad argument: 809054773

Not sure where to begin looking to diagnose this. I imagine it is related to deserialization. Hopefully one day ghc's callstack situation will get sorted!

Stack version

$ stack --version
Version 2.6.0, Git revision 4c38ee0125f705cc007109f612b7423342911808 (8258 commits) PRE-RELEASE x86_64 hpack-0.33.0

Also reproduced with older stable stack (not sure which version)

Method of installation

stack install of recent stack head, 4c38ee0

@gergoerdi
Copy link

gergoerdi commented Mar 13, 2021

FYI another ticket for this is #5486.

@snoyberg
Copy link
Contributor

@haitlahcen hi-file-parser has been a source of a lot of issues like this, and is becoming a major blocker. I understand the goal you originally had in implementing it, but in its current state we'll likely need to remove the binary parsing code entirely unless you or someone else steps up to maintain the package.

snoyberg added a commit that referenced this issue Mar 24, 2021
@snoyberg
Copy link
Contributor

Please see #5508

igrep added a commit to haskell-jp/slack-web that referenced this issue Jan 16, 2022
igrep added a commit to MercuryTechnologies/slack-web that referenced this issue Jan 16, 2022
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

Successfully merging a pull request may close this issue.

3 participants