typelead / eta

The Eta Programming Language, a dialect of Haskell on the JVM
https://eta-lang.org
BSD 3-Clause "New" or "Revised" License
2.6k stars 141 forks source link

Failure in build script on source installation #483

Open rahulmutt opened 6 years ago

rahulmutt commented 6 years ago

Something

@HaskellZhangSong and @yawaramin both encountered this. Can either of you follow these steps and report the results?

In shake/Build.hs, add the following print statement:

...
let confDir = packageConfDir rootDir
liftIO $ print confDir
..

and then run ./cleaninstall.sh and in the output should should get a file path. Go to that file path and share the contents of that directory.

HaskellZhangSong commented 6 years ago

The directory is "C:\\Users\\songzh\\AppData\\Roaming\\eta\\0.0.9.2\\package.conf.d" There is only one file package.cache in it. The content in hexdecimal is

00 65 74 61 70 6B 67 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 The first few characters are: .etapkg...

I tried to build 0.0.9.1, it seems that there are more package conf file in0.0.9.1 folder.

rahulmutt commented 6 years ago

@HaskellZhangSong That's interesting. Can you share the directory listing of 0.0.9.1 folder?

HaskellZhangSong commented 6 years ago
    array-0.5.2.0-2RWOOaF5GcW4U6D6pQUKE5.conf
    base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF.conf
    deepseq-1.4.3.0-8L3V4T6ulnW9Px5CMEu13M.conf
    ghc-boot-th-8.0.2-FyYKFMAI4i5IUUaSngIVY6.conf
    ghc-prim-0.4.0.0-Jhi6UgHuZdoBZWUpVo3WKE.conf
    integer-0.5.1.0-ACyqTmAMUMGGvisLFeQbAm.conf
    package.cache
    pretty-1.1.3.5-ItmjUBJrDLK1k3EMUMuOEN.conf
    rts-0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w.conf
    template-haskell-2.11.1.0-HoWJKehHDuV1zvuHBQKGPm.conf
rahulmutt commented 6 years ago

Can you go to libraries/rts and do etlas install rts --allow-boot-library-installs and see if that adds a file to "C:\Users\songzh\AppData\Roaming\eta\0.0.9.2\package.conf.d"?

HaskellZhangSong commented 6 years ago
songzh@HIH-D-6472 MINGW64 /d/haskell/eta/libraries/rts (master)
$ etlas install rts --allow-boot-library-installs
etlas.exe: There is no package named 'rts'.
You may need to run 'etlas update' to get the latest list of available
packages.
rahulmutt commented 6 years ago

Sorry - that should be etlas install --allow-boot-library-installs

HaskellZhangSong commented 6 years ago

No, it will not add a file.

rahulmutt commented 6 years ago

Can you try etlas install --allow-boot-library-installs -v3 and share the output?