Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84039 - emerge gcc-3.4.3-r1 fails with bizarre [profiledbootstrap] Error 2
Summary: emerge gcc-3.4.3-r1 fails with bizarre [profiledbootstrap] Error 2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 All
: High normal
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-03 21:53 UTC by Jeffrey Gardner (RETIRED)
Modified: 2005-03-15 19:39 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-03 21:53:07 UTC
make[4]: Leaving directory `/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc'
./xgcc -B./ -B/usr/x86_64-pc-linux-gnu/bin/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include         -L/var/tmp/portage/gcc-3.4.3-r1/work/build/gcc/../ld -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-proto        types -Wold-style-definition  -isystem ./include  -fPIC -DHAVE_SYSLOG -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED          -D_LIBC_PROVIDES_SSP_ -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/32/libgcc.map -o 32/libgcc_s.s        o.1.tmp  -m32  libgcc/32/_muldi3.o libgcc/32/_negdi2.o libgcc/32/_lshrdi3.o libgcc/32/_ashldi3.o libgcc/32/_ashrdi3.o libgcc/32/_cm        pdi2.o libgcc/32/_ucmpdi2.o libgcc/32/_floatdidf.o libgcc/32/_floatdisf.o libgcc/32/_fixunsdfsi.o libgcc/32/_fixunssfsi.o libgcc/32        /_fixunsdfdi.o libgcc/32/_fixdfdi.o libgcc/32/_fixunssfdi.o libgcc/32/_fixsfdi.o libgcc/32/_fixxfdi.o libgcc/32/_fixunsxfdi.o libgc        c/32/_floatdixf.o libgcc/32/_fixunsxfsi.o libgcc/32/_fixtfdi.o libgcc/32/_fixunstfdi.o libgcc/32/_floatditf.o libgcc/32/_clear_cach        e.o libgcc/32/_enable_execute_stack.o libgcc/32/_trampoline.o libgcc/32/__main.o libgcc/32/_absvsi2.o libgcc/32/_absvdi2.o libgcc/3        2/_addvsi3.o libgcc/32/_addvdi3.o libgcc/32/_subvsi3.o libgcc/32/_subvdi3.o libgcc/32/_mulvsi3.o libgcc/32/_mulvdi3.o libgcc/32/_ne        gvsi2.o libgcc/32/_negvdi2.o libgcc/32/_ctors.o libgcc/32/_ffssi2.o libgcc/32/_ffsdi2.o libgcc/32/_clz.o libgcc/32/_clzsi2.o libgcc        /32/_clzdi2.o libgcc/32/_ctzsi2.o libgcc/32/_ctzdi2.o libgcc/32/_popcount_tab.o libgcc/32/_popcountsi2.o libgcc/32/_popcountdi2.o l        ibgcc/32/_paritysi2.o libgcc/32/_paritydi2.o libgcc/32/_stack_smash_handler.o libgcc/32/_divdi3.o libgcc/32/_moddi3.o libgcc/32/_ud        ivdi3.o libgcc/32/_umoddi3.o libgcc/32/_udiv_w_sdiv.o libgcc/32/_udivmoddi4.o  libgcc/32/unwind-dw2.o libgcc/32/unwind-dw2-fde-glib        c.o libgcc/32/unwind-sjlj.o libgcc/32/gthr-gnat.o libgcc/32/unwind-c.o -lc && rm -f libgcc_s_32.so && if [ -f 32/libgcc_s.so.1 ]; t        hen mv -f 32/libgcc_s.so.1 32/libgcc_s.so.1.`basename `; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s 32/libg        cc_s.so.1 libgcc_s_32.so
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../libc.so when searching for -        lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../libc.a when searching for -l        c
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc
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 1099, Exitcode 2
!!! make failed with profiledbootstrap



It seems gcc 3.4.3-r1 made it to stable amd64 and it barfs every time here.
I saw a warning earlier in the day's updates saying to use ntplonly in USE if I wanted to, so I did. I checked to see if multilib was there. It was. I looked on the forums and found a few similar threads, but nothing with that "/usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lc" error.
I just tried FEATURES="-sandbox" USE="multilib" emerge gcc, and it too failed.
Here's my emerge --info:

# emerge --info
Portage 2.0.51-r15 (default-linux/amd64/2004.3, 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-r2
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"
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 font-server 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 multilib 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
Comment 1 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-03 21:56:16 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"
Comment 2 SpanKY gentoo-dev 2005-03-03 22:01:05 UTC
search bugzilla, this has been reported a few times and you should be able to find fixes there
Comment 3 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-03 22:42:57 UTC
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>
Comment 4 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-03 23:00:18 UTC
FEATURES="-sandbox" USE='-gcj' emerge gcc also fails
Comment 5 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-03 23:19:55 UTC
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.
Comment 6 Ian Ellis 2005-03-04 13:34:53 UTC
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
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-04 17:14:37 UTC
What is the output of:
file /usr/lib32
file /usr/lib32/libc.so
cat /usr/lib32/libc.so
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-04 17:17:46 UTC
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.
Comment 9 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-04 20:01:45 UTC
"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
Comment 10 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-04 21:28:37 UTC
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?
Comment 11 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-04 22:39:36 UTC
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] 
Comment 12 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-04 22:45:24 UTC
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
Comment 13 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-04 23:23:52 UTC
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!

Comment 14 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-05 00:00:22 UTC
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
Comment 15 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-05 00:04:56 UTC
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


Comment 16 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-05 00:28:27 UTC
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.
Comment 17 Jeremy Huddleston (RETIRED) gentoo-dev 2005-03-05 02:04:35 UTC
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.  
Comment 18 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-05 10:36:20 UTC
"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
Comment 19 Ian Ellis 2005-03-06 20:59:01 UTC
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.
Comment 20 Jeffrey Gardner (RETIRED) gentoo-dev 2005-03-07 04:06:09 UTC
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.
Comment 21 P Nienaber 2005-03-15 18:13:29 UTC
This may very well be a dupe of bug #82911.
Comment 22 Michael Ploujnikov 2005-03-15 19:39:21 UTC
Please attempt my solution in bug #77924