Unable to build a profiled version of GHC Head
Roland Senn
rsx at bluewin.ch
Tue Apr 9 15:54:47 UTC 2019
Hi Matt,
Thanks for looking into this and preparing a patch. Take your time, I
don't need it urgently.
Regards
Roland
Am Dienstag, den 09.04.2019, 15:15 +0100 schrieb Matthew Pickering:
> Ticket: https://gitlab.haskell.org/ghc/ghc/issues/16562
>
> Not working on this anymore today.
>
> Matt
>
> On Tue, Apr 9, 2019 at 3:07 PM Matthew Pickering
> <matthewtpickering at gmail.com> wrote:
> >
> > Seems like the cause is that the `profiledDynamic` way is not
> > enabled.
> > Testing out a patch to fix this locally now.
> >
> > Matt
> >
> > On Tue, Apr 9, 2019 at 2:54 PM Matthew Pickering
> > <matthewtpickering at gmail.com> wrote:
> > >
> > > Hi Roland,
> > >
> > > I can reproduce this. No idea about how to fix it at the moment
> > > but
> > > looks like a bug in hadrian.
> > >
> > > Matt
> > >
> > > On Tue, Apr 9, 2019 at 11:20 AM Roland Senn <rsx at bluewin.ch>
> > > wrote:
> > > >
> > > > 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/Ro
> > > > landSenn/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
> > > >
> > > > _______________________________________________
> > > > ghc-devs mailing list
> > > > ghc-devs at haskell.org
> > > > http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
More information about the ghc-devs
mailing list