Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409631 - dev-lang/ghc-7.0.4 utils/ghc-pwd/dist-boot/ghc-pwd: error while loading shared libraries: cannot make segment writable for relocation:
Summary: dev-lang/ghc-7.0.4 utils/ghc-pwd/dist-boot/ghc-pwd: error while loading shar...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-25 12:32 UTC by Anton Kochkov
Modified: 2012-04-13 19:05 UTC (History)
1 user (show)

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


Attachments
full build log (ghc-build.log,5.42 KB, text/plain)
2012-03-25 12:32 UTC, Anton Kochkov
Details
full config log (ghc-config.log,11.25 KB, text/plain)
2012-03-25 12:32 UTC, Anton Kochkov
Details
Patch for adding pax-mark for ghc-pwd (ghc-pax.patch,507 bytes, patch)
2012-03-25 21:23 UTC, Anton Kochkov
Details | Diff
Full build log of GHC-7.4.1 with USE="-ghcbootstrap" on amd64 (ghc-7.4.1-building.log.gz,254.26 KB, text/plain)
2012-03-25 21:25 UTC, Anton Kochkov
Details
Full build log of GHC-7.4.1. wih MAKEOPTS="-j1" and USE="-ghcbootstrap" on amd64 (ghc-7.4.1-building-2.log.gz,215.51 KB, text/plain)
2012-03-26 00:02 UTC, Anton Kochkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2012-03-25 12:32:13 UTC
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
Comment 1 Anton Kochkov 2012-03-25 12:32:47 UTC
Created attachment 306601 [details]
full config log
Comment 2 Anton Kochkov 2012-03-25 21:23:43 UTC
Created attachment 306649 [details, diff]
Patch for adding pax-mark for ghc-pwd

With this patch GHC-7.0.4 building ok!
Comment 3 Anton Kochkov 2012-03-25 21:25:38 UTC
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
Comment 4 Anton Kochkov 2012-03-26 00:02:32 UTC
Created attachment 306663 [details]
Full build log of GHC-7.4.1. wih MAKEOPTS="-j1" and USE="-ghcbootstrap" on amd64
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2012-04-13 19:05:08 UTC
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!