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

Error while running cabal v2-install --overwrite-policy=always --install-method=copy --installdir=inplace/bin #832

Open
HarmonicPool opened this issue Mar 22, 2022 · 0 comments

Comments

@HarmonicPool
Copy link

HarmonicPool commented Mar 22, 2022

Error while running cabal v2-install --overwrite-policy=always --install-method=copy --installdir=inplace/bin

ghc/compiler/prelude/PrimOp.hs:96:1: error:
    parse error (possibly incorrect indentation or mismatched brackets)
   |
96 | tagToEnumKey :: Unique
   | ^
cabal: Failed to build ghcjs-8.10.7 (which is required by exe:haddock from
ghcjs-8.10.7, exe:ghcjs-pkg from ghcjs-8.10.7 and others). See the build log
above for details.

steps to reporduce

 git clone https://github.com/ghcjs/ghcjs.git
 cd ghcjs
 git submodule update --init --recursive


ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.10.7

cabal configure -w $(which ghc)

cabal v2-install --overwrite-policy=always --install-method=copy --installdir=inplace/bin
# here the error rises

expected behaviour

just to have my ghcjs compiler...

useful infromations

looking inside ghc/compiler/prelude/PrimOp.hs
the following code is present

allThePrimOps :: [PrimOp]
allThePrimOps =
#include "primop-list.hs-incl"

tagToEnumKey :: Unique
tagToEnumKey = mkPrimOpIdUnique (primOpTag TagToEnumOp)

also opening the file in vscode shows the following error

/*path to*/ ghcjs/ghc/compiler/prelude/hadrian/hie-bios: streamingProcess: exec: invalid argument (Bad file descriptor)compiler
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

1 participant