typelead / eta-hackage

A set of patches to make Hackage compatible with the Eta language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Patch for cql-io

joshsh opened this issue · comments

I am attempting to port a stack build to etlas. Among the dependencies of the project is cql-io, which in turn depends on HsOpenSSL. In @rahulmutt's words, the dependency fails to build because "It has FFI bindings to C++ which don’t work with Eta as of now".

Is there a timeline for support of C++ FFI bindings?

The etlas output is as follows:

[...]
Building HsOpenSSL-0.11.4.14 (lib)...
Building memory-0.14.14 (lib)...
Found patch in eta-hackage for primitive-0.6.4.0
Configuring primitive-0.6.4.0 (lib)...
Building double-conversion-2.0.2.0 (lib)...
Building primitive-0.6.4.0 (lib)...

Failed to build HsOpenSSL-0.11.4.14.
Build log (
/Users/joshsh/.etlas/logs/eta-0.8.0.2/HsOpenSSL-0.11.4.14-c18a307f0987a3fd4c8cdb850a3bf2badb30b9ab98f92fbb507d72c7df2d614a.log
):
Configuring library for HsOpenSSL-0.11.4.14..
Preprocessing library for HsOpenSSL-0.11.4.14..
etlas: can't find source for OpenSSL/BN in ., dist/build/autogen,
dist/build/global-autogen

Failed to build double-conversion-2.0.2.0.
Build log (
/Users/joshsh/.etlas/logs/eta-0.8.0.2/double-conversion-2.0.2.0-46cae44536e03c79c0a4b1e00f9202df45fc29f721f9eb8909feb314b73c6cc6.log
):
Configuring library for double-conversion-2.0.2.0..
Preprocessing library for double-conversion-2.0.2.0..
Building library for double-conversion-2.0.2.0..
etlas:
'/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java'
exited with an error:
Cannot parse dependencies:
Malformed dependency: c++
etlas: Failed to build HsOpenSSL-0.11.4.14 (which is required by u2-0.1). See
the build log above for details.
Failed to build double-conversion-2.0.2.0 (which is required by u2-0.1). See
the build log above for details.

Here is the build log:

Configuring library for double-conversion-2.0.2.0..
Preprocessing library for double-conversion-2.0.2.0..
Building library for double-conversion-2.0.2.0..
etlas:
'/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java'
exited with an error:
^[[2KDownloaded 1 missing file(s) / 17
^[[1A^[[2KDownloaded 2 missing file(s) / 17
^[[1A^[[2KDownloaded 3 missing file(s) / 17
^[[1A^[[2KDownloaded 4 missing file(s) / 17
^[[1A^[[2KDownloaded 5 missing file(s) / 17
^[[1A^[[2KDownloaded 6 missing file(s) / 17
^[[1A^[[2KDownloaded 7 missing file(s) / 17
^[[1A^[[2KDownloaded 8 missing file(s) / 17
^[[1A^[[2KDownloaded 9 missing file(s) / 17
^[[1A^[[2KDownloaded 10 missing file(s) / 17
^[[1A^[[2KDownloaded 11 missing file(s) / 17
^[[1A^[[2KDownloaded 12 missing file(s) / 17
^[[1A^[[2KDownloaded 13 missing file(s) / 17
^[[1A^[[2KDownloaded 14 missing file(s) / 17
^[[1A^[[2KDownloaded 15 missing file(s) / 17
^[[1A^[[2KDownloaded 16 missing file(s) / 17
^[[1A^[[2KDownloaded 17 missing file(s) / 17
^[[1A^[[2KCannot parse dependencies:
Malformed dependency: c++

@joshsh The patch is up. Run etlas update and try building your project. Feel free file any new issues on any other packages you have trouble building or any correctness bugs with any of the patched packages.