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

unix fails to build on macOS Sierra

FranklinChen opened this issue · comments

When I tried etlas install hspec, it failed, with an indirect dependency on unix, so here is the isolated failed unix build:

$ etlas install unix
[...]
configure: creating ./config.status
config.status: creating unix.buildinfo
config.status: creating include/HsUnixConfig.h
configure: WARNING: unrecognized options: --with-compiler
Preprocessing library for unix-2.7.2.1..
In file included from Resource.hsc:28:
include/HsUnix.h:13:10: fatal error: 'HsFFI.h' file not found
#include "HsFFI.h"
         ^
1 error generated.
compiling dist/build/System/Posix/Resource_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c dist/build/System/Posix/Resource_hsc_make.c -o dist/build/System/Posix/Resource_hsc_make.o -Iinclude -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/Users/chen/.etlas/lib/x86_64-osx-eta-0.0.6.8-ghc7_10_3/base-4.8.2.0-IPFDtZjmEfh5tPXF10v5hF/include -I/Users/chen/.etlas/lib/x86_64-osx-eta-0.0.6.8-ghc7_10_3/rts-0.1.0.0-5Dj4qf1Wx9cCeYbpni5T1w/include
etlas: Leaving directory '/var/folders/xz/z3wrll111zn03hdhkd_pxs5w0000gp/T/etlas-tmp-33991/unix-2.7.2.1'
etlas: Error: some packages failed to install:
unix-2.7.2.1-AwcK3ka9q5o5yY0lpEawoF failed during the building phase. The
exception was:
ExitFailure 1

Hi @FranklinChen, hspec should be working now! Feel free to re-open if it doesn't work. You may need to manually install directory-1.3.1.0 because the latest one doesn't compile yet.