Hi all, I'm trying to switch over to the new amd 2005.0 profile, but apparently things break. While trying to compile glibc-2.3.4.20050125 things freak. I get the errors as in the attached log. (20050125 did compile with the 2004.3 profile). My emerge info: Portage 2.0.51.16 (default-linux/amd64/2005.0, 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 3200+ Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jun 11 2004, 21:54:38)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.6.3, 1.9.4, 1.8.5-r3, 1.7.9-r1, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/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/init.d /etc/sound/events /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache cvs digest distlocks manifests noauto notitles sandbox userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.nluug.nl/pub/metalab/distributions/gentoo" MAKEOPTS="" PKGDIR="/usr/portage/packages-x86_64" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage.local" SYNC="rsync://rsync4.nl.gentoo.org/gentoo-portage" USE="amd64 X acl acpi alsa arts artswrappersuid audiofile berkdb bitmap-fonts cdr crypt cups curl dga dvd emacs f77 fam flac foomaticdb fortran gcj gd gdbm gif gnome gpm gstreamer gtk imagemagick imap imlib ipv6 jack java jp2 jpeg kde lcms ldap lzw lzw-tiff maildir matrox mikmod mng mozilla moznoirc moznomail mozsvg mozxmlterm ncurses nls nptl oggvorbis opengl oss pam perl png python qt readline samba sdl slang ssl tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales wmf xml xml2 xmms xpm xrandr xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Created attachment 51547 [details] log of my glibc build
gcc actually also fails to build. I have the feeling these problems are related. It fails to find libm.so. It clearly does exist in /emul/..../usr/lib. And this directory is in the library search path (/etc/ld.so.conf). I get the following error: /bin/sh ../libtool --tag CXX --mode=link /var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/xgcc -shared-libgcc -B/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/ -nostdinc++ -L/var/tmp/portage/gcc-3.4.3.20050110/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/var/tmp/portage/gcc-3.4.3.20050110/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -Wl,-O1 -fno-implicit-templates -Wall -W -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -m32 -o libstdc++.la -rpath /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/32 -version-info 6:3:0 -Wl,--version-script=libstdc++-symbol.ver -lm allocator.lo codecvt.lo complex_io.lo ctype.lo debug.lo debug_list.lo functexcept.lo globals_locale.lo globals_io.lo ios.lo ios_failure.lo ios_init.lo ios_locale.lo limits.lo list.lo locale.lo locale_init.lo locale_facets.lo localename.lo stdexcept.lo strstream.lo tree.lo allocator-inst.lo concept-inst.lo fstream-inst.lo ext-inst.lo io-inst.lo istream-inst.lo locale-inst.lo locale-misc-inst.lo misc-inst.lo ostream-inst.lo sstream-inst.lo streambuf-inst.lo string-inst.lo valarray-inst.lo wlocale-inst.lo wstring-inst.lo atomicity.lo codecvt_members.lo collate_members.lo ctype_members.lo messages_members.lo monetary_members.lo numeric_members.lo time_members.lo basic_file.lo c++locale.lo ../libmath/libmath.la ../libsupc++/libsupc++convenience.la /var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/xgcc -shared-libgcc -B/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/ -nostdinc++ -L/var/tmp/portage/gcc-3.4.3.20050110/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/var/tmp/portage/gcc-3.4.3.20050110/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/../../../lib32/crti.o /var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/32/crtbeginS.o .libs/allocator.o .libs/codecvt.o .libs/complex_io.o .libs/ctype.o .libs/debug.o .libs/debug_list.o .libs/functexcept.o .libs/globals_locale.o .libs/globals_io.o .libs/ios.o .libs/ios_failure.o .libs/ios_init.o .libs/ios_locale.o .libs/limits.o .libs/list.o .libs/locale.o .libs/locale_init.o .libs/locale_facets.o .libs/localename.o .libs/stdexcept.o .libs/strstream.o .libs/tree.o .libs/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o .libs/ext-inst.o .libs/io-inst.o .libs/istream-inst.o .libs/locale-inst.o .libs/locale-misc-inst.o .libs/misc-inst.o .libs/ostream-inst.o .libs/sstream-inst.o .libs/streambuf-inst.o .libs/string-inst.o .libs/valarray-inst.o .libs/wlocale-inst.o .libs/wstring-inst.o .libs/atomicity.o .libs/codecvt_members.o .libs/collate_members.o .libs/ctype_members.o .libs/messages_members.o .libs/monetary_members.o .libs/numeric_members.o .libs/time_members.o .libs/basic_file.o .libs/c++locale.o -Wl,--whole-archive ../libmath/.libs/libmath.a ../libsupc++/.libs/libsupc++convenience.a -Wl,--no-whole-archive -L/var/tmp/portage/gcc-3.4.3.20050110/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src -L/var/tmp/portage/gcc-3.4.3.20050110/work/build/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs -lm ../libmath/.libs/libmath.a ../libsupc++/.libs/libsupc++convenience.a -L/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/32 -L/var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc -L/usr/x86_64-pc-linux-gnu/bin -L/usr/x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/../../../lib32 -L/usr/lib/gcc/x86_64-pc-linux-gnu/../.. -L/lib/../lib32 -L/usr/lib/../lib32 -lgcc_s_32 -lc -lgcc_s_32 -lgcc_s_32 -lc -lgcc_s_32 /var/tmp/portage/gcc-3.4.3.20050110/work/build/gcc/32/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/../../../lib32/crtn.o -Wl,-O1 -Wl,--version-script=libstdc++-symbol.ver -Wl,-soname -Wl,libstdc++.so.6 -o .libs/libstdc++.so.6.0.3 /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libm.so when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libm.a when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libm.so when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/../../libm.a when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm /usr/x86_64-pc-linux-gnu/bin/ld: cannot find -lm collect2: ld returned 1 exit status
how did youu do the upgrade? is it the case that you have 2.3.4.20050125-r0 from 2004.3 and were switching rithg now? Are you using the makefile? What is: file /usr/lib32 file /usr/lib32/libm.so file /usr/lib32/libc.so
also, what version of gcc-config do you have?
That is indeed the case. /usr/lib32/libm does not exist: root@hex ~ > ls -l /usr/lib32/ total 32 -rw-r--r-- 1 root root 674 Feb 17 23:19 Mcrt1.o -rw-r--r-- 1 root root 1954 Feb 17 23:19 Scrt1.o -rw-r--r-- 1 root root 1888 Feb 17 23:19 crt1.o -rw-r--r-- 1 root root 2720 Feb 17 23:19 crti.o -rw-r--r-- 1 root root 2292 Feb 17 23:19 crtn.o -rw-r--r-- 1 root root 2293 Feb 17 23:19 gcrt1.o -rwxr-xr-x 1 root root 234 Feb 17 23:19 libc.so -rwxr-xr-x 1 root root 246 Feb 17 23:19 libpthread.so I have the latest gcc-config ( "gcc-config -v" => "gcc-config-1.3.10-r1") Concerning my method of update. I had some bumps with it as I updated the profile too early at some point. I then reverted, etc. This machine also had a very old toolchain so those also needed to be updated. I also had issues with the manual procedure not being similar to the makefile procedure
Copying in libm seems to fix things. Now to get glibc to build
I just did a fresh 2005.0, and it's working, so closing...