Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343815 - unable to (re)compile sys-libs/glibc-2.11.2(-r2) checking for forced unwind support... no configure: error: forced unwind support is required; sys-devel/gcc-4.4.3-r2 , sys-devel/gcc-4.4.4-r2
Summary: unable to (re)compile sys-libs/glibc-2.11.2(-r2) checking for forced unwind s...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-02 11:02 UTC by david
Modified: 2010-12-28 14:43 UTC (History)
3 users (show)

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


Attachments
glibc-2.11.2-r3 build.log (build.log,16.51 KB, text/plain)
2010-11-15 19:03 UTC, david
Details
glibc-2.11.2-r3 config.log (config.log,44.49 KB, text/plain)
2010-11-15 19:03 UTC, david
Details
Environment for failed glibc-2.11.2-r3 merge (environment,146.85 KB, text/plain)
2010-11-19 08:28 UTC, david
Details
qlist, qcheck (log,49.94 KB, text/plain)
2010-11-19 10:36 UTC, david
Details

Note You need to log in before you can comment on or make changes to this bug.
Description david 2010-11-02 11:02:32 UTC
Hi everybody, since almost three weeks i've been experienceing multiple problems with my gentoo box. trying to update the world i receive multiple fatal compile errors.
when i try to emerge sys-libs/glibc-2.11.2(-r2) i receive following error:
-------------------
checking for stdint.h... yes
checking for unistd.h... yes
checking size of long double... 0
running configure fragment for sysdeps/i386/elf
checking for i386 TLS support... yes
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... no
configure: error: forced unwind support is required
 * ERROR: sys-libs/glibc-2.11.2 failed:
 *   failed to configure glibc
-------------------

furthermore, if i try to emerge sys-devel/gcc-4.4.3-r2 or sys-devel/gcc-4.4.4-r2 i receive following error:
-------------------
o trunctfxf2_s.o tf-signs_s.o unwind-dw2_s.o unwind-dw2-fde-glibc_s.o unwind-sjlj_s.o gthr-gnat_s.o unwind-c_s.o emutls_s.o -lc && rm -f 32/libgcc_s.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1 32/libgcc_s.so.1.backup; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s libgcc_s.so.1 32/libgcc_s.so
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `/usr/lib/crti.o' is incompatible with i386 output
/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `/usr/lib/crtn.o' is incompatible with i386 output
/usr/x86_64-pc-linux-gnu/bin/ld: final link failed: Invalid operation
collect2: ld returned 1 exit status
make[5]: *** [libgcc_s.so] Error 1
make[5]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/32/libgcc'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgcc'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.4-r2/work/build'
make: *** [bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-4.4.4-r2 failed:
 *   emake failed with bootstrap-lean


Reproducible: Always

Steps to Reproduce:
1. emerge -uvD world
2. emerge -uv gcc glibc


Actual Results:  
Above mentioned error output.

Expected Results:  
successful compilation of world AND new gcc AND new glibc

Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.11.2-r0, 2.6.34-gentoo-r11 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r11-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8200_@_2.33GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 02 Nov 2010 08:45:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.5.4-r3, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.jamit.de/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion battery bluetooth branding bzip2 cairo calendar cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss emerald encode exif fam ffmpeg firefox flac fortran gcrypt gdbm gif glitz gnome gnutls gpm gtk gzip hal iconv ipv6 jpeg lame lcms libnotify loop-aes lzo mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin nxclient ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support rdesktop readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis wifi wma x264 xcb xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Espen Hustad 2010-11-14 12:23:56 UTC
Do you have LDFLAGS="-Wl,-O1 ${LDFLAGS}" in your /etc/make.conf? If you have, does changing that to LDFLAGS="-W1,-O1, ${LDFLAGS} fix this for you?
Comment 2 Espen Hustad 2010-11-14 12:27:19 UTC
(In reply to comment #1)
> Do you have LDFLAGS="-Wl,-O1 ${LDFLAGS}" in your /etc/make.conf? If you have,
> does changing that to LDFLAGS="-W1,-O1, ${LDFLAGS} fix this for you?

LDFLAGS="-W1,-O1,${LDFLAGS}" that is.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-15 15:29:26 UTC
(In reply to comment #1)
> Do you have LDFLAGS="-Wl,-O1 ${LDFLAGS}" in your /etc/make.conf? If you have,
> does changing that to LDFLAGS="-W1,-O1, ${LDFLAGS} fix this for you?

That appears to be entirely unrelated, if relevant at all. The emerge --info output looks fine in that respect.

@david: Please attach a complete build log for the failed glibc build, as well as the config.log for the failed configure run.

The gcc issue may or may not be related, but should get its own bug report. If they /are/ related, then you have somehow messed up the build environment since the gcc build seems to think it's building an i386 target:

/usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file
`/usr/lib/crti.o' is incompatible with i386 output

so maybe you changed CHOST (or CTARGET) without following [1].


[1] http://www.gentoo.org/doc/en/change-chost.xml
Comment 4 david 2010-11-15 19:03:31 UTC
Created attachment 254427 [details]
glibc-2.11.2-r3 build.log
Comment 5 david 2010-11-15 19:03:56 UTC
Created attachment 254429 [details]
glibc-2.11.2-r3 config.log
Comment 6 david 2010-11-15 19:26:08 UTC
First of all: Thanks for your answers, I'm actually really stuck here ;)

1) I tried chaning LDFLAGS without success, it produces the same error.

2) I didn't change CHOST (or CTARGET, didn't know it existed)

I'm afraid gcc not compiling is a result of glibc not compiling and it actually has someting to do with the 32bit compatibility on my amd64 machine. But never changed any configration, here was no need, it always worked perfectly fine.

Hope you guys have an idea on that one.

(In reply to comment #3)
> (In reply to comment #1)
> > Do you have LDFLAGS="-Wl,-O1 ${LDFLAGS}" in your /etc/make.conf? If you have,
> > does changing that to LDFLAGS="-W1,-O1, ${LDFLAGS} fix this for you?
> 
> That appears to be entirely unrelated, if relevant at all. The emerge --info
> output looks fine in that respect.
> 
> @david: Please attach a complete build log for the failed glibc build, as well
> as the config.log for the failed configure run.
> 
> The gcc issue may or may not be related, but should get its own bug report. If
> they /are/ related, then you have somehow messed up the build environment since
> the gcc build seems to think it's building an i386 target:
> 
> /usr/x86_64-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file
> `/usr/lib/crti.o' is incompatible with i386 output
> 
> so maybe you changed CHOST (or CTARGET) without following [1].
> 
> 
> [1] http://www.gentoo.org/doc/en/change-chost.xml
> 

Comment 7 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-11-18 22:47:22 UTC
(In reply to comment #3)
> @david: Please attach a complete build log for the failed glibc build, as well
> as the config.log for the failed configure run.

Also, attach your "environment" file inside ${PORTAGE_BUILDDIR}/temp . You've broken your toolchain/environment or something. Also paste your "gcc-config -l" output.

I assign this to @toolchain, but in your case, I would consider starting a fresh gentoo isntallation. 
Comment 8 SpanKY gentoo-dev 2010-11-19 07:36:14 UTC
looks like your multilib is broken.  were you using a no-multilib profile at some point ?

does a simple test like this work:
echo 'main(){}' > test.c
gcc test.c -m32
./a.out
Comment 9 david 2010-11-19 08:28:10 UTC
Created attachment 254793 [details]
Environment for failed glibc-2.11.2-r3 merge
Comment 10 david 2010-11-19 08:31:06 UTC
gcc-config -l output:

gcc-config -l
 [1] x86_64-pc-linux-gnu-4.3.4
 [2] x86_64-pc-linux-gnu-4.4.3 *

As far as I can remeber i never used the no-multilib profile.

when i try to compile 32bit code following error occurs:

gcc -m32 -o test test.c 
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../libc.a when searching for -lc
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../crt1.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../crti.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../crtn.o' is incompatible with i386 output
/usr/bin/ld: final link failed: Invalid operation
collect2: ld returned 1 exit status


(In reply to comment #8)
> looks like your multilib is broken.  were you using a no-multilib profile at
> some point ?
> 
> does a simple test like this work:
> echo 'main(){}' > test.c
> gcc test.c -m32
> ./a.out
> 

Comment 11 SpanKY gentoo-dev 2010-11-19 08:58:56 UTC
so yes, your glibc is screwed up.  run this (after emerging portage-utils):
qlist -vv -e sys-libs/glibc > log
qcheck -vv -e sys-libs/glibc >> log

then post the "log" file as an attachment
Comment 12 david 2010-11-19 10:36:18 UTC
Created attachment 254811 [details]
qlist, qcheck
Comment 13 SpanKY gentoo-dev 2010-11-22 03:03:18 UTC
glibc looks fine.  what does this show:
gcc -print-multi-lib
gcc -print-search-dirs
gcc -print-search-dirs -m32
gcc test.c -v -m32
Comment 14 david 2010-11-22 07:12:21 UTC
gcc -print-multi-lib
.;
32;@m32


gcc -print-search-dirs
install: /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/
programs: =/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/
libraries: =/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/lib/../lib64/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib64/:/lib/x86_64-pc-linux-gnu/4.4.3/:/lib/../lib64/:/usr/lib/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../:/lib/:/usr/lib/


gcc -print-search-dirs -m32
install: /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/
programs: =/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/
libraries: =/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/32/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/32/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/4.4.3/32/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/lib/../lib32/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../x86_64-pc-linux-gnu/4.4.3/32/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../lib32/:/lib/x86_64-pc-linux-gnu/4.4.3/32/:/lib/../lib32/:/usr/lib/x86_64-pc-linux-gnu/4.4.3/32/:/usr/lib/../lib32/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/lib/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../:/lib/x86_64-pc-linux-gnu/4.4.3/:/lib/:/usr/lib/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/


gcc test.c -v -m32
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.4.3-r2/work/gcc-4.4.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/python --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.3-r2 p1.2'
Thread model: posix
gcc version 4.4.3 (Gentoo 4.4.3-r2 p1.2) 
COLLECT_GCC_OPTIONS='-v' '-m32' '-mtune=generic'
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/cc1 -quiet -v -imultilib 32 test.c -D_FORTIFY_SOURCE=2 -quiet -dumpbase test.c -m32 -mtune=generic -auxbase test -version -o /tmp/cczb1ivQ.s
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/include-fixed
 /usr/include
End of search list.
GNU C (Gentoo 4.4.3-r2 p1.2) version 4.4.3 (x86_64-pc-linux-gnu)
	compiled by GNU C version 4.4.3, GMP version 4.3.2, MPFR version 2.4.1-p5.
warning: MPFR header version 2.4.1-p5 differs from library version 2.4.2-p3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 9296abad57923da3dd90b25e9a5b204e
COLLECT_GCC_OPTIONS='-v' '-m32' '-mtune=generic'
 as -V -Qy --32 -o /tmp/ccyzENJx.o /tmp/cczb1ivQ.s
GNU assembler version 2.20.1 (x86_64-pc-linux-gnu) using BFD version (GNU Binutils) 2.20.1.20100303
COMPILER_PATH=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/libexec/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/32/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/32/:/lib/../lib32/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/:/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-m32' '-mtune=generic'
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.3/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../crt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/32/crtbegin.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/32 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/32 -L/lib/../lib32 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../.. /tmp/ccyzENJx.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/32/crtend.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../crtn.o
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../libc.a when searching for -lc
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../crt1.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../crti.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../crtn.o' is incompatible with i386 output
/usr/bin/ld: final link failed: Invalid operation
collect2: ld returned 1 exit status


(In reply to comment #13)
> glibc looks fine.  what does this show:
> gcc -print-multi-lib
> gcc -print-search-dirs
> gcc -print-search-dirs -m32
> gcc test.c -v -m32
> 

Comment 15 david 2010-12-27 10:40:24 UTC
hi, seems like even the gentoo-developers don't have an idea what reason my errors could have. So i would like to know, whether somebody could give me a hint how i proceed now with minimal system change or "data/config loss", eg. NOT "just extract stage3 again" to get my gentoo working again.

Thanks, and i wish you a happy new year !
Comment 16 SpanKY gentoo-dev 2010-12-27 21:42:31 UTC
verify you have /usr/lib and /lib as symlinks pointing to lib64, and lib32 is a standard directory.  and you dont have any dumb symlinks like /usr pointing to /mnt/backup/usr.

precompiled packages can be found by googling for "gentoo tinderbox" which you can use to recover your system.
Comment 17 david 2010-12-28 14:43:05 UTC
spanKY, you won't believe what - thanks to you - just has happened.
as i was checking if i had any lib-symlinks i found that /usr/lib64 was indeed a symlink to /var/lib64 - i originally moved this because of harddisk space-problems. so after i moved /var/lib64 back to /usr/lib64 EVERYTHING compiled successfully.

I'm thankful, that i finally solved this issue with help !

Wish you all a happy new year 2011 !

(In reply to comment #16)
> verify you have /usr/lib and /lib as symlinks pointing to lib64, and lib32 is a
> standard directory.  and you dont have any dumb symlinks like /usr pointing to
> /mnt/backup/usr.
> 
> precompiled packages can be found by googling for "gentoo tinderbox" which you
> can use to recover your system.
>