typelead / eta-hackage

A set of patches to make Hackage compatible with the Eta language.
64 stars 31 forks source link

Can't install regex-posix even found patch #61

Open JulianZhang opened 6 years ago

JulianZhang commented 6 years ago

Hi I can't install regex-posix, the output is as blow.

$ etlas install regex-posix Resolving dependencies... Found patch in eta-hackage for regex-posix-0.95.2 Configuring regex-posix-0.95.2... Building regex-posix-0.95.2... Failed to install regex-posix-0.95.2 Build log ( /Users/zhangjun/.etlas/logs/eta-0.0.9.2/regex-posix-0.95.2-Kd0wX9w7C2XFMvm3PfgF5c.log ): etlas: Entering directory '/var/folders/dt/m9kwylpd01v3qh5qlj6dnxch0000gq/T/etlas-tmp-34859/regex-posix-0.95.2' Configuring regex-posix-0.95.2... Preprocessing library for regex-posix-0.95.2.. Building library for regex-posix-0.95.2.. [1 of 6] Compiling Text.Regex.Posix.Wrap ( Text/Regex/Posix/Wrap.hs, dist/build/Text/Regex/Posix/Wrap.jar )

Text/Regex/Posix/Wrap.hs:153:20: Module ‘Java.String’ does not export ‘CharSequence’ etlas: Leaving directory '/var/folders/dt/m9kwylpd01v3qh5qlj6dnxch0000gq/T/etlas-tmp-34859/regex-posix-0.95.2' etlas: Error: some packages failed to install: regex-posix-0.95.2-Kd0wX9w7C2XFMvm3PfgF5c failed during the building phase. The exception was: ExitFailure 1

rahulmutt commented 6 years ago

Can you share the output of etlas exec eta -- --version?

rahulmutt commented 6 years ago

It works fine on the most recent version of eta - I assume you are using an older version? I added a conditional flag in the cabal file to use the older version. I wonder if this is a bug in etlas.

JulianZhang commented 6 years ago

Sorry reply so later, and my system is MacOS

$etlas exec eta -- --version Compiler for the Eta Programming Language, version 0.0.9b2

$ etlas install regex-posix Resolving dependencies... Found patch in eta-hackage for regex-posix-0.95.2 Configuring regex-posix-0.95.2... Building regex-posix-0.95.2... Failed to install regex-posix-0.95.2 Build log ( /Users/zhangjun/.etlas/logs/eta-0.0.9.2/regex-posix-0.95.2-Kd0wX9w7C2XFMvm3PfgF5c.log ): etlas: Entering directory '/var/folders/dt/m9kwylpd01v3qh5qlj6dnxch0000gq/T/etlas-tmp-13626/regex-posix-0.95.2' Configuring regex-posix-0.95.2... Preprocessing library for regex-posix-0.95.2.. Building library for regex-posix-0.95.2.. [1 of 6] Compiling Text.Regex.Posix.Wrap ( Text/Regex/Posix/Wrap.hs, dist/build/Text/Regex/Posix/Wrap.jar )

Text/Regex/Posix/Wrap.hs:153:20: Module ‘Java.String’ does not export ‘CharSequence’ etlas: Leaving directory '/var/folders/dt/m9kwylpd01v3qh5qlj6dnxch0000gq/T/etlas-tmp-13626/regex-posix-0.95.2' etlas: Error: some packages failed to install: regex-posix-0.95.2-Kd0wX9w7C2XFMvm3PfgF5c failed during the building phase. The exception was: ExitFailure 1

$ etlas exec eta -- --version Compiler for the Eta Programming Language, version 0.0.9b2