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

Bug 64391

Summary: Error compiling glibc-2.3.4.20040916 with GCC 3.4.1-r2 hardened
Product: Gentoo Linux Reporter: Gilberto Ficara <g.ficara>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: zombie
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gilberto Ficara 2004-09-17 05:40:48 UTC
Today I sync-ed and run emerge -u --deep world, but seems that after portage 2.0.51-rc1 and gcc 3.4.1-r2 (with "hardened" use flag), glibc has some problems compiling.


Reproducible: Always
Steps to Reproduce:
1. emerge sync
2. USE="hardened" emerge -u glibc


Actual Results:  
gcc ../sysdeps/unix/sysv/linux/nscd_setup_thread.c -c -std=gnu99 -O2 -Wall
-Winline -Wstrict-prototypes -Wwrite-strings -freorder-blocks -march=athlon
-pipe -mpreferred-stack-boundary=2  -fpie   -I../include -I.
-I/var/tmp/portage/glibc-2.3.4.20040916/work/build/nscd -I.. -I../libio 
-I/var/tmp/portage/glibc-2.3.4.20040916/work/build -I../sysdeps/i386/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include -isystem //usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DNOT_IN_libc=1   
-o /var/tmp/portage/glibc-2.3.4.20040916/work/build/nscd/nscd_setup_thread.o -MD
-MP -MF
/var/tmp/portage/glibc-2.3.4.20040916/work/build/nscd/nscd_setup_thread.o.dt -MT
/var/tmp/portage/glibc-2.3.4.20040916/work/build/nscd/nscd_setup_thread.o
gcc ../locale/programs/xmalloc.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -freorder-blocks -march=athlon -pipe
-mpreferred-stack-boundary=2  -fpie   -I../include -I.
-I/var/tmp/portage/glibc-2.3.4.20040916/work/build/nscd -I.. -I../libio 
-I/var/tmp/portage/glibc-2.3.4.20040916/work/build -I../sysdeps/i386/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include -isystem //usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC -DNOT_IN_libc=1   
-o /var/tmp/portage/glibc-2.3.4.20040916/work/build/nscd/xmalloc.o -MD -MP -MF
/var/tmp/portage/glibc-2.3.4.20040916/work/build/nscd/xmalloc.o.dt -MT
/var/tmp/portage/glibc-2.3.4.20040916/work/build/nscd/xmalloc.o
../sysdeps/unix/sysv/linux/nscd_setup_thread.c: In function `setup_thread':
../sysdeps/unix/sysv/linux/nscd_setup_thread.c:40: error: `__NR_set_tid_address'
undeclared (first use in this function)
../sysdeps/unix/sysv/linux/nscd_setup_thread.c:40: error: (Each undeclared
identifier is reported only once
../sysdeps/unix/sysv/linux/nscd_setup_thread.c:40: error: for each function it
appears in.)
make[2]: ***
[/var/tmp/portage/glibc-2.3.4.20040916/work/build/nscd/nscd_setup_thread.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/glibc-2.3.4.20040916/work/glibc-2.3.3/nscd'
make[1]: *** [nscd/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040916/work/glibc-2.3.3'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20040916 failed.
!!! Function src_compile, Line 559, Exitcode 2


Expected Results:  
Compile and merge properly

Portage 2.0.51_rc1 (default-x86-1.4, gcc-3.4.1, glibc-2.3.4.20040808-r0,
2.4.24-hardened-r3 i686)
=================================================================
System uname: 2.4.24-hardened-r3 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers: 
sys-kernel/linux-headers-2.4.21,sys-kernel/linux-headers-2.4.22,sys-kernel/linux-headers-2.4.19-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O9 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /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="-march=athlon -O9 -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.du.se/pub/os/gentoo
http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
http://ftp6.uni-erlangen.de/pub/mirrors/gentoo http://mirror.datapipe.net/gentoo
http://128.213.5.34/gentoo/ http://gentoo.tiscali.nl/gentoo/
http://ftp.easynet.nl/mirror/gentoo/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/root/myPortage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="aalib acpi apm berkdb bitmap-fonts cdr crypt curl dedicated dnd encode
ethereal faad gdbm gpm gtk2 ipv6 java jikes jpeg junit ldap libwww mad maildir
mbox md5sum mpeg mysql ncurses nls objc oggvorbis pam pdflib perl png python
quicktime readline samba sdl slang snmp spell ssl tcpd truetype usb x86 xml xml2
xprint zlib"

-------------------------------------------------
I've used the "hardened" use flag from the command line
Comment 1 Tristan Henderson 2004-09-17 07:01:38 UTC
I don't think that this has anything to do with the "hardened" flag. I, and others, are also seeing this behaviour without "hardened" - see bug #64371.
Comment 2 SpanKY gentoo-dev 2004-09-17 08:37:12 UTC

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