Closed vmchale closed 6 years ago
Steps to reproduce:
git clone --recursive git://git.haskell.org/ghc.git cd ghc rm -rf hadrian git clone git@github.com:snowleopard/hadrian.git ./hadrian/build.sh -j -c
this fails with
collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) shakeArgsWith 0.000s 0% Function shake 0.345s 0% Database read 0.000s 0% With database 0.000s 0% Running rules 1058.681s 99% ========================= Total 1059.026s 100% Error when running Shake build system: * _build/stage1/bin/hpc user error (Development.Shake.cmd, system command failed Command: _build/stage0/bin/ghc -Wall -hisuf hi -osuf o -hcsuf hc -static -hide-all-packages -no-user-package-db '-package-db _build/stage1/lib/package.conf.d' '-package-id array-0.5.2.0' '-package-id base-4.12.0.0' '-package-id containers-0.5.11.0' '-package-id directory-1.3.2.3' '-package-id filepath-1.4.2' '-package-id hpc-0.6.0.3' -i -i_build/stage1/utils/hpc/build -i_build/stage1/utils/hpc/build/hpc/autogen -iutils/hpc/. -Iincludes -I_build/generated -I_build/stage1/utils/hpc/build -I/home/vanessa/git-builds/ghc/_build/stage1/lib/x86_64-linux-ghc-8.5.20180512/unix-2.8.0.0/include -I/home/vanessa/git-builds/ghc/_build/stage1/lib/x86_64-linux-ghc-8.5.20180512/time-1.8.0.2/include -I/home/vanessa/git-builds/ghc/_build/stage1/lib/x86_64-linux-ghc-8.5.20180512/bytestring-0.10.8.2/include -I/home/vanessa/git-builds/ghc/_build/stage1/lib/x86_64-linux-ghc-8.5.20180512/base-4.12.0.0/include -I/home/vanessa/git-builds/ghc/_build/stage1/lib/x86_64-linux-ghc-8.5.20180512/integer-gmp-1.0.2.0/include -I/home/vanessa/git-builds/ghc/_build/stage1/lib/x86_64-linux-ghc-8.5.20180512/rts-1.0/include -I_build/generated -optc-I_build/generated -optP-include -optP_build/stage1/utils/hpc/build/hpc/autogen/cabal_macros.h -optc-fno-stack-protector -odir _build/stage1/utils/hpc/build -hidir _build/stage1/utils/hpc/build -stubdir _build/stage1/utils/hpc/build -no-auto-link-packages -rtsopts -optl-lgmp -Wnoncanonical-monad-instances -optc-Werror=unused-but-set-variable -optc-Wno-error=inline _build/stage1/utils/hpc/build/Main.o _build/stage1/utils/hpc/build/HpcParser.o _build/stage1/utils/hpc/build/HpcCombine.o _build/stage1/utils/hpc/build/HpcDraft.o _build/stage1/utils/hpc/build/HpcFlags.o _build/stage1/utils/hpc/build/HpcLexer.o _build/stage1/utils/hpc/build/HpcMarkup.o _build/stage1/utils/hpc/build/HpcOverlay.o _build/stage1/utils/hpc/build/HpcReport.o _build/stage1/utils/hpc/build/HpcShowTix.o _build/stage1/utils/hpc/build/HpcUtils.o _build/stage1/utils/hpc/build/Paths_hpc_bin.o -o _build/stage1/bin/hpc -O0 -H64m -XHaskell2010 -ghcversion-file=/home/vanessa/git-builds/ghc/_build/generated/ghcversion.h Exit code: 1 Stderr: _build/stage1/lib/../lib/x86_64-linux-ghc-8.5.20180512/rts-1.0/libHSrts-1.0.a(OSMem.o):function osBindMBlocksToNode: error: undefined reference to 'mbind' _build/stage1/lib/../lib/x86_64-linux-ghc-8.5.20180512/rts-1.0/libHSrts-1.0.a(OSMem.o):function osNumaAvailable: error: undefined reference to 'numa_available' _build/stage1/lib/../lib/x86_64-linux-ghc-8.5.20180512/rts-1.0/libHSrts-1.0.a(OSMem.o):function osNumaMask: error: undefined reference to 'numa_get_mems_allowed' _build/stage1/lib/../lib/x86_64-linux-ghc-8.5.20180512/rts-1.0/libHSrts-1.0.a(OSMem.o):function osNumaMask: error: undefined reference to 'numa_num_configured_nodes' _build/stage1/lib/../lib/x86_64-linux-ghc-8.5.20180512/rts-1.0/libHSrts-1.0.a(OSMem.o):function osNumaMask: error: undefined reference to 'numa_bitmask_free' _build/stage1/lib/../lib/x86_64-linux-ghc-8.5.20180512/rts-1.0/libHSrts-1.0.a(OSMem.o):function osNumaMask: error: undefined reference to 'numa_num_configured_nodes' _build/stage1/lib/../lib/x86_64-linux-ghc-8.5.20180512/rts-1.0/libHSrts-1.0.a(OSMem.o):function osNumaNodes: error: undefined reference to 'numa_num_configured_nodes' _build/stage1/lib/../lib/x86_64-linux-ghc-8.5.20180512/rts-1.0/libHSrts-1.0.a(OSThreads.o):function setThreadNode: error: undefined reference to 'numa_run_on_node' _build/stage1/lib/../lib/x86_64-linux-ghc-8.5.20180512/rts-1.0/libHSrts-1.0.a(OSThreads.o):function releaseThreadNode: error: undefined reference to 'numa_run_on_node' collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) )
Any insight appreciated!
Hey @vmchale! I take it the issue has been resolved?
Yes! It turned out to be a duplicate issue :)
Aha, indeed, it's #559.
Steps to reproduce:
this fails with
Any insight appreciated!