ghc stops compiling Reproducible: Always Steps to Reproduce: 1. emerge ghc 2. 3. Actual Results: ../../compiler/stage1/ghc-inplace -package-name template-haskell-2.2.0.0 -hide-all-packages -split-objs -i -idist/build/autogen -idist/build -i. -Idist/build -odir dist/build -hidir dist/build -stubdir dist/build -package base-3.0.1.0 -package pretty-1.0.0.0 -package packedstring-0.1.0.0 -package containers-0.1.0.1 -O -package-name template-haskell -idist/build -H16m -O -optc-march=native -opta-march=native -opta-Wa,--noexecstack -w -O -Rghc-timing -fgenerics -c Language/Haskell/TH/PprLib.hs -o dist/build/Language/Haskell/TH/PprLib.o -ohi dist/build/Language/Haskell/TH/PprLib.hi <<ghc: 429552720 bytes, 443 GCs, 7589888/14684160 avg/max bytes residency (4 samples), 31M in use, 0.00 INIT (0.00 elapsed), 0.59 MUT (3.08 elapsed), 0.25 GC (0.29 elapsed) :ghc>> ../../compiler/stage1/ghc-inplace -package-name template-haskell-2.2.0.0 -hide-all-packages -split-objs -i -idist/build/autogen -idist/build -i. -Idist/build -odir dist/build -hidir dist/build -stubdir dist/build -package base-3.0.1.0 -package pretty-1.0.0.0 -package packedstring-0.1.0.0 -package containers-0.1.0.1 -O -package-name template-haskell -idist/build -H16m -O -optc-march=native -opta-march=native -opta-Wa,--noexecstack -w -O -Rghc-timing -fgenerics -c Language/Haskell/TH/Ppr.hs -o dist/build/Language/Haskell/TH/Ppr.o -ohi dist/build/Language/Haskell/TH/Ppr.hi <<ghc: 1452637808 bytes, 2222 GCs, 11821641/21852160 avg/max bytes residency (7 samples), 49M in use, 0.01 INIT (0.00 elapsed), 2.24 MUT (11.69 elapsed), 0.77 GC (0.85 elapsed) :ghc>> ../../compiler/stage1/ghc-inplace -package-name template-haskell-2.2.0.0 -hide-all-packages -split-objs -i -idist/build/autogen -idist/build -i. -Idist/build -odir dist/build -hidir dist/build -stubdir dist/build -package base-3.0.1.0 -package pretty-1.0.0.0 -package packedstring-0.1.0.0 -package containers-0.1.0.1 -O -package-name template-haskell -idist/build -H16m -O -optc-march=native -opta-march=native -opta-Wa,--noexecstack -w -O -Rghc-timing -fgenerics -c Language/Haskell/TH/Lib.hs -o dist/build/Language/Haskell/TH/Lib.o -ohi dist/build/Language/Haskell/TH/Lib.hi <<ghc: 976259976 bytes, 1393 GCs, 11378688/19673088 avg/max bytes residency (8 samples), 48M in use, 0.00 INIT (0.00 elapsed), 1.56 MUT (6.28 elapsed), 0.84 GC (0.86 elapsed) :ghc>> ../../compiler/stage1/ghc-inplace -package-name template-haskell-2.2.0.0 -hide-all-packages -split-objs -i -idist/build/autogen -idist/build -i. -Idist/build -odir dist/build -hidir dist/build -stubdir dist/build -package base-3.0.1.0 -package pretty-1.0.0.0 -package packedstring-0.1.0.0 -package containers-0.1.0.1 -O -package-name template-haskell -idist/build -H16m -O -optc-march=native -opta-march=native -opta-Wa,--noexecstack -w -O -Rghc-timing -fgenerics -c Language/Haskell/TH.hs -o dist/build/Language/Haskell/TH.o -ohi dist/build/Language/Haskell/TH.hi <<ghc: 52301992 bytes, 9 GCs, 3080192/6017024 avg/max bytes residency (2 samples), 20M in use, 0.00 INIT (0.00 elapsed), 0.08 MUT (0.14 elapsed), 0.11 GC (0.10 elapsed) :ghc>> (echo `find dist/build -name "*_stub.o" -print`; find dist/build/Language/Haskell/TH/Syntax_split dist/build/Language/Haskell/TH/PprLib_split dist/build/Language/Haskell/TH/Ppr_split dist/build/Language/Haskell/TH/Lib_split dist/build/Language/Haskell/TH_split -name '*.o' -print) | xargs /usr/bin/ar q dist/build/libHStemplate-haskell-2.2.0.0.a /usr/bin/ar: creating dist/build/libHStemplate-haskell-2.2.0.0.a /usr/bin/ld -x -r -o dist/build/HStemplate-haskell-2.2.0.0.o dist/build/Language/Haskell/TH/Syntax.o dist/build/Language/Haskell/TH/PprLib.o dist/build/Language/Haskell/TH/Ppr.o dist/build/Language/Haskell/TH/Lib.o dist/build/Language/Haskell/TH.o `find dist/build -name "*_stub.o" -print` == make way=p -f GNUmakefile all; ../../compiler/stage1/ghc-inplace -package-name template-haskell-2.2.0.0 -hide-all-packages -split-objs -i -idist/build/autogen -idist/build -i. -Idist/build -odir dist/build -hidir dist/build -stubdir dist/build -package base-3.0.1.0 -package pretty-1.0.0.0 -package packedstring-0.1.0.0 -package containers-0.1.0.1 -O -package-name template-haskell -idist/build -prof -hisuf p_hi -hcsuf p_hc -osuf p_o -H16m -O -optc-march=native -opta-march=native -opta-Wa,--noexecstack -w -O -Rghc-timing -fgenerics -c Language/Haskell/TH/Syntax.hs -o dist/build/Language/Haskell/TH/Syntax.p_o -ohi dist/build/Language/Haskell/TH/Syntax.p_hi ghc-split:Failed writing /var/tmp/portage/dev-lang/ghc-6.8.2-r1/temp/ghc23870_0/ghc23870_0.split__354.s <<ghc: 8109686880 bytes, 15224 GCs, 32361585/99880960 avg/max bytes residency (27 samples), 241M in use, 0.01 INIT (0.00 elapsed), 9.64 MUT (10.32 elapsed), 7.70 GC (7.87 elapsed) :ghc>> make[3]: *** [dist/build/Language/Haskell/TH/Syntax.p_o] Error 1 make[2]: *** [all] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-lang/ghc-6.8.2-r1/work/ghc-6.8.2/libraries/template-haskell' make[1]: *** [make.library.template-haskell] Error 2 make[1]: Leaving directory `/var/tmp/portage/dev-lang/ghc-6.8.2-r1/work/ghc-6.8.2/libraries' make: *** [stage1] Error 2 * * ERROR: dev-lang/ghc-6.8.2-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3391: Called die * The specific snippet of code: * emake all || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/ghc-6.8.2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ghc-6.8.2-r1/temp/environment'. * >>> Failed to emerge dev-lang/ghc-6.8.2-r1, Log file: >>> '/var/tmp/portage/dev-lang/ghc-6.8.2-r1/temp/build.log' * Messages for package dev-lang/ghc-6.8.2-r1: * * ERROR: dev-lang/ghc-6.8.2-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3391: Called die * The specific snippet of code: * emake all || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/ghc-6.8.2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ghc-6.8.2-r1/temp/environment'. * #> emerge --info Portage 2.1.6.13 (default/linux/amd64/10.0/no-multilib, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T6500_@_2.10GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 08 Oct 2009 22:30:01 +0000 app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r4 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg collision-protect distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" 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/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa amd64 berkdb bzip2 cli cracklib crypt cups dbus dri fortran gdbm gpm hal iconv isdnlog ldap mmx modules mudflap nls nptl nptlonly nsplugin openmp pam pcre perl pppd python readline reflection session spl sqlite sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="hda-intel" 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 evdev synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
"ghc-split:Failed writing" I don't suppose you could have run out of space on /var/tmp or the filesystem had an error? Otherwise, have you checked that the error is repeatable? ghc-split is just a perl script, and it should not be failing to write to an output file (should not be a permission problem, since emerge is done as root...)
Hum, my disk was full, now emerge ghc works properly. Thanks for help. > "ghc-split:Failed writing" > > I don't suppose you could have run out of space on /var/tmp or the filesystem > had an error? > > Otherwise, have you checked that the error is repeatable? ghc-split is just a > perl script, and it should not be failing to write to an output file (should > not be a permission problem, since emerge is done as root...) >