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

Failed when execute ghcjs-boot #4440

Closed
Rizary opened this issue Apr 7, 2017 · 5 comments
Closed

Failed when execute ghcjs-boot #4440

Rizary opened this issue Apr 7, 2017 · 5 comments

Comments

@Rizary
Copy link

Rizary commented Apr 7, 2017

I got the following error when try to execute ghcjs-boot with the option mentioned in here ghcjs/ghcjs#487

I'm using cabal HEAD version and ghc 8.0.2 downloaded from haskell web. I tried to build ghc using guide in here https://github.com/leksah/leksah.

thing that i noted is that the ghc-pkg still notice my Cabal-1.24.2.0 as mentioned in the third line on the below code.

ghcjs-intree
includes
/Users/Rizitecs$ [ghc-pkg]: /usr/local/bin/ghc-pkg "list" "--simple-output"
/Users/Rizitecs$ [ghc-pkg]: /usr/local/bin/ghc-pkg "dump"
/Users/Rizitecs$ [ghc-pkg]: /usr/local/bin/ghc-pkg "field" "Cabal-1.24.2.0" "abi"
/Users/Rizitecs$ writing /Users/Rizitecs/.ghcjs/x86_64-darwin-0.2.1-8.0.2/ghcjs/package.conf.d/Cabal-1.24.2.0.conf
/Users/Rizitecs$ [ghcjs-pkg]: /Users/Rizitecs/.cabal/bin/ghcjs-pkg "recache" "--global" "--no-user-package-db"
installing stage 0
/Users/Rizitecs/.ghcjs/x86_64-darwin-0.2.1-8.0.2/ghcjs/ghcjs-boot/boot/ghc-prim$ rm_rf dist
/Users/Rizitecs/.ghcjs/x86_64-darwin-0.2.1-8.0.2/ghcjs/ghcjs-boot$ [cabal]: /usr/local/bin/cabal "--config-file" "/Users/Rizitecs/.ghcjs/x86_64-darwin-0.2.1-8.0.2/ghcjs/cabalBootConfig" "--ignore-sandbox" "install" "./boot/ghc-prim" "--solver=topdown" "--global" "--ghcjs" "--one-shot" "--avoid-reinstalls" "--builddir" "dist" "--with-compiler" "/Users/Rizitecs/.cabal/bin/ghcjs" "--with-hc-pkg" "/Users/Rizitecs/.cabal/bin/ghcjs-pkg" "--prefix" "/Users/Rizitecs/.ghcjs/x86_64-darwin-0.2.1-8.0.2/ghcjs" "--enable-documentation" "--haddock-html" "--haddock-hyperlink-source" "--enable-shared" "--enable-library-profiling" "-v2" "--dry-run"
/usr/local/bin/cabal --config-file /Users/Rizitecs/.ghcjs/x86_64-darwin-0.2.1-8.0.2/ghcjs/cabalBootConfig --ignore-sandbox install ./boot/ghc-prim --solver=topdown --global --ghcjs --one-shot --avoid-reinstalls --builddir dist --with-compiler /Users/Rizitecs/.cabal/bin/ghcjs --with-hc-pkg /Users/Rizitecs/.cabal/bin/ghcjs-pkg --prefix /Users/Rizitecs/.ghcjs/x86_64-darwin-0.2.1-8.0.2/ghcjs --enable-documentation --haddock-html --haddock-hyperlink-source --enable-shared --enable-library-profiling -v2 --dry-run
solver must be one of: modular
CallStack (from HasCallStack):
  error, called at ./Distribution/ReadE.hs:46:24 in Cabal-2.1.0.0-inplace:Distribution.ReadE
ghcjs-boot: error running: /usr/local/bin/cabal --config-file /Users/Rizitecs/.ghcjs/x86_64-darwin-0.2.1-8.0.2/ghcjs/cabalBootConfig --ignore-sandbox install ./boot/ghc-prim --solver=topdown --global --ghcjs --one-shot --avoid-reinstalls --builddir dist --with-compiler /Users/Rizitecs/.cabal/bin/ghcjs --with-hc-pkg /Users/Rizitecs/.cabal/bin/ghcjs-pkg --prefix /Users/Rizitecs/.ghcjs/x86_64-darwin-0.2.1-8.0.2/ghcjs --enable-documentation --haddock-html --haddock-hyperlink-source --enable-shared --enable-library-profiling -v2 --dry-run
exit status: 1
stderr: solver must be one of: modular
CallStack (from HasCallStack):
  error, called at ./Distribution/ReadE.hs:46:24 in Cabal-2.1.0.0-inplace:Distribution.ReadE
@ezyang
Copy link
Contributor

ezyang commented Apr 7, 2017

Dupe of #3987, which was fixed Cabal side, but the ghcjs build system has to be adjusted to take advantage of the new flag.

@ezyang ezyang closed this as completed Apr 7, 2017
@b-mehta
Copy link

b-mehta commented Jul 25, 2018

I'm still getting this issue, has this been fixed?

@grayjay
Copy link
Collaborator

grayjay commented Jul 29, 2018

It looks like there is a PR to update GHCJS, but it hasn't been merged: ghcjs/ghcjs#624

@Rizary
Copy link
Author

Rizary commented Jul 29, 2018

@b-mehta @grayjay did you use Cabal in master branch?

@grayjay
Copy link
Collaborator

grayjay commented Jul 30, 2018

@Rizary I'm not sure I understand. The cabal master branch has a flag (added in #4227) that ghcjs-boot could use to reinstall boot libraries without passing --solver=topdown to cabal. --solver=topdown causes an error in newer versions of cabal.

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

4 participants