haskell / c2hs

c2hs is a pre-processor for Haskell FFI bindings to C libraries
http://hackage.haskell.org/package/c2hs
Other
198 stars 50 forks source link

Can't build cpthyon on Macos Sierra #178

Closed JulianZhang closed 7 years ago

JulianZhang commented 7 years ago

My system is Macos Sierra, When I build cpython I get error as blow.

-- While building package cpython-3.4.0 using: ~/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.5.0 build --ghc-options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure 1 Logs have been written to: ./.stack-work/logs/cpython-3.4.0.log

Configuring cpython-3.4.0...
Building cpython-3.4.0...
Preprocessing library cpython-3.4.0...
c2hs: C header contains errors:

/usr/include/stdio.h:133: (column 19) [ERROR]  >>> Syntax error !
  The symbol `_close' does not fit here.
mchakravarty commented 7 years ago

This is a duplicate of #176.