Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task :installDependenciesEta FAILED when building statistics-0.15.2.0 from Hackage #985

Open
kervinlow opened this issue Feb 20, 2020 · 1 comment

Comments

@kervinlow
Copy link

Task :installDependenciesEta FAILED when building statistics-0.15.2.0 from Hackage

Description

When Eta tries to build and install the dependency, 'statistics:0.15.2.0', it suddenly went into panic while building the library for math-functions-0.3.3.0.

Eta then exited the build process with an exception.

Expected Behavior

Successful build and installation of the statistics-0.15.2.0 package.

Actual Behavior

The dependency build process failed at step 7 when building the library for math-functions-0.3.3.0.

The information provided by Eta is as follows:

[ 6 of 11] Compiling Numeric.Series
[ 7 of 11] Compiling Numeric.SpecFunctions.Compateta: panic! (the 'impossible' happened)
(Eta version 0.8.6b5):
tcCheckFIType: Unsupported calling convention.
ccall unsafe "value erfc"

Please report this as a Eta bug: http://github.com/typelead/eta/issues

statistics-0.15.2.0). See the build log above for details.

Task :installDependenciesEta FAILED
:installDependenciesEta (Thread[Task worker for ':',5,main]) completed. Took 3.536 secs.

FAILURE: Build failed with an exception.

Possible Fix

N.A.

Steps to Reproduce

  1. Include 'statistics:0.15.2.0' as a dependency in the Gradle build config file.
  2. Import Statistics.Distribution.Normal in Main.hs
  3. Run gradlew

Context

Trying to import the library to use in my program.

Your Environment

  • Did you install an older version of Eta/Etlas before? No
  • Current Eta & Etlas version: Eta 0.8.6b5 & Etlas 1.5.0.0
  • Operating System and version: Ubuntu 18.04.4 LTS / bionic
  • Link to your project: N.A.
@jneira
Copy link
Collaborator

jneira commented Feb 20, 2020

I am afraid the package contains foreign calls to c functions (ccall unsafe...)
One way to make the package work with eta is replace the c calls with java ones and upload the patch to the set of patches in eta-hackage https://github.com/typelead/eta-hackage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants