snowleopard / hadrian

Hadrian: a new build system for the Glasgow Haskell Compiler. Now merged into the GHC tree!
https://gitlab.haskell.org/ghc/ghc/tree/master/hadrian
MIT License
208 stars 39 forks source link

Cannot build RTS on Windows #611

Closed snowleopard closed 6 years ago

snowleopard commented 6 years ago

After #610, the Windows build fails with the following error:

Command: _build/stage0/bin/ghc.exe -Wall -hisuf debug_hi -osuf debug_o -hcsuf debug_hc -static -optc-DDEBUG -ticky -DTICKY_TICKY -hide-all-packages -no-user-package-db "-package-db _build/stage1/lib/package.conf.d" "-this-unit-id rts-1.0" -i -i_build/stage1/rts/build -i_build/stage1/rts/build/autogen -irts/. -Iincludes -I_build/generated -I_build/stage1/rts/build -I_build/stage1/rts/build/build -I_build/stage1/rts/build/../includes -I_build/stage1/rts/build/includes -I_build/stage1/rts/build/includes/dist-derivedconstants/header -Irts/build -Irts/../includes -Irts/includes -Irts/includes/dist-derivedconstants/header -I_build/generated -optc-I_build/generated -optP-include -optP_build/stage1/rts/build/autogen/cabal_macros.h -ghcversion-file=_build/generated/ghcversion.h -optc-fno-stack-protector -odir _build/stage1/rts/build -hidir _build/stage1/rts/build -stubdir _build/stage1/rts/build -optc-fno-stack-protector -optc-Iincludes -optc-I_build/generated -optc-I_build/stage1/rts/build -optc-I_build/stage1/rts/build/build -optc-I_build/stage1/rts/build/../includes -optc-I_build/stage1/rts/build/includes -optc-I_build/stage1/rts/build/includes/dist-derivedconstants/header -optc-Irts/build -optc-Irts/../includes -optc-Irts/includes -optc-Irts/includes/dist-derivedconstants/header -Wnoncanonical-monad-instances -optc-Wno-error=inline -c rts/StgCRun.c -o _build/stage1/rts/build/c/StgCRun.debug_o -O0 -H64m -this-unit-id rts -XHaskell98 -ghcversion-file=D:/msys/home/nam83/ghc/_build/generated/ghcversion.h -optc-Irts -optc-Wall -optc-Wextra -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wpointer-arith -optc-Wmissing-noreturn -optc-Wnested-externs -optc-Wredundant-decls -optc-Wundef -optc-fno-strict-aliasing -optc-I_build/stage1/rts/build "-optc-DRtsWay=\"rts_debug\"" -optc-DFS_NAMESPACE=rts -optc-O2 -optc-DDEBUG -optc-DTICKY_TICKY -optc-w -optc-Wno-return-local-addr -optc-DWINVER=0x06000100 -Irts -Wno-deprecated-flags -Wcpp-undef
Exit code: 1
Stderr:
C:\\Users\\nam83\\AppData\\Local\\Temp\\ghc11648_0\\ghc_1.s: Assembler messages:
C:\\Users\\nam83\\AppData\\Local\\Temp\\ghc11648_0\\ghc_1.s:45: Error: CFI instruction used without previous .cfi_startproc
C:\\Users\\nam83\\AppData\\Local\\Temp\\ghc11648_0\\ghc_1.s:46: Error: CFI instruction used without previous .cfi_startproc
C:\\Users\\nam83\\AppData\\Local\\Temp\\ghc11648_0\\ghc_1.s:47: Error: CFI instruction used without previous .cfi_startproc
C:\\Users\\nam83\\AppData\\Local\\Temp\\ghc11648_0\\ghc_1.s:48: Error: CFI instruction used without previous .cfi_startproc
C:\\Users\\nam83\\AppData\\Local\\Temp\\ghc11648_0\\ghc_1.s:49: Error: CFI instruction used without previous .cfi_startproc
C:\\Users\\nam83\\AppData\\Local\\Temp\\ghc11648_0\\ghc_1.s:50: Error: CFI instruction used without previous .cfi_startproc
C:\\Users\\nam83\\AppData\\Local\\Temp\\ghc11648_0\\ghc_1.s:51: Error: CFI instruction used without previous .cfi_startproc
C:\\Users\\nam83\\AppData\\Local\\Temp\\ghc11648_0\\ghc_1.s:52: Error: CFI instruction used without previous .cfi_startproc
C:\\Users\\nam83\\AppData\\Local\\Temp\\ghc11648_0\\ghc_1.s:53: Error: CFI instruction used without previous .cfi_startproc
`gcc.exe' failed in phase `Assembler'. (Exit code: 1)
)
angerman commented 6 years ago

Mac fails similarly. @cartazio just hit that the other day. There is an open diff in Phabricator by @bgamari, that’s likely going to be merged soon.

snowleopard commented 6 years ago

@angerman Aha, thanks! Indeed, the Windows and OSX problems look related.

snowleopard commented 6 years ago

So, this turned out to be unrelated to the OSX failure. The above commit fixed this.