This repository was archived by the owner on Sep 20, 2023. It is now read-only.
This repository was archived by the owner on Sep 20, 2023. It is now read-only.
ghci is broken by capi
calling convention #442
Open
Description
Related to #420
Compiling Foundation.System.Bindings.Posix ( .stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.0.2/build/Foundation/System/Bindings/Posix.hs, interpreted )
Error: bytecode compiler can't handle some foreign calling conventions
Workaround: use -fobject-code, or compile this module to .o separately.
Options:
- remove
capi
in favor of ignoring the variadic function (since it's not used this way on most system) - jump through a C binding function
- hide
capi
under an ifdef for system that are not BSD,Linux,OSX (using the real variadic api for system that could be using it, hence maximing portability)