eta icon indicating copy to clipboard operation
eta copied to clipboard

hoogle: failed to build

Open pjrt opened this issue 6 years ago • 3 comments

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

pjrt avatar May 03 '19 21:05 pjrt

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.

jneira avatar May 04 '19 19:05 jneira

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

vmchale avatar Sep 28 '19 20:09 vmchale

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: https://github.com/typelead/eta/issues/966

jneira avatar Sep 28 '19 21:09 jneira