Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68279 - portage-2.0.51_rc10 fails to compile almost immediately
Summary: portage-2.0.51_rc10 fails to compile almost immediately
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 68286 68302 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-20 08:28 UTC by Adam Bowers
Modified: 2004-10-21 00:44 UTC (History)
4 users (show)

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


Attachments
Patch against flag-o-matic to use $(gcc-getCC) instead of ${CC} (flag-o-matic-m32-gcc.patch,792 bytes, patch)
2004-10-20 13:47 UTC, Danny van Dyk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Bowers 2004-10-20 08:28:32 UTC
Nothing special running.

[ebuild     U ] sys-apps/portage-2.0.51_rc10 [2.0.51_rc9] -build* -debug (-selinux) 0 kB 
*** Portage will stop merging at this point and reload itself,
    recalculate dependencies, and complete the merge.

>>> emerge (1 of 5) sys-apps/portage-2.0.51_rc10 to /
>>> md5 src_uri ;-) portage-2.0.51_rc10.tar.bz2
>>> Unpacking source...
>>> Unpacking portage-2.0.51_rc10.tar.bz2 to /var/tmp/portage/portage-2.0.51_rc10/work
>>> Source unpacked.
 * Found valid multilib environment.
 * Building with multilib support.
./create-localdecls
Checking truncate argument type... off_t
Checking libc version... libc.so.6
Checking glibc subversion... 2.3

cc -O2 -pipe  -m64 -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DSB_HAVE_64BIT_ARCH -Wall -c libsandbox.c
cc -O2 -pipe  -m64 -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DSB_HAVE_64BIT_ARCH -Wall -c sandbox_futils.c -o sandbox_futils.o
cc libsandbox.o sandbox_futils.o -shared  -m64 -fPIC -ldl -lc -nostdlib -lgcc -o libsandbox.so
cc -O2 -pipe -m32 -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DSB_HAVE_64BIT_ARCH -Wall -c libsandbox.c -o libsandbox32.o
cc -O2 -pipe -m32 -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DSB_HAVE_64BIT_ARCH -Wall -c sandbox_futils.c -o sandbox_futils32.o
cc libsandbox32.o sandbox_futils32.o -shared -m32 -fPIC -ldl -lc -nostdlib -lgcc -o libsandbox32.so
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../libdl.so when searching for -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../libdl.a when searching for -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../../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.2/../../../../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.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
make: *** [libsandbox32.so] Error 1


Portage 2.0.51_rc9 (gcc34-amd64-2004.1, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.8-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.8-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O3 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apm avi berkdb bitmap-fonts cdr crypt cups dvd encode esd f77 fam foomaticdb ftp gdbm gif gnome gpm gtk gtk2 gtkhtml imlib jpeg libg++ libwww mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl tcpd truetype usb xml2 xmms xprint xv zlib"


>>> emerge (1 of 5) sys-apps/portage-2.0.51_rc10 to /
>>> md5 src_uri ;-) portage-2.0.51_rc10.tar.bz2
>>> Unpacking source...
>>> Unpacking portage-2.0.51_rc10.tar.bz2 to /var/tmp/portage/portage-2.0.51_rc10/work
>>> Source unpacked.
 * Found valid multilib environment.
 * Building with multilib support.
./create-localdecls
Checking truncate argument type... off_t
Checking libc version... libc.so.6
Checking glibc subversion... 2.3

cc -O2 -pipe  -m64 -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DSB_HAVE_64BIT_ARCH -Wall -c libsandbox.c
cc -O2 -pipe  -m64 -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DSB_HAVE_64BIT_ARCH -Wall -c sandbox_futils.c -o sandbox_futils.o
cc libsandbox.o sandbox_futils.o -shared  -m64 -fPIC -ldl -lc -nostdlib -lgcc -o libsandbox.so
cc -O2 -pipe -m32 -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DSB_HAVE_64BIT_ARCH -Wall -c libsandbox.c -o libsandbox32.o
cc -O2 -pipe -m32 -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DSB_HAVE_64BIT_ARCH -Wall -c sandbox_futils.c -o sandbox_futils32.o
cc libsandbox32.o sandbox_futils32.o -shared -m32 -fPIC -ldl -lc -nostdlib -lgcc -o libsandbox32.so
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../libdl.so when searching for -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../libdl.a when searching for -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.2/../../../../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.2/../../../../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.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldl
collect2: ld returned 1 exit status
make: *** [libsandbox32.so] Error 1




Reproducible: Always
Steps to Reproduce:
1.emerge -auvD world
2.yes
3.

Actual Results:  
portage failed to compile

Expected Results:  
portage compilation
Comment 1 Jonny Heggheim 2004-10-20 09:06:39 UTC
Same error on my ~amd64
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-10-20 10:36:20 UTC
The suggestions from some of the AMD64 dudes is as follows:
(Regard any of LV's posts as higher authority on this issue)

Enable 'multilib' in USE in make.conf.

FEATURES=-sandbox emerge gcc
emerge portage
emerge gcc
Comment 3 Georg Schild 2004-10-20 10:42:22 UTC
Same here but i don't want to enable multilib, no way


dangertools
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2004-10-20 12:51:18 UTC
Try the 2.0.51 (proper) ebuild. Let me know if this persists.
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2004-10-20 13:23:53 UTC
I just committed the changes I was telling everyone to try...
so it might not be out for 30-60 minutes.

Shortcut:
http://zarquon.twobit.net/gentoo/portage/portage-2.0.51.ebuild
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2004-10-20 13:24:56 UTC
From bug #68302:

When trying emerge --update portage, build fails

cc libsandbox32.o sandbox_futils32.o -shared -m32 -fPIC -ldl -lc -nostdlib -lgcc -o libsandbox32.so
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../lib/libdl.so lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../lib/libdl.a lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../libdl.so lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../libdl.a lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/../lib/libdl.so lors de la recherche de -ldl/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/../lib/libdl.a lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/local/lib/libdl.so lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libdl.so lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libdl.a lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: ne peut trouver -ldl
collect2: ld a retourn
Comment 7 Nicholas Jones (RETIRED) gentoo-dev 2004-10-20 13:24:56 UTC
From bug #68302:

When trying emerge --update portage, build fails

cc libsandbox32.o sandbox_futils32.o -shared -m32 -fPIC -ldl -lc -nostdlib -lgcc -o libsandbox32.so
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../lib/libdl.so lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../lib/libdl.a lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../libdl.so lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../libdl.a lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/../lib/libdl.so lors de la recherche de -ldl/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/../lib/libdl.a lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/local/lib/libdl.so lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libdl.so lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libdl.a lors de la recherche de -ldl
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: ne peut trouver -ldl
collect2: ld a retourné 1 code d'état d'exécution
make: *** [libsandbox32.so] Erreur 1

!!! ERROR: sys-apps/portage-2.0.51 failed.

I made some tests. Things work if -ldl -lc and -lgcc are removed from the command line. Very strange. I never saw that before (I am new to Gentoo but not to Linux).
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2004-10-20 13:25:11 UTC
*** Bug 68302 has been marked as a duplicate of this bug. ***
Comment 9 Danny van Dyk (RETIRED) gentoo-dev 2004-10-20 13:47:19 UTC
Created attachment 42268 [details, diff]
Patch against flag-o-matic to use $(gcc-getCC) instead of ${CC}

Please apply this patch against

  /usr/portage/eclass/flag-o-matic.eclass

and try again to update portage.
Comment 10 Danny van Dyk (RETIRED) gentoo-dev 2004-10-20 13:47:36 UTC
*** Bug 68286 has been marked as a duplicate of this bug. ***
Comment 11 Jonny Heggheim 2004-10-20 14:24:12 UTC
The patch seems to work fine on my ~amd64
Comment 12 SpanKY gentoo-dev 2004-10-20 17:46:40 UTC
gcc.eclass is deprecated

please use toolchain-funcs
Comment 13 Adam Bowers 2004-10-20 18:32:10 UTC
patch worked nicely
Comment 14 Danny van Dyk (RETIRED) gentoo-dev 2004-10-21 00:44:04 UTC
Patch using toolchain-funcs.eclass is now in CVS.

I'll mark this fixed. Please reopen if anything still goes wrong with multlib-portage.