Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629028 - dev-lang/ghc-8.0.2 : libraries/.../atomic.c:127:10: error:
Summary: dev-lang/ghc-8.0.2 : libraries/.../atomic.c:127:10: error:
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-27 08:20 UTC by Toralf Förster
Modified: 2017-08-27 09:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,14.17 KB, text/plain)
2017-08-27 08:20 UTC, Toralf Förster
Details
dev-lang:ghc-8.0.2:20170827-031734.log.bz2 (dev-lang:ghc-8.0.2:20170827-031734.log.bz2,142.08 KB, application/x-bzip)
2017-08-27 08:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,30.98 KB, text/plain)
2017-08-27 08:20 UTC, Toralf Förster
Details
environment (environment,143.59 KB, text/plain)
2017-08-27 08:20 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.03 KB, application/x-bzip)
2017-08-27 08:20 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,31.63 KB, application/x-bzip)
2017-08-27 08:20 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,179.45 KB, application/x-bzip)
2017-08-27 08:20 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-08-27 08:20:12 UTC
libraries/ghc-prim/cbits/atomic.c: In function ‘hs_atomic_nand8’:

libraries/ghc-prim/cbits/atomic.c:127:10: error:
     note: ‘__sync_fetch_and_nand’ changed semantics in GCC 4.4
       return __sync_fetch_and_nand((volatile StgWord8 *) x, (StgWord8) val);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0_libressl_20170826-115304

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *



emerge -qpv dev-lang/ghc
[nomerge      ] dev-lang/ghc-8.0.2  USE="gmp profile -binary -doc -ghcbootstrap -ghcmakebinary" 
[ebuild  N    ]  app-admin/haskell-updater-1.2.10 
[ebuild  N    ]   dev-lang/ghc-8.0.2  USE="gmp profile -binary -doc -ghcbootstrap -ghcmakebinary"
Comment 1 Toralf Förster gentoo-dev 2017-08-27 08:20:15 UTC
Created attachment 490818 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-08-27 08:20:19 UTC
Created attachment 490820 [details]
dev-lang:ghc-8.0.2:20170827-031734.log.bz2
Comment 3 Toralf Förster gentoo-dev 2017-08-27 08:20:22 UTC
Created attachment 490822 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-08-27 08:20:26 UTC
Created attachment 490824 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-08-27 08:20:29 UTC
Created attachment 490826 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-08-27 08:20:32 UTC
Created attachment 490828 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-08-27 08:20:36 UTC
Created attachment 490830 [details]
temp.tbz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2017-08-27 08:28:58 UTC
> libraries/ghc-prim/cbits/atomic.c:127:10: error:
>     note: ‘__sync_fetch_and_nand’ changed semantics in GCC 4.4

This is only warning about changes done in gcc-4.4 long ago.

The real error is hung (?!) 'as':

x86_64-pc-linux-gnu-gcc: internal compiler error: Hangup (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
`x86_64-pc-linux-gnu-gcc' failed in phase `Assembler'. (Exit code: 4)
make[1]: *** [libraries/base/ghc.mk:4: libraries/base/dist-install/build/System/IO/Error.p_o] Error 1

Does it reproducibly happens for you?
Comment 9 Toralf Förster gentoo-dev 2017-08-27 08:33:45 UTC
(In reply to Sergei Trofimovich from comment #8)
No, and because that image is somehow wrong (obscure PAM errors) - I'll try to replay that image to see what happened there.
So I'll close this bug as a fallout of something other being buggy
Comment 10 Toralf Förster gentoo-dev 2017-08-27 08:38:34 UTC
(In reply to Toralf Förster from comment #9)
FWIW maybe app-shells/push is making trouble ?
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2017-08-27 08:51:34 UTC
(In reply to Toralf Förster from comment #10)
> (In reply to Toralf Förster from comment #9)
> FWIW maybe app-shells/push is making trouble ?

app-shells/push installs a single 'push.sh' script.

ghc itself does not use 'push.sh' scripts but maybe something else
in the system does and gets into a conflict.
Comment 12 Toralf Förster gentoo-dev 2017-08-27 09:31:32 UTC
yeah, bug #629030 and bug #629024 indicates that the setup of that images was made wrong.
Aaybe a "small, non-intrusive change" (tm) of the tinderbox script from /me is the culprit...