Open dmjio opened 8 years ago
More info:
compiler-check: match-exact
resolver: nightly-2016-04-17
compiler: ghcjs-0.2.0.820160417_ghc-7.10.3
setup-info:
ghcjs:
source:
ghcjs-0.2.0.820160417_ghc-7.10.3:
url: "https://tolysz.org/ghcjs/nightly-2016-04-17-820160417.tar.gz"
extra-deps:
- elerea-2.9.0
- ghcjs-dom-0.3.1.0
- ghcjs-dom-jsffi-0.3.1.0
packages:
- location: '.'
yeah, i'm getting this too.
Doesn't look like a stack issue. I can also reproduce in a cabal sandbox.
Seems something doesn't like reexported-modules
too much. It compiles fine with that section removed from .cabal
file.
I can't reproduce this. Can someone please post output of cabal install -v --ghcjs ghcjs-dom
showing the failure (it works for me)?
cabal update
cabal sandbox init
cabal install -v --ghcjs ghcjs-dom
It might be a cabal 1.22 thing because I am using Cabal and cabal-install 1.24:
$ cabal --version
cabal-install version 1.24.0.0
compiled using version 1.24.0.0 of the Cabal library
You are correct, it's cabal. I had:
% cabal --version
cabal-install version 1.22.6.0
using version 1.22.4.0 of the Cabal library
That resulted in (almost exactly like the stack output above):
[531 of 531] Compiling GHCJS.DOM ( src/GHCJS/DOM.hs, dist/dist-sandbox-b1eb0909/build/GHCJS/DOM.js_o )
In-place registering ghcjs-dom-jsffi-0.3.1.0...
Creating package registration file:
/tmp/pkgConf-ghcjs-dom-jsffi-0.3.116816927771714636915.0
cabal: Error: some packages failed to install:
ghcjs-dom-jsffi-0.3.1.0 failed during the final install step. The exception
was:
user error (Couldn't parse the output of 'setup register
--gen-pkg-config':FromString "unrecognised field or section:
\":GHCJS.DOM.JSFFI.Generated.ANGLEInstancedArrays,\"" (Just 537))
Installed:
% cabal --version
cabal-install version 1.24.0.0
compiled using version 1.24.0.0 of the Cabal library
And that works as expected.
I'm confirming this is cabal as well. With cabal 1.22:
Resolving dependencies...
Configuring ghcjs-dom-jsffi-0.3.1.0...
Failed to install ghcjs-dom-jsffi-0.3.1.0
Build log ( /home/codeworld/.cabal/logs/ghcjs-dom-jsffi-0.3.1.0.log ):
Configuring ghcjs-dom-jsffi-0.3.1.0...
setup-Simple-Cabal-1.22.8.0-x86_64-linux-ghcjs-0.2.0: dist/: does not exist
cabal: Error: some packages failed to install:
ghcjs-dom-jsffi-0.3.1.0 failed during the configure step. The exception was:
ExitFailure 1
I updated to the latest cabal on my distro, cabal-install 1.24.0 and this worked.
I suggest increasing the cabal version to 1.24
I updated bundles for stack for the nightly and ghcjs80 (tested with node-6.5.0
):
resolver: nightly-2016-09-04
compiler: ghcjs-0.2.0.820160904_ghc-8.0.1
compiler-check: match-exact
setup-info:
ghcjs:
source:
ghcjs-0.2.0.820160904_ghc-8.0.1:
url: "http://tolysz.org/ghcjs/ghc-8.0-2016-09-05-nightly-2016-09-04-820160904.tar.gz"
sha1: "cf4383b77f9d712133bdf54e6389c4361c57b484"
allow-newer: true
extra-deps:
- elerea-2.9.0
- ghcjs-dom-0.3.1.0
- ghcjs-dom-jsffi-0.3.1.0
packages:
- location: '.
for those still on lts
nb. repack includes newer cabal
Run process: /home/m/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.24.0.0-ghcjs-0.2.0.9006015_ghc-7.10.3
resolver: lts-6.15
compiler: ghcjs-0.2.0.9006015_ghc-7.10.3
compiler-check: match-exact
setup-info:
ghcjs:
source:
ghcjs-0.2.0.9006015_ghc-7.10.3:
url: "https://tolysz.org/ghcjs/lts-6.15-9006015.tar.gz"
sha1: 4d513006622bf428a3c983ca927837e3d14ab687
Please test and close if it solves stack. Please consider creating some HowTo or readme describing your "success" story.
might solve this particular problem, but the lts-6.15
version still doesn't work, at least on Windows, due to non-ASCII characters in yaml-0.8.18.4 (https://github.com/snoyberg/yaml/issues/94). Changing resolver in this package to lts-6.18
(yaml-0.8.18.6, fixed) makes it work