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

Compiling Crypto.Hash.MD5 eta.exe: panic! (the 'impossible' happened) #746

Closed
glhrmfrts opened this issue May 14, 2018 · 2 comments
Closed
Labels

Comments

@glhrmfrts
Copy link

glhrmfrts commented May 14, 2018

I added the package uuid:1.3.13 as a dependency to my project and while installing it the compiler gave me this error:

Failed to build cryptohash-md5-0.11.100.1.
  Build log (
  C:\Users\Pichau\AppData\Roaming\etlas\logs\eta-0.7.2.1\cryptohash-md5-0.11.10_-52f81730bfb736cc31aa126a70aa1edd9edc9ca2.log
  ):
  Preprocessing library for cryptohash-md5-0.11.100.1..
  Building library for cryptohash-md5-0.11.100.1..

  [1 of 1] Compiling Crypto.Hash.MD5 eta.exe: panic! (the 'impossible' happened)
    (Eta version 0.7.2b1):
        tcCheckFIType: Unsupported calling convention.
    ccall unsafe "value md5.h hs_cryptohash_md5_finalize"

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


  Failed to build cryptohash-sha1-0.11.100.1.
  Build log (
  C:\Users\Pichau\AppData\Roaming\etlas\logs\eta-0.7.2.1\cryptohash-sh_-0.11.10_-695768348bd51bab30275dc2c81d2422dcf92904.log
  ):
  Preprocessing library for cryptohash-sha1-0.11.100.1..
  Building library for cryptohash-sha1-0.11.100.1..

  [1 of 1] Compiling Crypto.Hash.SHA1eta.exe: panic! (the 'impossible' happened)
    (Eta version 0.7.2b1):
        tcCheckFIType: Unsupported calling convention.
    ccall unsafe "value sha1.h hs_cryptohash_sha1_finalize"

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

I am using gradle 4.7 with the etlas plugin on a Windows machine.

@jneira
Copy link
Collaborator

jneira commented May 14, 2018

Hi and thanks to try eta!
It seems cryptohash-md5 package uses calls to c native code (with the ccall unsafe "value sha1.h hs_cryptohash_sha1_finalize") and i am afraid eta does not support it by design.
The fix usually involves create a patch for the package in the eta-hackage patch set, replacing the c calls with java ones. As uuid seems to be a useful package i've filled an issue to track the request for the patch: typelead/eta-hackage#90

@jneira
Copy link
Collaborator

jneira commented Jun 5, 2018

@glhrmfrts thanks to the patchs done by @Jyothsnasrinivas the uuid package compilation should not fail with those errors, feel free to reopen of fill anothe issue if it still does not compile

@jneira jneira closed this as completed Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants