-
Notifications
You must be signed in to change notification settings - Fork 6
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
ghcjs-boot fails for LTS8 #10
Comments
I'd say see ghcjs/ghcjs-boot#43 but it hasn't had any attention yet. I have, though, managed to boot unix with lts-8.17. Working on a way to reproduce using prepare-ghcjs. |
Nice!
Could you keep all patches that produce this somewhere?
Hint: PR them... currently am at the ZuriHac... all* key people are here
*one person of most of the key projects.
On 9 Jun 2017 6:04 pm, "dbaynard" <notifications@github.com> wrote:
I'd say see ghcjs/ghcjs-boot#43
<ghcjs/ghcjs-boot#43> but it hasn't had any
attention yet. I have, though, managed to boot unix with lts-8.17. Working
on a way to reproduce using prepare-ghcjs.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAmDAvUWVGHZi7u-bX-5TRztUlesuKrHks5sCW0egaJpZM4NuvDx>
.
|
It compiles, but closure compiler pops up some errors. Didn't manage to get it working with I won't get a chance to upload a PR just yet, but broadly:
> ghcjs-boot --with-ghc $(cd ~/Projects/ghcjs/ghcjs && stack path --compiler-exe) --with-ghc-pkg $(cd ~/Projects/ghcjs/ghcjs && stack path --compiler-bin)/ghc-pkg --dev --clean resolver:
name: default-snapshot
location: snapshot.yaml
compiler: ghcjs-0.2.1.9008017_ghc-8.0.2
ghc-options:
"*": -dedupe -O0 The diff is here. I managed to get it working with aeson-1.2.0.0. diff --git c/ghcjs.cabal w/ghcjs.cabal
index be961d4..c4ce2d6 100644
--- c/ghcjs.cabal
+++ w/ghcjs.cabal
@@ -1,5 +1,5 @@
Name: ghcjs
-Version: 0.2.1.9008011
+Version: 0.2.1.9008017
Description: Haskell to JavaScript compiler
License: MIT
License-file: LICENSE
@@ -144,7 +144,7 @@ Library
syb >= 0.6 && < 0.7,
bytestring >= 0.10 && < 0.11,
attoparsec >= 0.12 && < 0.14,
- aeson >= 1.0 && < 1.2,
+ aeson >= 1.0 && < 1.3,
text >= 1.2 && < 1.3,
wl-pprint-text >= 1.1 && < 1.2,
lens >= 4.0 && < 4.16, The only change here is to a custom directory, which be better passed at boot. diff --git c/lib/etc/boot.yaml w/lib/etc/boot.yaml
index d8adf5f..7de83c6 100755
--- c/lib/etc/boot.yaml
+++ w/lib/etc/boot.yaml
@@ -145,7 +145,7 @@ sources:
#ghcjs-boot-dev: https://github.com/ghcjs/ghcjs-boot
#ghcjs-boot-dev-branch: master
- ghcjs-boot-dev: /blizzard/ghcjs/ghcjs-boot
+ ghcjs-boot-dev: https://github.com/matchwood/ghcjs-boot
ghcjs-boot-dev-branch: lts-8.11
# build tools for Windows (http url, local tar archive or directory) I replaced the extra-deps with a custom snapshot to reduce recompilation. diff --git c/snapshot.yaml w/snapshot.yaml
new file mode 100644
index 0000000..7d5a01f
--- /dev/null
+++ w/snapshot.yaml
@@ -0,0 +1,7 @@
+resolver: lts-8.17
+
+compiler: ghc-8.0.2
+
+packages:
+- haddock-api-2.17.3.1
+- aeson-1.2.0.0
diff --git c/stack.yaml w/stack.yaml
index 2796012..f6651a7 100644
--- c/stack.yaml
+++ w/stack.yaml
@@ -1,7 +1,4 @@
-resolver: lts-8.11
-extra-deps:
-- haddock-api-2.17.3.1
-- aeson-1.1.1.0
-flags:
- aeson:
- cffi: false
\ No newline at end of file
+resolver:
+ name: lts-8.17-mod
+ location: snapshot.yaml
+ |
@tolysz any hints how to fix it? Compiles everything except
|
@dbaynard which ghcjs package you used to compile |
I compiled from source but didn't get prepare-ghcjs working. Did you try my instructions, above? |
@dbaynard So, I nuke my old .stack-work, add new stuff to my fork https://github.com/sigrlami/prepare-ghcjs/commit/caa5f65363bd9d5f5348bbf7c689ecae326baa83 built it with
but still have small errors with |
resolver: lts-8.21
compiler: ghcjs-0.2.1.9008021_ghc-8.0.2
compiler-check: match-exact
setup-info:
ghcjs:
source:
ghcjs-0.2.1.9008021_ghc-8.0.2:
url: https://sigrlami.eu/ghcjs/8.x/lts-8.21/ghc-8.0-2017-07-11-lts-8.21-9008021.tar.gz
sha1: 3cebf161423da7016b07f9af9917ee004ec4dc92 but when I tried it on a project with
|
@mchaver Interesting. I need to take a look, probably related to the |
@sigrlami I don't have it explicitly defined. I would guess it is a dependency of one of my dependencies. I am using aeson. |
Yes, it's aeson related bug. I need to take a closer look and get back to you On Jul 21, 2017 13:50, James Haver II <notifications@github.com> wrote:@sigrlami I don't have it explicitly defined. I would guess it is a dependency of one of my dependencies. I am using aeson.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.
|
Just a quick update: I've just booted with a modified lts-9.1 (specifically: updated aeson and attoparsec). The approach is as above; clone https://github.com/dbaynard/ghcjs/tree/lts-9.1 to resolver:
name: default-snapshot
location: snapshot.yaml
compiler: ghcjs-0.2.1.9009001_ghc-8.0.2
ghc-options:
"*": -dedupe -O0 run > ghcjs-boot --with-ghc $(cd GHCJS_DIRECTORY && stack path --compiler-exe) --with-ghc-pkg $(cd GHCJS_DIRECTORY && stack path --compiler-bin)/ghc-pkg --dev --clean (replace |
@sigrlami @tolysz what is the status of GHCJS under stack for LTSes after version 7? Any plans to publish new GHCJS URLs on https://docs.haskellstack.org or it's still not ready? |
For whatever reason LTS stuck with |
The following error happens when running
ghcjs-boot
after installing from an LTS8-based tarball generated byprepare-ghcjs
:Here's the relevant section of the file in question:
The text was updated successfully, but these errors were encountered: