Summary: | 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 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | david <demons> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED INVALID | ||
Severity: | major | CC: | bug, espen.hustad, pchrist |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
glibc-2.11.2-r3 build.log
glibc-2.11.2-r3 config.log Environment for failed glibc-2.11.2-r3 merge qlist, qcheck |
Description
david
2010-11-02 11:02:32 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? (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. (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 Created attachment 254427 [details]
glibc-2.11.2-r3 build.log
Created attachment 254429 [details]
glibc-2.11.2-r3 config.log
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 > (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. 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 Created attachment 254793 [details]
Environment for failed glibc-2.11.2-r3 merge
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 > 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 Created attachment 254811 [details]
qlist, qcheck
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 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 > 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 ! 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. 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. > |