Git Product home page Git Product logo

Comments (8)

dmjio avatar dmjio commented on August 19, 2024

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: '.'

from ghcjs-dom.

mwotton avatar mwotton commented on August 19, 2024

yeah, i'm getting this too.

from ghcjs-dom.

mulderr avatar mulderr commented on August 19, 2024

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.

from ghcjs-dom.

hamishmack avatar hamishmack commented on August 19, 2024

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

from ghcjs-dom.

mulderr avatar mulderr commented on August 19, 2024

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.

from ghcjs-dom.

stefaj avatar stefaj commented on August 19, 2024

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

from ghcjs-dom.

tolysz avatar tolysz commented on August 19, 2024

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.

from ghcjs-dom.

tlewowski avatar tlewowski commented on August 19, 2024

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 (snoyberg/yaml#94). Changing resolver in this package to lts-6.18 (yaml-0.8.18.6, fixed) makes it work

from ghcjs-dom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.