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