Skip to content

Multithreaded build failure

Building HEAD via sh validate fails with

"inplace/bin/ghc-stage2"   -H32m -O -Wall -Werror -H64m -O0    -package-name dph-seq-0.5 -hide-all-packages -i -ilibraries/dph/dph-seq/../dph-common -ilibraries/dph/dph-seq/dist-install/build -ilibraries/dph/dph-seq/dist-install/build/autogen -Ilibraries/dph/dph-seq/dist-install/build -Ilibraries/dph/dph-seq/dist-install/build/autogen -Ilibraries/dph/dph-seq/.    -optP-include -optPlibraries/dph/dph-seq/dist-install/build/autogen/cabal_macros.h -package array-0.3.0.2 -package base-4.3.1.0 -package dph-base-0.5 -package dph-prim-seq-0.5 -package ghc-7.1.20110624 -package ghc-prim-0.2.0.0 -package random-1.0.0.3 -package template-haskell-2.5.0.0  -Odph -funbox-strict-fields -fcpr-off -fdph-this -package-name dph-seq -XHaskell98 -XTypeFamilies -XGADTs -XRankNTypes -XBangPatterns -XMagicHash -XUnboxedTuples -XTypeOperators -O2 -O -dcore-lint -fno-warn-deprecated-flags -no-user-package-conf -rtsopts -Wwarn    -odir libraries/dph/dph-seq/dist-install/build -hidir libraries/dph/dph-seq/dist-install/build -stubdir libraries/dph/dph-seq/dist-install/build -hisuf hi -osuf  o -hcsuf hc -c libraries/dph/dph-seq/../dph-common/Data/Array/Parallel/PArray/PData.hs -o libraries/dph/dph-seq/dist-install/build/Data/Array/Parallel/PArray/PData.o
Loading package ghc-prim ... linking ... done.
<snip>
Loading package dph-base-0.5 ... linking ... done.
Loading package dph-prim-interface-0.5 ... linking ... done.
Loading package dph-prim-seq-0.5 ... <command line>: can't load .so/.DLL for: HSdph-prim-seq-0.5 (libHSdph-prim-seq-0.5.so: cannot open shared object file: No such file or directory)
gmake[1]: *** [libraries/dph/dph-seq/dist-install/build/Data/Array/Parallel/PArray/PData.o] Fehler 1
gmake[1]: *** Warte auf noch nicht beendete Prozesse...
gmake: *** [all] Fehler 2

The build goes through when I invoke THREADS=1 sh validate, but it also fails when I specify THREADS=2. The build always fails at the same place, with the same error, it seems that with multiple threads, it tries to build dph-seq before dph-prim-seq is completed.

Trac metadata
Trac field Value
Version 7.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture x86_64 (amd64)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information