| Summary: | glibc wont reemerge on system with gcc-4.1 only | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Stoian Ivanov <sdr> |
| Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | VERIFIED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | 2006.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | /var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/config.log | ||
|
Description
Stoian Ivanov
2006-07-24 04:25:06 UTC
> See `config.log' for more details.
Attach the config.log and post emerge --info.
Created attachment 92606 [details]
/var/tmp/portage/glibc-2.4-r3/work/build-default-i686-pc-linux-gnu-nptl/config.log
root@sdr ~ # emerge --info Portage 2.1.1_pre3-r3 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 i686) ================================================================= System uname: 2.6.17-gentoo-r4 i686 AMD Sempron(tm) 2500+ Gentoo Base System version 1.12.1 app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -mtune=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O3 -mtune=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="bg_BG" LC_ALL="bg_BG.utf8" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm avi berkdb bitmap-fonts cli crypt cups dbus dlloader dri eds emboss encode esd foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 hal imlib isdnlog jpeg kde kdeenablefinal libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl png pppd qt qt3 qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl tcpd threads truetype truetype-fonts type1-fonts udev unicode vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_ this might be relevant:
------------------------------
root@sdr /home/sdr # gcc -o /dev/null tst.c
In file included from tst.c:1:
/usr/include/stdio.h:34:21: error: stddef.h: No such file or directory
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from tst.c:1:
/usr/include/gconv.h:72: error: expected declaration specifiers or
this might be relevant:
------------------------------
root@sdr /home/sdr # gcc -o /dev/null tst.c
In file included from tst.c:1:
/usr/include/stdio.h:34:21: error: stddef.h: No such file or directory
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from tst.c:1:
/usr/include/gconv.h:72: error: expected declaration specifiers or ... before size_t
/usr/include/gconv.h:88: error: expected declaration specifiers or ... before size_t
/usr/include/gconv.h:97: error: expected declaration specifiers or ... before size_t
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before size_t
In file included from /usr/include/stdio.h:72,
from tst.c:1:
/usr/include/libio.h:53:21: error: stdarg.h: No such file or directory
In file included from /usr/include/stdio.h:72,
from tst.c:1:
/usr/include/libio.h:328: error: expected specifier-qualifier-list before size_t
/usr/include/libio.h:360: error: expected declaration specifiers or ... before size_t
/usr/include/libio.h:369: error: expected declaration specifiers or ... before size_t
/usr/include/libio.h:481: error: expected declaration specifiers or ... before __gnuc_va_list
/usr/include/libio.h:483: error: expected declaration specifiers or ... before __gnuc_va_list
/usr/include/libio.h:485: error: expected =, ,, ;, asm or __attribute__ before _IO_sgetn
In file included from tst.c:1:
/usr/include/stdio.h:312: error: expected declaration specifiers or ... before size_t
/usr/include/stdio.h:319: error: expected declaration specifiers or ... before size_t
/usr/include/stdio.h:347: error: expected declaration specifiers or ... before __gnuc_va_list
/usr/include/stdio.h:352: error: expected declaration specifiers or ... before __gnuc_va_list
/usr/include/stdio.h:355: error: expected declaration specifiers or ... before __gnuc_va_list
/usr/include/stdio.h:361: error: expected declaration specifiers or ... before size_t
/usr/include/stdio.h:363: error: format string argument not a string type
/usr/include/stdio.h:365: error: expected declaration specifiers or ... before size_t
/usr/include/stdio.h:366: error: expected declaration specifiers or ... before __gnuc_va_list
/usr/include/stdio.h:367: error: format string argument not a string type
/usr/include/stdio.h:614: error: expected =, ,, ;, asm or __attribute__ before fread
/usr/include/stdio.h:620: error: expected =, ,, ;, asm or __attribute__ before fwrite
/usr/include/stdio.h:642: error: expected =, ,, ;, asm or __attribute__ before fread_unlocked
/usr/include/stdio.h:644: error: expected =, ,, ;, asm or __attribute__ before fwrite_unlocked
In file included from tst.c:4:
/usr/include/unistd.h:325: error: expected declaration specifiers or ... before size_t
/usr/include/unistd.h:331: error: expected declaration specifiers or ... before size_t
/usr/include/unistd.h:469: error: expected declaration specifiers or ... before size_t
In file included from tst.c:4:
/usr/include/unistd.h:566: error: expected =, ,, ;, asm or __attribute__ before confstr
/usr/include/unistd.h:738: error: expected declaration specifiers or ... before size_t
/usr/include/unistd.h:774: error: expected declaration specifiers or ... before size_t
In file included from tst.c:4:
/usr/include/unistd.h:842: error: expected declaration specifiers or ... before size_t
/usr/include/unistd.h:849: error: expected declaration specifiers or ... before size_t
/usr/include/unistd.h:860: error: expected declaration specifiers or ... before size_t
/usr/include/unistd.h:862: error: expected declaration specifiers or ... before size_t
/usr/include/unistd.h:880: error: expected declaration specifiers or ... before size_t
/usr/include/unistd.h:881: error: expected declaration specifiers or ... before size_t
In file included from tst.c:6:
/usr/include/stdlib.h:140: error: expected =, ,, ;, asm or __attribute__ before __ctype_get_mb_cur_max
In file included from tst.c:6:
/usr/include/stdlib.h:455: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:485: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:487: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:589: error: expected ) before __size
/usr/include/stdlib.h:591: error: expected ) before __nmemb
/usr/include/stdlib.h:600: error: expected declaration specifiers or ... before size_t
In file included from /usr/include/stdlib.h:612,
from tst.c:6:
/usr/include/alloca.h:33: error: expected ) before __size
In file included from tst.c:6:
/usr/include/stdlib.h:617: error: expected ) before __size
/usr/include/stdlib.h:622: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:622: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:776: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:776: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:777: error: nonnull argument with out-of-range operand number (argument 1, operand 5)
/usr/include/stdlib.h:781: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:781: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:782: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:854: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:857: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:861: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:865: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:874: error: expected declaration specifiers or ... before size_t
/usr/include/stdlib.h:877: error: expected ) before * token
/usr/include/stdlib.h:881: error: expected declaration specifiers or ... before wchar_t
/usr/include/stdlib.h:885: error: expected =, ,, ;, asm or __attribute__ before mbstowcs
/usr/include/stdlib.h:888: error: expected =, ,, ;, asm or __attribute__ before wcstombs
In file included from /usr/include/signal.h:348,
from tst.c:8:
/usr/include/bits/sigstack.h:54: error: expected specifier-qualifier-list before size_t
root@sdr /home/sdr #
more problems:
----------------------
root@sdr ~ # cat small.c
int main () {
return 0;
}
root@sdr ~ # gcc -o small small.c
/usr/lib/../i686-pc-linux-gnu/bin/ld: crtbegin.o: No such file: No such file or directory
collect2: ld returned 1 exit status
root@sdr ~ #
Your gcc looks messed-up, have you tried to re-emerge it? root@sdr ~ # emerge -a gcc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-devel/gcc-4.1.1 Would you like to merge these packages? [Yes/No] >>> Emerging (1 of 1) sys-devel/gcc-4.1.1 to / * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking gcc-4.1.1.tar.bz2 ;-) ... [ ok ] * checking gcc-4.1.1-uclibc-patches-1.0.tar.bz2 ;-) ... [ ok ] * checking gcc-4.1.1-patches-1.6.tar.bz2 ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking gcc-4.1.1.tar.bz2 to /var/tmp/portage/gcc-4.1.1/work >>> Unpacking gcc-4.1.1-patches-1.6.tar.bz2 to /var/tmp/portage/gcc-4.1.1/work >>> Unpacking gcc-4.1.1-uclibc-patches-1.0.tar.bz2 to /var/tmp/portage/gcc-4.1.1/work * Applying Gentoo patches ... >>> Source unpacked. >>> Compiling source in /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1 ... * CFLAGS="-O2 -mtune=athlon-xp -pipe" * CXXFLAGS="-O2 -mtune=athlon-xp -pipe" * Configuring gcc ... * running gcc-compiler-configure * configuring for GCC_LANG: c,c++,fortran * PREFIX: /usr * BINPATH: /usr/i686-pc-linux-gnu/gcc-bin/4.1.1 * LIBPATH: /usr/lib/gcc/i686-pc-linux-gnu/4.1.1 * DATAPATH: /usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 * STDCXX_INCDIR: /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 * Configuring GCC with: --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu creating cache ./config.cache checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-linux-gnu checking for a BSD compatible install... /bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for gcc... gcc checking whether the C compiler (gcc -O2 -mtune=athlon-xp -pipe ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. !!! ERROR: sys-devel/gcc-4.1.1 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile ebuild.sh, line 1254: Called toolchain_src_compile toolchain.eclass, line 24: Called gcc_src_compile toolchain.eclass, line 1466: Called gcc_do_configure toolchain.eclass, line 1266: Called die !!! failed to run configure !!! If you need support, post the topmost build error, and the call stack if relevant. root@sdr ~ # Hmmm, time to look around for gcc binpkg, I'd say... ;) binpkg will do the trick probably but this is DANGEROUS I've managed to b0rk my system by just emerge -C of old sloted gccs ... this is plain wrong Binary packages source: http://e.ututo.org.ar/athlon-xp/index2.html Problem solved with a binary package and emerge gcc-4.1 eselect compiler set gcc-4.1 emerge glibc emerge -C gcc-3.X emerge gcc-4.1 emerge glibc revedep-rebuild But I still sugest when emerge -C gcc or glibc is done a quickpkg of the removed package be done so the user has the option to "go back" if something break *** This bug has been marked as a duplicate of 130772 *** outdated! |