bennofs / th-lift-instances

Lift instances for common haskell data types
http://hackage.haskell.org/package/th-lift-instances
Other
12 stars 11 forks source link

GHCJS build failure #9

Open sigrlami opened 7 years ago

sigrlami commented 7 years ago

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 commented 7 years ago

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 thenode` command available)

sigrlami commented 7 years ago

@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 commented 7 years ago

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 commented 7 years ago

@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 commented 6 years ago

@sigrlami any progress/updates?

sigrlami commented 6 years ago

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

nomeata commented 6 years ago

Would you enlighten us how you fixed it? I am observing the same (reported at https://github.com/ghcjs/ghcjs/issues/607).

nomeata commented 6 years ago

Would you enlighten us how you fixed it? I am observing the same (reported at https://github.com/ghcjs/ghcjs/issues/607).

sigrlami commented 6 years ago

@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.

ddssff commented 6 years ago

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