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

GHCJS build failure #9

Open
sigrlami opened this issue Jul 12, 2017 · 10 comments
Open

GHCJS build failure #9

sigrlami opened this issue Jul 12, 2017 · 10 comments

Comments

@sigrlami
Copy link

I've got following error while building with stack and ghcjs

--  While building package th-lift-instances-0.1.11 using:
      /home/sigrlami/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_1.24.2.0_ghcjs-0.2.1.9008022_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.2.0_ghcjs build --ghcjs-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/sigrlami/work/projects-hs/tenderoom/tenders/back-office/app-bo/.stack-work/logs/th-lift-instances-0.1.11.log

    Configuring th-lift-instances-0.1.11...
    Building th-lift-instances-0.1.11...
    Preprocessing library th-lift-instances-0.1.11...
    [1 of 1] Compiling Instances.TH.Lift ( src/Instances/TH/Lift.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0_ghcjs/build/Instances/TH/Lift.js_o )
    runNodeInteractive
    fd:12: hPutBuf: resource vanished (Broken pipe)

How can I fix this?

@bennofs
Copy link
Owner

bennofs commented Jul 12, 2017

First, I don't use GHCJS myself. But from what I know about how GHCJS works, this looks like a setup problem with the TemplateHaskell support in GHCJS. Do other packages using TemplateHaskell work? And do you have nodejs``installed? (is the node` command available)

@sigrlami
Copy link
Author

@bennofs thanks for the quick reply and hint. I'm probably need to patch my boot setup

Other packages with template-haskell built. I'm trying to align ghcjs with stack in that repo prepare-ghcjs after a successful build of ghcjs and building other libraries, I encounter this error where th-lift-instances is a dependency.

@bennofs
Copy link
Owner

bennofs commented Jul 12, 2017

What other packages have you tested? Perhaps we can see if there are any important difference between these other packages in th-lift-instances.

@sigrlami
Copy link
Author

@bennofs nodejs, node, npm installed. I'll look into boot setup first and if doesn't work get back to you with a list of libs.

@bennofs
Copy link
Owner

bennofs commented Jul 23, 2017

@sigrlami any progress/updates?

@sigrlami
Copy link
Author

@bennofs you can close this issue, I fixed it in my boot setup configuration

@bennofs bennofs closed this as completed Jul 23, 2017
@nomeata
Copy link

nomeata commented Sep 17, 2017

Would you enlighten us how you fixed it? I am observing the same (reported at ghcjs/ghcjs#607).

1 similar comment
@nomeata
Copy link

nomeata commented Sep 17, 2017

Would you enlighten us how you fixed it? I am observing the same (reported at ghcjs/ghcjs#607).

@sigrlami
Copy link
Author

@nomeata I coupled it with another package and it worked for that lts I had a couple of months ago, but seeing it now again. Not sure what's causing it.

@bennofs bennofs reopened this Sep 17, 2017
@ddssff
Copy link

ddssff commented Sep 25, 2017

This package builds for me using cabal configure --ghcjs; cabal build.

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