Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 69422

Summary: app-arch/tar-1.14.90-r1 doesn't build with sys-libs/glibc-2.3.4.20041021
Product: Gentoo Linux Reporter: Christer Ekholm <che>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal CC: base-system, gentoo, lars
Priority: High    
Version: 2004.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christer Ekholm 2004-10-29 09:53:06 UTC
Build of tar fails with the following message:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -O3 -march=athlon-xp -fomit-frame-pointer -c argp-fs-xinl.c
In file included from /usr/include/stdio.h:28,
                 from argp-fmtstream.h:32,
                 from argp-fs-xinl.c:27:
/usr/include/features.h:265:41: operator '&&' has no right operand
make[3]: *** [argp-fs-xinl.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/tar-1.14.90-r1/work/tar-1.14.90/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/tar-1.14.90-r1/work/tar-1.14.90/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/tar-1.14.90-r1/work/tar-1.14.90'
make: *** [all] Error 2

My uneducated guess is that the macro __OPTIMIZE__ used in features.h is not defined. I don't know where its supposed to be defined.

Reproducible: Always
Steps to Reproduce:




Some additional info about my configuration.


18:50:17 ender:~ $emerge info
Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041021-r0, 2.6.9
i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.6.4
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="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo http://ftp.du.se/pub/os/gentoo
http://mirror.pudas.net/gentoo ftp://mirror.pudas.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="**** No sync (/usr/portage is on NFS) ****"
USE="X Xaw3d apache2 apm berkdb bitmap-fonts crypt emacs f77 gdbm gpm imlib jpeg
kde libg++ libwww mad mbox mikmod motif mpeg mysql mysqli ncurses nls pcre
pdflib perl png python qt quicktime readline spell ssl tcltk tcpd threads x86
xml2 zlib"

18:50:34 ender:~ $gcc-config -l
[1] i686-pc-linux-gnu-3.3.4
[2] i686-pc-linux-gnu-3.4.2 *
[3] i686-pc-linux-gnu-3.4.2-hardened
[4] i686-pc-linux-gnu-3.4.2-hardenednossp
18:50:46 ender:~ $gcc --version
gcc (GCC) 3.4.2 20041025 (Gentoo Linux 3.4.2-r3, ssp-3.4.1-1, pie-8.7.6.5)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment 1 Sam Smith 2004-10-29 21:03:06 UTC
can confirm the same error on ~amd64.
Comment 2 Daniele Antonini 2004-10-30 01:58:35 UTC
A rough solution:
in argp-fs-xinl.c 
change
#define __OPTIMIZE__
with
#define __OPTIMIZE__ 1
Comment 3 Lars Strojny 2004-10-30 08:27:01 UTC
The above tip works quite fine. Is there any problem with adding this as a patch?
Comment 4 Stefan Briesenick (RETIRED) gentoo-dev 2004-10-30 11:02:10 UTC
ok folks, I have 3 broken machines now.

- 1st is booting now again with a copied over glibc from another machine, but still not perfect
- 2rd is fully dead
- 3rd is working mostly, but I can't start some apps.

what should I do, to get fully working machines again?

downgrade to previous glibc, remerging current glibc, using -nptlonly or +nptlonly? PLEASE gimme a hint! ;)
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2004-10-30 12:34:11 UTC
wuahhh!
sorry, for my last comments. WRONG BUG!
ignore it!

sorry!
Comment 6 SpanKY gentoo-dev 2004-10-30 13:52:33 UTC

*** This bug has been marked as a duplicate of 69395 ***