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

hoogle: failed to build #961

Open
pjrt opened this issue May 3, 2019 · 3 comments
Open

hoogle: failed to build #961

pjrt opened this issue May 3, 2019 · 3 comments

Comments

@pjrt
Copy link

pjrt commented May 3, 2019

Description

I tried to build hoogle (sha: fca9b98652540ac513af99cca0c103ac83444b5c) with etlas build. Got the following error:

Building library for mmap-0.5.9..
[1 of 1] Compiling System.IO.MMap  eta: panic! (the 'impossible' happened)
  (Eta version 0.8.6b5):
	tcCheckFIType: Unsupported calling convention.
  ccall unsafe "value HsMmap.h system_io_mmap_granularity"

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

etlas: Failed to build mmap-0.5.9 (which is required by exe:hoogle from
hoogle-5.0.17.6). See the build log above for details.

Steps to Reproduce

  1. Clone the hoogle repo
  2. run etlas build

Context

Your Environment

etlas version 1.5.0.0
compiled using version 2.1.0.0 of the etlas-cabal library 
$ uname -a
Linux <HOSTNAME> 5.0.6-arch1-1-ARCH #1 SMP PREEMPT Wed Apr 3 09:35:20 UTC 2019 x86_64 GNU/Linux
@jneira
Copy link
Collaborator

jneira commented May 4, 2019

Hi, i am afraid that the mmap package has a lot of calls to c funtions and eta does not support them. Either the mmap package should be patched (see https://github.com/typelead/eta-hackage/tree/master) replacing c calls with java ones or hoogle itself should be patched replacing the calls to mmap package.

@vmchale
Copy link

vmchale commented Sep 28, 2019

perhaps the error message could be rewritten? If this is not an eta bug, the compiler need not report it as such

@jneira
Copy link
Collaborator

jneira commented Sep 28, 2019

yeah, it could be a specific, more helpful error. But i would like to implicitly translate c imports to java ones, like ghcjs, so patching would be easier: #966

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

3 participants