error: 'FFI_GO_CLOSURES' macro redefined
When compiling master on MacOS, I'm getting this error:
| Run Ghc CompileCWithGhc Stage1: rts/Disassembler.c => _build/stage1/rts/build/c/Disassembler.debug_o
Command line: _build/stage0/bin/ghc -Wall -hisuf thr_debug_dyn_hi -osuf thr_debug_dyn_o -hcsuf thr_debug_dyn_hc -fPIC -dynamic -DTHREADED_RTS -DDEBUG -optc-DTHREADED_RTS -optc-DDEBUG -hide-all-packages -no-user-package-db '-package-env -' '-package-db _build/stage1/inplace/package.conf.d' '-this-unit-id rts-1.0.2' -i -i/Users/jaro/haskell/ghc/_build/stage1/rts/build -i/Users/jaro/haskell/ghc/_build/stage1/rts/build/autogen -i/Users/jaro/haskell/ghc/rts -Irts/include -I_build/stage1/rts/build -I_build/stage1/rts/build/include -Irts/include -optP-include -optP_build/stage1/rts/build/autogen/cabal_macros.h -ghcversion-file=rts/include/ghcversion.h -optc--target=x86_64-apple-darwin -optc-Qunused-arguments -outputdir _build/stage1/rts/build -fdiagnostics-color=always -this-unit-id rts -XHaskell98 -no-global-package-db -package-db=/Users/jaro/haskell/ghc/_build/stage1/inplace/package.conf.d -ghcversion-file=rts/include/ghcversion.h -ghcversion-file=rts/include/ghcversion.h -optc--target=x86_64-apple-darwin -optc-Qunused-arguments -optc-Irts/include -optc-I_build/stage1/rts/build -optc-I_build/stage1/rts/build/include -optc-Irts/include -optc-fPIC -optc-DDYNAMIC -Wnoncanonical-monad-instances -optc-Wno-unknown-pragmas -optP-Wno-nonportable-include-path -c rts/Interpreter.c -o _build/stage1/rts/build/c/Interpreter.thr_debug_dyn_o -O -Werror -optc-Werror -optc-Wno-error=unknown-pragmas -optc-Wno-error=inline -optc-Wall -optc-Wextra -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-Wredundant-decls -optc-Wundef -optc-fno-strict-aliasing -optc-DTHREADED_RTS -optc-DDEBUG -optc-fomit-frame-pointer -optc-O2 -optc-Irts -optc-I_build/stage1/rts/build -optc-DDEBUG -optc-fno-omit-frame-pointer -optc-g3 -optc-O0 -Irts -I_build/stage1/rts/build '-DRtsWay="rts_thr_debug_dyn"' -DFS_NAMESPACE=rts -DCOMPILING_RTS -DTHREADED_RTS -Wno-deprecated-flags -Wcpp-undef
===> Command failed with error code: 1
In file included from rts/Interpreter.c:42:0: error:
In file included from rts/include/rts/ghc_ffi.h:28:0: error:
In file included from _build/stage1/rts/build/include/ffi.h:84:0: error:
_build/stage1/rts/build/include/ffitarget.h:133:9: error:
error: 'FFI_GO_CLOSURES' macro redefined [-Werror,-Wmacro-redefined]
|
133 | #define FFI_GO_CLOSURES 1
| ^
#define FFI_GO_CLOSURES 1
^
rts/include/rts/ghc_ffi.h:24:9: error:
note: previous definition is here
|
24 | #define FFI_GO_CLOSURES 0
| ^
#define FFI_GO_CLOSURES 0
^
1 error generated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)
hadrian: getProcessGroupIDOf: does not exist (No such process)
Command failed
Build failed.