npinto / gentoo-prefix-bootstrap

Do What The F*ck You Want To Public License
18 stars 7 forks source link

Failed to emerge sys-devel/gcc-4.2.4-r01.4 #11

Closed TobyOnGithub closed 12 years ago

TobyOnGithub commented 12 years ago

Hi I am trying to install gentoo prefix on a compute cluster.

Starting from scratch, I wget this file: wget http://www.cs.stonybrook.edu/~ryao/prefix-install.sh

then

mkdir tmp cd tmp mv prefix-install.sh . chmod u+x prefix-install.sh ./prefix-install.sh

Then the compilation starts and ends with the following (between ### and ###):

/ichec/home/users/thinse/gentoo/tmp/usr/bin/install -c -m 644 'omp.h' '/panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/image//nuke-me/ichec/home/users/thinse/gentoo/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/include/omp.h' make[4]: Leaving directory /panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/x86_64-pc-linux-gnu/libgomp' make[3]: Leaving directory/panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/x86_64-pc-linux-gnu/libgomp' make[2]: Leaving directory /panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/x86_64-pc-linux-gnu/libgomp' make[1]: Leaving directory/panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build' mv: cannot stat '/panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/image//nuke-me/panfs/panasas/home-thinse/gentoo/_': No such file or directory sed: can't read .//ichec/home/users/thinse/gentoo/usr/lib/gcc/x8664-pc-linux-gnu/4.2.4/.la: No such file or directory sed: can't read .//ichec/home/users/thinse/gentoo/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/*.la: No such file or directory

Failed to emerge sys-devel/gcc-4.2.4-r01.4, Log file:

'/panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log'

  • Messages for package sys-devel/gcc-4.2.4-r01.4:
  • Your ${EPREFIX} contains one or more symlinks. GCC has a
  • bug which prevents it from working properly when there are
  • symlinks in your ${EPREFIX}.
  • See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29831
  • Continuing with your EPREFIX set to:
  • /panfs/panasas/home-thinse/gentoo
  • Your host glibc is too old; disabling automatic fortify. bug 289757
  • Can't read /config.sub, skipping..
  • Can't read /config.guess, skipping..
  • ERROR: sys-devel/gcc-4.2.4-r01.4 failed (install phase):
  • gcc not found in /panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/image/ichec/home/users/thinse/gentoo/
  • Call stack:
  • ebuild.sh, line 85: Called src_install
  • environment, line 4009: Called toolchain_src_install
  • environment, line 4821: Called die
  • The specific snippet of code:
  • [[ -r ${ED}${BINPATH}/gcc${EXEEXT} ]] || die "gcc not found in ${ED}";
  • If you need support, post the output of 'emerge --info =sys-devel/gcc-4.2.4-r01.4',
  • the complete build log and the output of 'emerge -pqv =sys-devel/gcc-4.2.4-r01.4'.
  • Please include /panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build/gcc-build-logs.tar.bz2 in your bug report
  • The complete build log is located at '/panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/build.log'.
  • The ebuild environment file is located at '/panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/temp/environment'.
  • S: '/panfs/panasas/home-thinse/gentoo/var/tmp/portage/sys-devel/gcc-4.2.4-r01.4/work/build'

The output of emerge --info =sys-devel/gcc-4.2.4-r01.4 can be seen here: https://gist.github.com/2316351 The output of emerge -pqv =sys-devel/gcc-4.2.4-r01.4 is:

[ebuild N ] sys-libs/zlib-1.2.5.1-r2 USE="-minizip -static-libs" [ebuild N ] sys-devel/gnuconfig-20120116 [ebuild N ] sys-libs/ncurses-5.9-r1 USE="cxx unicode -ada -debug -doc (-gpm) -minimal -profile -static -libs -trace" [ebuild N ] virtual/libiconv-0 [ebuild N ] sys-apps/texinfo-4.13-r1 USE="-nls -static" [ebuild N ] sys-devel/gcc-4.2.4-r01.4 USE="bootstrap cxx mudflap nptl openmp (-altivec) -build -doc -f ortran -gcj -gtk (-hardened) (-libssp) (-multilib) -multislot -nls -nocxx -objc -objc++ -objc-gc -test (-va nilla)"

Apparently the compilation process can't read:

.//ichec/home/users/thinse/gentoo/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/*.la

Ultimately I want to install gcc 4.5.x

Hope you can suggest something what to do. If you need any further information let me know.

T.

npinto commented 12 years ago

Thanks for the bug report.

I can't reproduce it here, which distro are you on ?

npinto commented 12 years ago

Wait, are you using the bootstrap with make ? If not, then you need to contact ryao.

TobyOnGithub commented 12 years ago

Hi,

I wget the above file and then simply run: ./prefix-install.sh

Does that help? Please provide me with a different gentoo prefix install file which you are in charge of. Then I can hopefully obtain support from you.

TobyOnGithub commented 12 years ago

To answer the "which distro are you on" question:

thinse@stokes1:~> cat /proc/version Linux version 2.6.32.13-0.4-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973](SUSE Linux) ) #1 SMP 2010-06-15 12:47:25 +0200

rundong08 commented 10 years ago

I got the same error. It was caused by "your ${EPREFIX} containing symlinks". When I used the "absolute" EPREFIX path (which does not contain any symlinks), this error was gone.