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

cross-compilation Stage1Only not working #585

Closed izgzhen closed 5 years ago

izgzhen commented 6 years ago
STAGE=2 -optc-DTHREADED_RTS -DGHCI_TABLES_NEXT_TO_CODE -Wno-deprecated-flags -Wcpp-undef
| Run Ghc CompileHs Stage1: compiler/iface/LoadIface.hs => _build/stage1/compiler/build/LoadIface.o
_build/stage0/bin/arm-linux-gnueabihf-ghc -Wall -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db '-package-db _build/stage1/lib/package.conf.d' '-this-unit-id ghc-8.5' '-package-id array-0.5.2.0' '-package-id base-4.12.0.0' '-package-id binary-0.8.5.1' '-package-id bytestring-0.10.8.2' '-package-id containers-0.5.11.0' '-package-id deepseq-1.4.4.0' '-package-id directory-1.3.2.3' '-package-id filepath-1.4.2' '-package-id ghc-boot-8.5' '-package-id ghc-boot-th-8.5' '-package-id ghci-8.5' '-package-id hpc-0.6.0.3' '-package-id process-1.6.3.0' '-package-id template-haskell-2.14.0.0' '-package-id time-1.8.0.2' '-package-id transformers-0.5.5.0' '-package-id unix-2.8.0.0' -i -i_build/stage1/compiler/build -Iincludes -i_build/stage1/compiler/build/autogen -icompiler/backpack -icompiler/basicTypes -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn -icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface -icompiler/llvmGen -icompiler/main -icompiler/nativeGen -icompiler/parser -icompiler/prelude -icompiler/profiling -icompiler/rename -icompiler/simplCore -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn -icompiler/stranal -icompiler/typecheck -icompiler/types -icompiler/utils -icompiler/vectorise -I_build/generated -I_build/stage1/compiler/build -I_build/stage1/compiler/build/. -I_build/stage1/compiler/build/parser -I_build/stage1/compiler/build/utils -I_build/stage1/compiler/build/../rts/dist/build -Icompiler/. -Icompiler/parser -Icompiler/utils -Icompiler/../rts/dist/build -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/process-1.6.3.0/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/unix-2.8.0.0/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/time-1.8.0.2/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/bytestring-0.10.8.2/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/base-4.12.0.0/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/rts-1.0/include -I_build/generated -optc-I_build/generated -optP-include -optP_build/stage1/compiler/build/autogen/cabal_macros.h -optc-marm -optc-fno-stack-protector -optP-DGHCI -odir _build/stage1/compiler/build -hidir _build/stage1/compiler/build -stubdir _build/stage1/compiler/build -Wnoncanonical-monad-instances -optc-Werror=unused-but-set-variable -optc-Wno-error=inline -c compiler/iface/LoadIface.hs -o _build/stage1/compiler/build/LoadIface.o -O0 -H64m -Wall -Wno-name-shadowing -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wnoncanonical-monoid-instances -this-unit-id ghc -XHaskell2010 -XNoImplicitPrelude -ghcversion-file=/home/zhen/repos/ghc/_build/generated/ghcversion.h -DSTAGE=2 -optc-DTHREADED_RTS -DGHCI_TABLES_NEXT_TO_CODE -Wno-deprecated-flags -Wcpp-undef
You are using an unsupported version of LLVM!
Currently only 5.0 is supported.
We will try though...
You are using an unsupported version of LLVM!
Currently only 5.0 is supported.
We will try though...
| Run Ghc CompileHs Stage1: compiler/main/HeaderInfo.hs => _build/stage1/compiler/build/HeaderInfo.o
_build/stage0/bin/arm-linux-gnueabihf-ghc -Wall -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db '-package-db _build/stage1/lib/package.conf.d' '-this-unit-id ghc-8.5' '-package-id array-0.5.2.0' '-package-id base-4.12.0.0' '-package-id binary-0.8.5.1' '-package-id bytestring-0.10.8.2' '-package-id containers-0.5.11.0' '-package-id deepseq-1.4.4.0' '-package-id directory-1.3.2.3' '-package-id filepath-1.4.2' '-package-id ghc-boot-8.5' '-package-id ghc-boot-th-8.5' '-package-id ghci-8.5' '-package-id hpc-0.6.0.3' '-package-id process-1.6.3.0' '-package-id template-haskell-2.14.0.0' '-package-id time-1.8.0.2' '-package-id transformers-0.5.5.0' '-package-id unix-2.8.0.0' -i -i_build/stage1/compiler/build -Iincludes -i_build/stage1/compiler/build/autogen -icompiler/backpack -icompiler/basicTypes -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn -icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface -icompiler/llvmGen -icompiler/main -icompiler/nativeGen -icompiler/parser -icompiler/prelude -icompiler/profiling -icompiler/rename -icompiler/simplCore -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn -icompiler/stranal -icompiler/typecheck -icompiler/types -icompiler/utils -icompiler/vectorise -I_build/generated -I_build/stage1/compiler/build -I_build/stage1/compiler/build/. -I_build/stage1/compiler/build/parser -I_build/stage1/compiler/build/utils -I_build/stage1/compiler/build/../rts/dist/build -Icompiler/. -Icompiler/parser -Icompiler/utils -Icompiler/../rts/dist/build -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/process-1.6.3.0/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/unix-2.8.0.0/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/time-1.8.0.2/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/bytestring-0.10.8.2/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/base-4.12.0.0/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/rts-1.0/include -I_build/generated -optc-I_build/generated -optP-include -optP_build/stage1/compiler/build/autogen/cabal_macros.h -optc-marm -optc-fno-stack-protector -optP-DGHCI -odir _build/stage1/compiler/build -hidir _build/stage1/compiler/build -stubdir _build/stage1/compiler/build -Wnoncanonical-monad-instances -optc-Werror=unused-but-set-variable -optc-Wno-error=inline -c compiler/main/HeaderInfo.hs -o _build/stage1/compiler/build/HeaderInfo.o -O0 -H64m -Wall -Wno-name-shadowing -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -Wnoncanonical-monoid-instances -this-unit-id ghc -XHaskell2010 -XNoImplicitPrelude -ghcversion-file=/home/zhen/repos/ghc/_build/generated/ghcversion.h -DSTAGE=2 -optc-DTHREADED_RTS -DGHCI_TABLES_NEXT_TO_CODE -Wno-deprecated-flags -Wcpp-undef
You are using an unsupported version of LLVM!
Currently only 5.0 is supported.
We will try though...
| Run Ghc CompileHs Stage1: compiler/codeGen/StgCmmExpr.hs => _build/stage1/compiler/build/StgCmmExpr.o
_build/stage0/bin/arm-linux-gnueabihf-ghc -Wall -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db '-package-db _build/stage1/lib/package.conf.d' '-this-unit-id ghc-8.5' '-package-id array-0.5.2.0' '-package-id base-4.12.0.0' '-package-id binary-0.8.5.1' '-package-id bytestring-0.10.8.2' '-package-id containers-0.5.11.0' '-package-id deepseq-1.4.4.0' '-package-id directory-1.3.2.3' '-package-id filepath-1.4.2' '-package-id ghc-boot-8.5' '-package-id ghc-boot-th-8.5' '-package-id ghci-8.5' '-package-id hpc-0.6.0.3' '-package-id process-1.6.3.0' '-package-id template-haskell-2.14.0.0' '-package-id time-1.8.0.2' '-package-id transformers-0.5.5.0' '-package-id unix-2.8.0.0' -i -i_build/stage1/compiler/build -Iincludes -i_build/stage1/compiler/build/autogen -icompiler/backpack -icompiler/basicTypes -icompiler/cmm -icompiler/codeGen -icompiler/coreSyn -icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface -icompiler/llvmGen -icompiler/main -icompiler/nativeGen -icompiler/parser -icompiler/prelude -icompiler/profiling -icompiler/rename -icompiler/simplCore -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn -icompiler/stranal -icompiler/typecheck -icompiler/types -icompiler/utils -icompiler/vectorise -I_build/generated -I_build/stage1/compiler/build -I_build/stage1/compiler/build/. -I_build/stage1/compiler/build/parser -I_build/stage1/compiler/build/utils -I_build/stage1/compiler/build/../rts/dist/build -Icompiler/. -Icompiler/parser -Icompiler/utils -Icompiler/../rts/dist/build -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/process-1.6.3.0/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/unix-2.8.0.0/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/time-1.8.0.2/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/bytestring-0.10.8.2/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/base-4.12.0.0/include -I/home/zhen/repos/ghc/_build/stage1/lib/arm-linux-ghc-8.5.20180425/rts-1.0/include -I_build/generated -optc-I_build/generated -optP-include -optP_build/stage1/compiler/build/autogen/cabal_macros.h -optc-marm -optc-fno-stack-protector -optP-DGHCI -odir _build/stage1/compiler/build -hi
snowleopard commented 5 years ago

I believe this has been fixed.