Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 326347

Summary: building ghc 6.12.3/7.0.3 fails (parallel building issue?)
Product: Gentoo Linux Reporter: Andrew John Hughes <gnu_andrew>
Component: [OLD] DevelopmentAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED FIXED    
Severity: normal CC: idkravitz, rose
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://hackage.haskell.org/trac/ghc/ticket/3763
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrew John Hughes 2010-06-30 18:10:55 UTC
Building GHC version  : 6.12.3

   Build platform        : x86_64-unknown-linux
   Host platform         : x86_64-unknown-linux
   Target platform       : x86_64-unknown-linux

   Bootstrapping using   : /var/tmp/portage/dev-lang/ghc-6.12.3/work/usr/bin/ghc
      which is version   : 6.12.3

   Using GCC             : /usr/lib/ccache/bin/gcc
      which is version   : 4.5.0

   ld       : /usr/bin/ld
   Happy    :  ()
   Alex     :  ()
   Python   : /usr/bin/python
   Perl     : /usr/bin/perl
   dblatex  : 
   xsltproc : /usr/bin/xsltproc

   HsColour was not found; documentation will not contain source links

   Building DocBook HTML documentation : YES
   Building DocBook PS documentation   : NO
   Building DocBook PDF documentation  : NO
----------------------------------------------------------------------

For a standard build of GHC (fully optimised with profiling), type (g)make.

To make changes to the default build configuration, copy the file
mk/build.mk.sample to mk/build.mk, and edit the settings in there.

For more information on how to configure your GHC build, see
   http://hackage.haskell.org/trac/ghc/wiki/Building

make -j9 all 
Makefile:62: target `all' given more than once in the same rule.
+ test -f mk/config.mk.old
+ cp -p mk/config.mk mk/config.mk.old
touch -r mk/config.mk.old mk/config.mk
+ test -f mk/project.mk.old
+ cp -p mk/project.mk mk/project.mk.old
touch -r mk/project.mk.old mk/project.mk
+ test -f compiler/ghc.cabal.old
+ cp -p compiler/ghc.cabal compiler/ghc.cabal.old
touch -r compiler/ghc.cabal.old compiler/ghc.cabal
===--- updating makefiles phase 0
make -r --no-print-directory -f ghc.mk phase=0 just-makefiles
utils/unlit/ghc.mk:18: utils/unlit/dist/build/.depend: No such file or directory
utils/hp2ps/ghc.mk:21: utils/hp2ps/dist/build/.depend: No such file or directory
utils/genprimopcode/ghc.mk:16: utils/genprimopcode/dist/build/.depend: No such file or directory
includes/ghc.mk:130: includes/dist-derivedconstants/build/.depend: No such file or directory
includes/ghc.mk:159: includes/dist-ghcconstants/build/.depend: No such file or directory
rts/ghc.mk:334: rts/dist/build/.depend-v-p-dyn-l-debug-thr-thr_debug-thr_l-thr_p-debug_dyn-thr_dyn-thr_debug_dyn: No such file or directory
utils/ghc-cabal/ghc.mk:95: utils/ghc-cabal/dist-dummy-ghc/build/.depend: No such file or directory
utils/genapply/ghc.mk:26: utils/genapply/dist/build/.depend: No such file or directory
libraries/ghc-prim/ghc.mk:3: libraries/ghc-prim/dist-install/package-data.mk: No such file or directory
libraries/integer-gmp/ghc.mk:3: libraries/integer-gmp/dist-install/package-data.mk: No such file or directory
libraries/base/ghc.mk:3: libraries/base/dist-install/package-data.mk: No such file or directory
libraries/filepath/ghc.mk:3: libraries/filepath/dist-install/package-data.mk: No such file or directory
libraries/array/ghc.mk:3: libraries/array/dist-install/package-data.mk: No such file or directory
libraries/bytestring/ghc.mk:3: libraries/bytestring/dist-install/package-data.mk: No such file or directory
libraries/containers/ghc.mk:3: libraries/containers/dist-install/package-data.mk: No such file or directory
libraries/unix/ghc.mk:3: libraries/unix/dist-install/package-data.mk: No such file or directory
libraries/old-locale/ghc.mk:3: libraries/old-locale/dist-install/package-data.mk: No such file or directory
libraries/old-time/ghc.mk:3: libraries/old-time/dist-install/package-data.mk: No such file or directory
libraries/time/ghc.mk:3: libraries/time/dist-install/package-data.mk: No such file or directory
libraries/directory/ghc.mk:3: libraries/directory/dist-install/package-data.mk: No such file or directory
libraries/process/ghc.mk:3: libraries/process/dist-install/package-data.mk: No such file or directory
libraries/random/ghc.mk:3: libraries/random/dist-install/package-data.mk: No such file or directory
libraries/extensible-exceptions/ghc.mk:3: libraries/extensible-exceptions/dist-install/package-data.mk: No such file or directory
libraries/haskell98/ghc.mk:3: libraries/haskell98/dist-install/package-data.mk: No such file or directory
libraries/hpc/ghc.mk:3: libraries/hpc/dist-install/package-data.mk: No such file or directory
libraries/pretty/ghc.mk:3: libraries/pretty/dist-install/package-data.mk: No such file or directory
libraries/syb/ghc.mk:3: libraries/syb/dist-install/package-data.mk: No such file or directory
libraries/template-haskell/ghc.mk:3: libraries/template-haskell/dist-install/package-data.mk: No such file or directory
libraries/base3-compat/ghc.mk:3: libraries/base3-compat/dist-install/package-data.mk: No such file or directory
libraries/Cabal/ghc.mk:3: libraries/Cabal/dist-install/package-data.mk: No such file or directory
libraries/ghc-binary/ghc.mk:3: libraries/ghc-binary/dist-install/package-data.mk: No such file or directory
libraries/bin-package-db/ghc.mk:3: libraries/bin-package-db/dist-install/package-data.mk: No such file or directory
libraries/mtl/ghc.mk:3: libraries/mtl/dist-install/package-data.mk: No such file or directory
libraries/utf8-string/ghc.mk:3: libraries/utf8-string/dist-install/package-data.mk: No such file or directory
libraries/terminfo/ghc.mk:3: libraries/terminfo/dist-install/package-data.mk: No such file or directory
libraries/haskeline/ghc.mk:3: libraries/haskeline/dist-install/package-data.mk: No such file or directory
libraries/dph/dph-base/ghc.mk:3: libraries/dph/dph-base/dist-install/package-data.mk: No such file or directory
libraries/dph/dph-prim-interface/ghc.mk:3: libraries/dph/dph-prim-interface/dist-install/package-data.mk: No such file or directory
libraries/dph/dph-prim-seq/ghc.mk:3: libraries/dph/dph-prim-seq/dist-install/package-data.mk: No such file or directory
libraries/dph/dph-prim-par/ghc.mk:3: libraries/dph/dph-prim-par/dist-install/package-data.mk: No such file or directory
ghc.mk:616: libraries/dph/dph-seq/ghc.mk: No such file or directory
ghc.mk:616: libraries/dph/dph-par/ghc.mk: No such file or directory
compiler/ghc.mk:457: compiler/stage1/package-data.mk: No such file or directory
compiler/ghc.mk:458: compiler/stage2/package-data.mk: No such file or directory
utils/hsc2hs/ghc.mk:14: utils/hsc2hs/dist/package-data.mk: No such file or directory
utils/hsc2hs/ghc.mk:15: utils/hsc2hs/dist-install/package-data.mk: No such file or directory
ghc.mk:672: libraries/hpc/dist-boot/package-data.mk: No such file or directory
ghc.mk:673: libraries/extensible-exceptions/dist-boot/package-data.mk: No such file or directory
ghc.mk:674: libraries/Cabal/dist-boot/package-data.mk: No such file or directory
ghc.mk:675: libraries/ghc-binary/dist-boot/package-data.mk: No such file or directory
ghc.mk:676: libraries/bin-package-db/dist-boot/package-data.mk: No such file or directory
mkdir inplace
mkdir inplace/bin
"rm" -f utils/ghc-pkg/Version.hs
mkdir inplace/lib
"rm" -f includes/ghcplatform.h
"rm" -f compiler/main/Config.hs
Creating includes/ghcautoconf.h...
"rm" -f -f inplace/bin/mkdirhier
rm -rf libraries/dph/dph-par libraries/dph/dph-par.tmp
echo "module Version where"                    >> utils/ghc-pkg/Version.hs
rm -rf libraries/dph/dph-seq libraries/dph/dph-seq.tmp
mkdir libraries/dph/dph-par.tmp
echo '#!/bin/sh'  		 >> inplace/bin/mkdirhier
echo "version, targetOS, targetARCH :: String" >> utils/ghc-pkg/Version.hs
Creating includes/ghcplatform.h...
Creating compiler/main/Config.hs ... 
mkdir libraries/dph/dph-seq.tmp
cp libraries/dph/dph-common/Setup.hs libraries/dph/dph-par.tmp/Setup.hs
cat utils/mkdirhier/mkdirhier.sh >> inplace/bin/mkdirhier
echo "version    = \"6.12.3\""      >> utils/ghc-pkg/Version.hs
cp libraries/dph/dph-common/Setup.hs libraries/dph/dph-seq.tmp/Setup.hs
"inplace/bin/mkdirhier" rts/dist/build/sm/
cp libraries/dph/dph-common/LICENSE libraries/dph/dph-par.tmp/LICENSE
/bin/sh: inplace/bin/mkdirhier: Permission denied
echo "targetOS   = \"linux\""        >> utils/ghc-pkg/Version.hs
cp libraries/dph/dph-common/LICENSE libraries/dph/dph-seq.tmp/LICENSE
chmod +x inplace/bin/mkdirhier
make[1]: *** [rts/dist/build/sm/Evac_thr.c] Error 126
make[1]: *** Waiting for unfinished jobs....
sed "s/DPHWAY/par/g" libraries/dph/dph-common/dph-common.cabal > libraries/dph/dph-par.tmp/dph-par.cabal
echo "targetARCH = \"x86_64\""      >> utils/ghc-pkg/Version.hs
sed "s/DPHWAY/seq/g" libraries/dph/dph-common/dph-common.cabal > libraries/dph/dph-seq.tmp/dph-seq.cabal
Done.
sed "s/common/par/g" libraries/dph/dph-common/ghc.mk > libraries/dph/dph-par.tmp/ghc.mk
sed "s/common/seq/g" libraries/dph/dph-common/ghc.mk > libraries/dph/dph-seq.tmp/ghc.mk
sed "s/common/par/g" libraries/dph/dph-common/GNUmakefile > libraries/dph/dph-par.tmp/GNUmakefile
sed "s/common/seq/g" libraries/dph/dph-common/GNUmakefile > libraries/dph/dph-seq.tmp/GNUmakefile
mv libraries/dph/dph-par.tmp libraries/dph/dph-par
mv libraries/dph/dph-seq.tmp libraries/dph/dph-seq
Done.
done.

Don't see why it needs to use a binary of 6.12.3 for an update.

Reproducible: Always




Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.5.0, glibc-2.11.2-r0, 2.6.34-gentoo.rivendell x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo.rivendell-x86_64-Intel-R-_Xeon-R-_CPU_X5482_@_3.20GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 30 Jun 2010 01:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FSF-APPROVED-EXT @X11-LICENSES @PRESUMED-FOSS @CREATIVE-COMMONS TeX MOTIF popt"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -ggdb -mno-tls-direct-seg-refs"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core2 -ggdb -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo "
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentoo/xmmsroot2-overlay /usr/local/gentoo/java-overlay /usr/local/gentoo/fixes-overlay /var/lib/layman/kde-sunset"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bindist bluetooth branding bzip2 cairo cddb cdparanoia cdr cli consolekit cracklib crypt cups curl cvs cxx dbus dga dirac djvu doc dri dts dv dvb dvd dvdr eds emacs emboss encode evo exif fam ffmpeg fftw firefox flac fontconfig fortran ftp fuse gcj gdbm gif gimp gnome gnutls gpm graphviz gstreamer gtk gtkhtml hal iconv idn ieee1394 imagemagick imap ipv6 java java5 java6 javascript jbig jpeg jpeg2k kde kerberos ladspa lame latex lcms libass libcaca libnotify libsamplerate lzma lzo mad mbox mikmod mmap mmx mng modules mp3 mp4 mpeg mudflap multilib musepack musicbrainz ncurses nis nls nntp nptl nptlonly ntp ogg openexr opengl openmp pam pango pch pcre pdf perl png policykit postgres ppds pppd pulseaudio python qt3 qt3support qt4 readline reflection sasl schroedinger sdl session sndfile sox speex spell spl sse sse2 ssl ssse3 startup-notification subversion svg sysfs taglib tcpd tga theora threads tiff truetype unicode usb vorbis wavpack wmf x264 xattr xcb xcomposite xft xml xmmsroot2 xorg xosd xprint xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andrew John Hughes 2010-06-30 18:12:20 UTC
Same result with USE="ghcbootstrap".
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2010-07-01 10:50:23 UTC
"cp libraries/dph/dph-common/LICENSE libraries/dph/dph-par.tmp/LICENSE
/bin/sh: inplace/bin/mkdirhier: Permission denied"

The build systems seems really broken
Comment 3 Ivan 2010-07-02 02:36:27 UTC
Not sure why this problem occurs, but anyway:

(In reply to comment #0) 
> Don't see why it needs to use a binary of 6.12.3 for an update.

GHC is itself written in Haskell.  As such, it needs a Haskell compiler installed to build itself.  We provide a pre-built (by us, not upstream) binary version of GHC to assist users in this (as even if you have an older version of GHC installed already, using the latest version to compile itself results in better performance, etc.).  The ghcboostrap USE flag is used by us to build these binaries, and shouldn't actually be used by end users.

Here's a few things you can try:

1) Uninstall 6.10.4-r1 first and then see if 6.12.3 installs; if so, then it may be some interference between your current system install and the binary (the build system has changed twice since 6.10.4; once from 6.10.4 to 6.12.1 with a major change, and a minor change from 6.12.1 to 6.12.2 which necessitated some hacking around by us).

2) Disable ccache; we've had at least one problem with someone using ccache (which is why we tried to hack around the build system update in 6.12.2), though this doesn't look applicable here.

3) Try installing 6.12.3 with USE=binary, which will install our pre-built binary and see if that version of GHC works.
Comment 4 Stelian Ionescu 2010-07-02 19:09:40 UTC
I tried updating with USE=-binary -> fail
then removed 6.10.4, retried with USE=-binary -> identical fail
then I installed with USE=binary and it worked
Comment 5 Stelian Ionescu 2010-07-02 19:09:49 UTC
Portage 2.2_rc67 (default/linux/amd64/10.0/no-multilib, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 02 Jul 2010 18:15:03 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA GPL-1 GPL-2 LGPL-2 LGPL-2.1 LLGPL-2.1 FDL-1.1 MPL-1.0 MPL-1.1 Apache-2.0 Artistic BSD MIT X11 dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe -ggdb -D_FORTIFY_SOURCE=2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev /lib/modules"
CXXFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe -ggdb -D_FORTIFY_SOURCE=2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests candy collision-protect distlocks fakeroot fixpackages news parallel-fetch preserve-libs protect-owned sandbox severe sfperms sign splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ http://gentoo.supp.name/"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--reduce-memory-overheads,--as-needed,--enable-new-dtags"
LINGUAS="en de"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/lisp"
SYNC="rsync://rsync4.fr.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion berkdb bzip2 caps cli crypt curl cxx dri emacs fam fortran gmp iconv icu ipv6 libsigsegv lzma lzo mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre pppd pth readline reflection session spl sqlite sqlite3 sse sse2 sse3 sse4 sse4a ssl sysfs tcpd threads unicode xattr xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="asis proxy proxy_balancer proxy_connect proxy_http" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-04 16:02:59 UTC
> make -j9 all

Might be the problem in ghc.
Comment 7 Andrew John Hughes 2010-07-05 20:47:52 UTC
What changed?  I just tried emerging it again and it's compiling now...

The only change is in the URL to the binaries so maybe the binary it was using before was broken.
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-05 20:57:58 UTC
I think the problem is in undesynchronized paralel build and you are lucky enough not to catch the problem second time (or you've changed MAKEOPTS=-j9).
Comment 9 Andrew John Hughes 2010-07-05 21:36:07 UTC
I thought so too, but it would be pretty lucky to get through such a big build without hitting such a problem, given it hit immediately on the first occurrence.

I haven't dropped the -j9.  Broken build systems that can't handle parallelism should be built with a forced emake -j1.  We do this for IcedTea.
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-05 21:53:55 UTC
We are trying that too (as always did)
> emake -j1

but something seems to be broken (or was broken).
Comment 11 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-14 20:26:59 UTC
> "cp libraries/dph/dph-common/LICENSE libraries/dph/dph-par.tmp/LICENSE
> /bin/sh: inplace/bin/mkdirhier: Permission denied"
> 
> The build systems seems really broken

Yeah,
> cat utils/mkdirhier/mkdirhier.sh >> inplace/bin/mkdirhier
> "inplace/bin/mkdirhier" rts/dist/build/sm/
> /bin/sh: inplace/bin/mkdirhier: Permission denied
> chmod +x inplace/bin/mkdirhier ### too late
Comment 12 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-14 20:33:16 UTC
Andrew, what filesystem do you use? I'm afraid GHC's build system relies on directory timestamps.
Comment 13 Andrew John Hughes 2010-07-20 11:10:00 UTC
root is currently on a reiserfs filesystem, though I plan to move it to a mirrored ext4 filesystem when I can.
Comment 14 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-21 21:38:23 UTC
(In reply to comment #13)
> root is currently on a reiserfs filesystem, though I plan to move it to a
> mirrored ext4 filesystem when I can.

Aha! Any special mount options?
Comment 15 Andrew John Hughes 2010-07-25 10:56:10 UTC
/dev/root on / type reiserfs (rw,noatime)
Comment 16 Sergei Trofimovich (RETIRED) gentoo-dev 2010-08-22 20:09:23 UTC
Seems to be fixed in -HEAD (will arrive in ghc-6.14.1):

http://hackage.haskell.org/trac/ghc/ticket/3763
Comment 17 Sergei Trofimovich (RETIRED) gentoo-dev 2010-11-25 19:33:47 UTC
*** Bug 346733 has been marked as a duplicate of this bug. ***
Comment 18 Sergei Trofimovich (RETIRED) gentoo-dev 2011-04-12 19:07:39 UTC
*** Bug 363153 has been marked as a duplicate of this bug. ***
Comment 19 Sergei Trofimovich (RETIRED) gentoo-dev 2011-05-01 12:29:27 UTC
People keep reporting parallel issues for ghc.
THe current workaround is to use MAKEOPTS=-j7 or less.
Comment 20 Sergei Trofimovich (RETIRED) gentoo-dev 2011-08-03 16:49:53 UTC
In-tree ghc-7.0.4 has parallel building disabled,
as there was more reports of breakage.

ghc-7.2 sometimes misbehaves as well, so I thing we won't try parallel
building earlier, than in ghc-7.4.

Thanks to all involved!