
Hi, I'm unable to build a profiled version of GHC Head. I did: git clone --recursive https://gitlab.haskell.org/ghc/ghc ghcprof cd ghcprof git remote set-url --add origin https://gitlab.haskell.org/RolandSenn/ghc git remote set-url --delete origin https://gitlab.haskell.org/ghc/ghc git remote add upstream https://gitlab.haskell.org/ghc/ghc git fetch upstream git push origin master hadrian/build.sh -c --flavour=prof -j2 I get the follwoing failure: ... | Run Ghc CompileCWithGhc Stage1: utils/hp2ps/Utilities.c => _build/stage1/utils/hp2ps/build/c/Utilities.dyn_o | Run Cc FindCDependencies Stage1: libraries/ghc-prim/cbits/atomic.c => _build/stage1/libraries/ghc-prim/build/c/cbits/atomic.p_o.d | Run Ghc CompileCWithGhc Stage1: libraries/ghc-prim/cbits/atomic.c => _build/stage1/libraries/ghc-prim/build/c/cbits/atomic.p_o | Run HsCpp: compiler/prelude/primops.txt.pp => _build/stage1/compiler/build/primops.txt | Run GenPrimopCode: _build/stage1/compiler/build/primops.txt => _build/stage1/libraries/ghc-prim/build/GHC/Prim.hs libraries/ghc-prim/cbits/atomic.c: In function ‘hs_atomic_nand8’: libraries/ghc-prim/cbits/atomic.c:181:10: error: note: ‘__sync_fetch_and_nand’ changed semantics in GCC 4.4 return __sync_fetch_and_nand((volatile StgWord8 *) x, (StgWord8) val); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 181 | return __sync_fetch_and_nand((volatile StgWord8 *) x, (StgWord8) val); | ^ | Run Cc FindCDependencies Stage1: libraries/ghc-prim/cbits/pext.c => _build/stage1/libraries/ghc-prim/build/c/cbits/pext.dyn_o.d | Run Cc FindCDependencies Stage1: utils/hp2ps/Main.c => _build/stage1/utils/hp2ps/build/c/Main.dyn_o.d | Run Ghc CompileCWithGhc Stage1: libraries/ghc-prim/cbits/pext.c => _build/stage1/libraries/ghc-prim/build/c/cbits/pext.dyn_o | Run GenPrimopCode: _build/stage1/compiler/build/primops.txt => _build/stage1/libraries/ghc-prim/build/GHC/PrimopWrappers.hs | Run Ghc FindHsDependencies Stage1: libraries/ghc-prim/GHC/CString.hs (and 7 more) => _build/stage1/libraries/ghc-prim/.dependencies.mk | Run Ghc CompileCWithGhc Stage1: libraries/ghc-prim/cbits/pext.c => _build/stage1/libraries/ghc-prim/build/c/cbits/pext.p_o | Remove file _build/stage1/libraries/ghc-prim/.dependencies.mk.bak Error when running Shake build system: at action, called at src/Rules.hs:68:19 in main:Rules at need, called at src/Rules.hs:85:5 in main:Rules * Depends on: _build/stage1/bin/ghc at need, called at src/Utilities.hs:71:18 in main:Utilities * Depends on: _build/stage1/libraries/ghc-prim/build/libHSghc-prim-0.6.1_p-ghc8.9.20190408.so at need, called at src/Rules/Library.hs:121:5 in main:Rules.Library * Depends on: _build/stage1/libraries/ghc-prim/build/GHC/IntWord64.p_dyn_o at error, called at src/Hadrian/Oracles/TextFile.hs:65:20 in main:Hadrian.Oracles.TextFile * Raised the exception: No dependencies found for file '_build/stage1/libraries/ghc-prim/build/GHC/IntWord64.p_dyn_o' I'm using Debian 9; x64_86; GHC 8.6.3; gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 Any ideas what's wrong? Many thanks and kind regards Roland