Created attachment 306599 [details] full build log >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-lang/ghc-7.0.4/work/ghc-7.0.4 ... * econf: updating ghc-7.0.4/libraries/unix/config.sub with /usr/share/gnuconfig/config.sub * econf: updating ghc-7.0.4/libraries/unix/config.guess with /usr/share/gnuconfig/config.guess * econf: updating ghc-7.0.4/libraries/directory/config.sub with /usr/share/gnuconfig/config.sub * econf: updating ghc-7.0.4/libraries/directory/config.guess with /usr/share/gnuconfig/config.guess * econf: updating ghc-7.0.4/libraries/base/config.sub with /usr/share/gnuconfig/config.sub * econf: updating ghc-7.0.4/libraries/base/config.guess with /usr/share/gnuconfig/config.guess * econf: updating ghc-7.0.4/libraries/old-time/config.sub with /usr/share/gnuconfig/config.sub * econf: updating ghc-7.0.4/libraries/old-time/config.guess with /usr/share/gnuconfig/config.guess * econf: updating ghc-7.0.4/libraries/process/config.sub with /usr/share/gnuconfig/config.sub * econf: updating ghc-7.0.4/libraries/process/config.guess with /usr/share/gnuconfig/config.guess * econf: updating ghc-7.0.4/config.sub with /usr/share/gnuconfig/config.sub * econf: updating ghc-7.0.4/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-gcc=gcc configure: loading site script /usr/share/config.site configure: loading site script /usr/share/crossdev/include/site/linux configure: loading site script /usr/share/crossdev/include/site/linux-gnu configure: loading site script /usr/share/crossdev/include/site/i686-linux-gnu checking for gfind... no checking for find... /usr/bin/find checking for sort... /usr/bin/sort checking for ghc... /usr/local/bin/ghc checking version of ghc... 7.0.2 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Target platform inferred as: i386-unknown-linux GHC build : i386-unknown-linux GHC host : i386-unknown-linux GHC target : i386-unknown-linux checking for nhc... no checking for nhc98... no checking for hbc... no configure: Building in-tree ghc-pwd /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: utils/ghc-pwd/dist-boot/Main.o: warning: relocation in readonly section `.text'. /usr/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in a shared object. checking for path to top of build tree... utils/ghc-pwd/dist-boot/ghc-pwd: error while loading shared libraries: cannot make segment writable for relocation: Permission denied configure: error: cannot determine current directory emerge --info: https://bugs.gentoo.org/attachment.cgi?id=304777
Created attachment 306601 [details] full config log
Created attachment 306649 [details, diff] Patch for adding pax-mark for ghc-pwd With this patch GHC-7.0.4 building ok!
Created attachment 306651 [details] Full build log of GHC-7.4.1 with USE="-ghcbootstrap" on amd64 About GHC-7.4.1. It is broken, even with USE="-ghcbootstrap", attaching full builfing log
Created attachment 306663 [details] Full build log of GHC-7.4.1. wih MAKEOPTS="-j1" and USE="-ghcbootstrap" on amd64
Ok. I'm closing it as INVALID then, as we got to conclusion that you had seemingly broken ghc-7.0.2 host GHC. As for parallel build workaround pushed as: > 13 Apr 2012; Sergei Trofimovich <slyfox@gentoo.org> ghc-6.10.4-r1.ebuild, > ghc-6.12.3-r2.ebuild, ghc-6.12.3.ebuild, ghc-7.4.1.ebuild: > Disable parallel make due to build system failures: bug #409631 by Anton > Kochkov, bug #409873 by Todd Goodman. Which once again disables parallel building, which is painful, but more reliable. Thank you!