Summary: | emerge gcc-3.4.3-r1 fails with bizarre [profiledbootstrap] Error 2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeffrey Gardner (RETIRED) <je_fro> |
Component: | [OLD] GCC Porting | Assignee: | Jeremy Huddleston (RETIRED) <eradicator> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | amd64, iellis |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jeffrey Gardner (RETIRED)
2005-03-03 21:53:07 UTC
just tried to emerge portage again... * No valid multilib environment found! * Building without multilib support. If * you want to have multilib support, * emerge gcc with "multilib" in your * useflags. Yet I do have multilib: # grep multilib /etc/make.conf USE="X 3dnow 3xnowex alsa avi apache2 berkdb encode cdr crypt cups directfb divx4linux dvd dvdr dvdread evo fbcon f77 foomaticdb gif gb gd gdbm gtk2 gtkhtml gnome gnutls ithreads java jce jpg gif ldap live libgda maildir mmx moznomail mpeg multilib mysql network nptl nptlonly oggvorbis opengl pam pda plotutils png ppds rtc sasl sdl sse spell ssl tcltk tcpd tiff truetype usb xv xvid xmms xprint no_wxgtk1 -wxwindows -mozilla -arts -qt -kde" search bugzilla, this has been reported a few times and you should be able to find fixes there I've tried a few different fixes....it seems like portage doesn't see the multilib flag in $USE. (See above) I've tried: FEATURES="-sandbox" USE="-multilib" emerge gcc <this actually works, but I need multilib for 32bit games and such, so it's not an option> FEATURES="-sandbox" USE="multilib" emerge gcc <fails> FEATURES="-sandbox" USE='-gcj' emerge gcc also fails I added this to make.conf: MULTILIB_ABIS="x86 amd64" DEFAULT_ABI="amd64" LIBDIR_amd64="lib64" LIBDIR_x86="lib32" portage built without the error shown above. However, gcc still fails. Same problem here, but with gcc-3.4.3.2005(whatever) Tried using the newest version of portage and running gcc-config then env-update && source /etc/profile, but it didn't help. emerge info: Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r7 x86_64) ================================================================= System uname: 2.6.10-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 16:44:56)] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r4 sys-devel/libtool: 1.5.10-r5 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon64 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon64 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks fixpackages sandbox" GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ ftp://lug.mtu.edu/gentoo/source/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="amd64 X aalib aclocal acpi aim alsa audiofile avi berkdb bitmap-fonts blas bonobo cdr crypt cups curl divx4linux dvd emul-linux-x86 encode esd f77 fam flac font-server foomaticdb fortran gif gnome gpm gstreamer gtk gtkhtml guile imagemagick imlib ipv6 java jp2 jpeg junit ldap live lzw lzw-tiff mad mozilla mpeg multilib nas ncurses network nls nptl offensive oggvorbis opengl oss pam pdf pdflib perl pic plotutils png posix ppds pthreads python qt quicktime readline samba sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales xine xml xml2 xmms xpm xrandr xscreensaver xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY What is the output of: file /usr/lib32 file /usr/lib32/libc.so cat /usr/lib32/libc.so je_fro: If you set the multilib variables in 2004.3, I will not offer support to fix your system. You should know better. The 2005.0 upgrade guide shows you how to properly get a multilib system, and the order is very important. Sorry, but that is why I made the guide in the first place. Ian, you're probably affected by a bug that was in xorg-x11-6.8.2. Please provide the output I requested above. "I will not offer support to fix your system. You should know better. " Huh? <sarcasm> Who said I want you to fix my system? I should know better? Sorry I missed the big banner link saying I should change to 2005.0! Now that I take a look, I feel silly for missing it here: http://www.gentoo.org/doc/en/list.xml and here: http://www.gentoo.org/proj/en/base/amd64/technotes.xml </sarcasm> Well, thanks for alerting me to the presence of this guide, in the past portage has alerted me to the need to change profiles. That didn't happen this time, so I figured 2005 wasn't stable yet. Looking now, Thanks, je_fro welp, That 2005.0 Upgrade Guide failed. I tried the scripted automated way, and the manual way. When I try the script I get: root@speedy profile-update # make -f Makefile-profile_update-2005.0 Your compiler does not have multilib support. Please emerge gcc with USE=multilib. If your portage is not multilib enabled, you will need to do FEATURES=-sandbox emerge gcc. make: *** [step0] Error 1 naturally, emerge gcc fails with USE='multilib' emerge gcc (and with FEATURES='-sandbox' too) Are you sure the guide ( http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=1 ) isn't outdated? looks like I made some progress, but what's this emul-linux package all about? emerge -upD world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild N ] app-emulation/emul-linux-x86-glibc-1000 [ebuild U ] media-gfx/imagemagick-6.2.0.4 [6.1.8.8] [ebuild U ] x11-themes/gentoo-artwork-0.4.1 [0.4] [ebuild U ] net-irc/xchat-2.4.1-r1 [2.4.1] ahh, a stub file. okay, so a new emul-linux package was available after I modified package.keywords and package.unmask. after installing it, I was able to emerge gcc and complete the upgrade by hand. all is well. PS * watch who you say "You should know better" to....I was riled all afternoon! :D Later, je_fro as I feared! jeff@speedy doom3 $ doom3 /usr/games/bin/doom3: line 4: /opt/doom3/doom.x86: No such file or directory /usr/games/bin/doom3: line 4: /opt/doom3/doom.x86: Success jeff@speedy doom3 $ armyops /opt/americas-army/armyops: line 49: /opt/americas-army/System/armyops-bin: No such file or directory /opt/americas-army/armyops: line 49: /opt/americas-army/System/armyops-bin: Success emerge glibc fails too! ruh roh! worse still... # emerge portage Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/portage-2.0.51.19 to / >>> md5 src_uri ;-) portage-2.0.51.19.tar.bz2 >>> Unpacking source... >>> Unpacking portage-2.0.51.19.tar.bz2 to /var/tmp/portage/portage-2.0.51.19/work >>> Source unpacked. rm -f libsandbox.so sandbox rm -f *.o *~ core rm -f localdecls.h ./create-localdecls Checking truncate argument type... off_t Checking libc version... /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find /emul/linux/x86/lib/libc.so.6 collect2: ld returned 1 exit status ldd: ./libctest: No such file or directory rm: cannot remove `libctest': No such file or directory x86_64-pc-linux-gnu-gcc -O1 -pipe -DSB_HAVE_64BIT_ARCH -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c libsandbox.c x86_64-pc-linux-gnu-gcc -O1 -pipe -DSB_HAVE_64BIT_ARCH -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall -c sandbox_futils.c -o sandbox_futils.o x86_64-pc-linux-gnu-gcc libsandbox.o sandbox_futils.o -shared -fPIC -ldl -lc -nostdlib -lgcc -o libsandbox.so /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../libdl.so when searching for -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../libdl.a when searching for -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldl collect2: ld returned 1 exit status make: *** [libsandbox.so] Error 1 !!! ERROR: sys-apps/portage-2.0.51.19 failed. !!! Function src_compile, Line 70, Exitcode 2 !!! (no error message) emerge glibc and gcc now fails emerge glibc .... checking for stdint.h... yes checking for unistd.h... yes checking for long double... yes checking size of long double... configure: error: cannot compute sizeof (long double), 77 $ emerge --info Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r14 x86_64) ================================================================= System uname: 2.6.9-gentoo-r14 x86_64 AMD Opteron(tm) Processor 246 Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 09:22:47)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=opteron -Os -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=opteron -Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://gentoo.ccccom.com http://mirrors.tds.net/gentoo ftp://gentoo.ccccom.com http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="amd64 3xnowex X aalib acpi alsa apache2 avi berkdb bitmap-fonts bonobo cdr crypt cups curl directfb divx4linux dvd dvdr dvdread encode esd evo f77 fam fbcon flac foomaticdb fortran gb gd gdbm gif gnome gnutls gpm gtk gtk2 gtkhtml guile imagemagick imlib ipv6 ithreads java jce jp2 jpeg jpg junit ldap libgda libwww live lzw lzw-tiff mad maildir motif moznomail mpeg mysql ncurses network nls no_wxgtk1 nptl nptlonly oggvorbis opengl oss pam pda perl plotutils png ppds python readline rtc sasl sdl spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xml xml2 xmms xpm xprint xrandr xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS emerge gcc ... /usr/x86_64-pc-linux-gnu/bin/ld: cannot find /emul/linux/x86/lib/libc.so.6 collect2: ld returned 1 exit status make[3]: *** [32/libgcc_s_32.so] Error 1 make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc' make[2]: *** [stmp-multilib] Error 2 make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-3.4.3-r1 failed. !!! Function gcc_do_make, Line 1124, Exitcode 2 !!! make failed with profiledbootstrap Great. I have a paper due in 2 days, none of my 32bit apps like OO.o work because of this 2005.0 profile update. I'm screwed. jfe_fro: You set the MULTILIB_ABIS, etc stuff while using a 2004.3 profile... I have no doubt you fubard your system. The error message you mentioned in #gentoo-sparc is because you still have /lib32 or /usr/lib32 as a symlink when in 2005.0 it is a distinct directory. I NEVER told you to change to 2005.0. I said you shouldn't set MULTILIB_ABIS, ABI, DEFAULT_ABI, etc in 2004.3! If you provided the information I asked for, we could've helped you, but you're not providing us with the information requested. Your /lib32 and /usr/lib32 need to be symlinx to the dirs in /emul (2004.3) or directories (2005.0). It looks as though (based on comments in #gentoo-sparc... why in there is beyone me) you have 2005.0 with {,/usr}/lib32 symlinks. This would not happen if you used the upgrade guide properly without messing with the 2004.3 profile in an unsupported manner (setting MULTILIB_ABIS in 2004.3). My suggestion is to fix your /etc/make.conf, go back to a 2004.3 profile setup. re-emerge all your emul-* packages, re-emerge portage, re-emerge the toolchain, then use the Makefile to automate the 2005.0 update. "based on comments in #gentoo-sparc... why in there is beyone me" :D Because I feel at home in there. And I have an Ultra. Well thanks for replying even though I was a smartass. I'll see what I can do short of rm -rf / Thanks, je_fro Thanks for asking for the output of those files. In case you'd like to know, the result was that /usr/lib32/libc.so didn't exist. Based on the fact that /usr/lib32 was pointing to the emul-linux stuff, I decided to re-emerge emul-linux-x86-glibc (emphasis on re-, I did have it installed already). Now my computer is happily rebuilding gcc (portage was complaining about no multilib support). I don't know if this is a bug or if some ebuild messed something up, but it works now. Mine were directories because I followed the manual upgrade guide, but gcc was hopelessly broken. Fastest way I knew to fix it was to reinstall. Thank god for all these partitions. This may very well be a dupe of bug #82911. Please attempt my solution in bug #77924 |