typelead / etlas

Etlas, the build tool and package manager for the Eta programming language
63 stars 10 forks source link

"etlas install" command fails due to lack of interpreter support #19

Closed y-taka-23 closed 7 years ago

y-taka-23 commented 7 years ago

I tried etlas install --dependencies-only in 5-lens of eta-example repo, but it failed during the installation of aeson-1.2.2.0. More simply, I can reproduce the same error by:

$ etlas install aeson
Resolving dependencies...
Configuring aeson-1.2.2.0...
Building aeson-1.2.2.0...
Failed to install aeson-1.2.2.0
Build log ( /Users/ytakahashi/.etlas/logs/eta-0.0.9.1/aeson-1.2.2.0-6Krz0a8dH1PJK1nvXpI3Jk.log ):
etlas: Entering directory '/var/folders/4_/53m6gnp17z7_q9wqd8jxd44w0000gn/T/etlas-tmp-14422/aeson-1.2.2.0'
Configuring aeson-1.2.2.0...
Preprocessing library for aeson-1.2.2.0..
Building library for aeson-1.2.2.0..
[ 1 of 23] Compiling Data.Attoparsec.Time.Internal ( attoparsec-iso8601/Data/Attoparsec/Time/Internal.hs, dist/build/Data/Attoparsec/Time/Internal.jar )
[ 2 of 23] Compiling Data.Attoparsec.Time ( attoparsec-iso8601/Data/Attoparsec/Time.hs, dist/build/Data/Attoparsec/Time.jar )
[ 3 of 23] Compiling Data.Aeson.Types.Internal ( Data/Aeson/Types/Internal.hs, dist/build/Data/Aeson/Types/Internal.jar )

Data/Aeson/Types/Internal.hs:397:17:
    A Template Haskell bracket requires GHC with interpreter support:
      [| Null |]
    Perhaps you are using a stage-1 compiler?
etlas: Leaving directory '/var/folders/4_/53m6gnp17z7_q9wqd8jxd44w0000gn/T/etlas-tmp-14422/aeson-1.2.2.0'
etlas: Error: some packages failed to install:
aeson-1.2.2.0-6Krz0a8dH1PJK1nvXpI3Jk failed during the building phase. The
exception was:
ExitFailure 1

The etlas is downloaded as a binary from http://88a2a1b21f8e03a6bc8d-8f2e61d843ea88e4f30ab3f81ca0e396.r42.cf5.rackcdn.com/etlas-1.0.2.0/binaries/x86_64-osx/etlas then copied to /Users/ytakahashi/.local/bin/etlas:

$ etlas --version
etlas version 1.0.2.0
compiled using version 2.1.0.0 of the etlas-cabal library

I'm afraid that, according to the error message, my etlas seems to point a wrong (old?) version of GHC. Could you give me some advice?

rahulmutt commented 7 years ago

Run etlas update and try again?

y-taka-23 commented 7 years ago

I succeed to install the dependencies after sweeping $HOME/.eta and $HOME/.etlas. Surely it's from some dirty data.

Sorry for bothering you.