Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81457 - glibc-2.3.4.20050125 fails to compile
Summary: glibc-2.3.4.20050125 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 All
: High major (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-09 22:24 UTC by Benedikt Böhm (RETIRED)
Modified: 2005-02-16 10:18 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benedikt Böhm (RETIRED) gentoo-dev 2005-02-09 22:24:30 UTC
glibc-2.3.4.20050125 fails to emerge and throws the following error:

gconv_cache.c: In function `__gconv_load_cache':
gconv_cache.c:75: error: invalid `asm': operand number out of range
gconv_cache.c:75: error: invalid `asm': operand number out of range
gconv_cache.c:112: error: invalid `asm': operand number out of range
gconv_cache.c:112: error: invalid `asm': operand number out of range
{standard input}: Assembler messages:
{standard input}:100: Error: non-constant expression in ".if" statement
{standard input}:131: Error: non-constant expression in ".if" statement
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20050125/work/build-default-i686-pc-linux-gnu-nptl/iconv/gconv_cache.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20050125/work/glibc-2.3.4/iconv'
make[1]: *** [iconv/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20050125/work/glibc-2.3.4'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20050125 failed.
!!! Function toolchain-glibc_src_compile, Line 191, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


emerge info:

Portage 2.0.51.16 (!/home/bene/work/gentoo/cvs/profiles/default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.11-rc3-vs1.9.4-rc5 i686)
=================================================================
System uname: 2.6.11-rc3-vs1.9.4-rc5 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 10 2005, 00:18:27)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r3, 1.7.9-r1, 1.4_p6, 1.9.4, 1.5, 1.6.3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1, 2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs digest distlocks nostrip sandbox sfperms sign strict"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/bene/work/gentoo/cvs /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm avi bash-completion berkdb bitmap-fonts cdr crypt cups dvd encode f77 fam font-server foomaticdb fortran gdbm gif gstreamer hardened imlib jikes jpeg junit kde kdexdeltas libg++ libwww mad mmx motif mpeg ncurses nptl oggvorbis opengl pam pdflib perl png python qt quicktime readline ruby samba scanner sqlite sse ssl svga tiff truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib video_cards_radeon"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2005-02-10 00:03:08 UTC
seems to be a nptl specific problem, with USE="-nptl" it does not fail at gconv_cache.c
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-10 16:49:55 UTC
Thanks for testing... what binutils version do you have?
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2005-02-10 23:35:32 UTC
sys-devel/binutils:  2.15.92.0.2-r2
Comment 4 Csaba Tóth 2005-02-15 04:34:45 UTC
the same bug here.

i just do a fresh install with the latest 2005.0 stage1 tarball and live cd and with ACCEPT_KEYWORDS="~x86".

Comment 5 Dennis Freise 2005-02-15 04:50:57 UTC
Same problem here.

Portage 2.0.51-r15 (hardened/x86/2.6, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-hardened-r3 i686)
=================================================================
System uname: 2.6.10-hardened-r3 i686 AMD Duron(tm) 
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 04:46:59)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -mtune=athlon -mmmx -m3dnow -O2 -pipe -fomit-frame-pointer -ffast-math -fforce-addr -falign-functions=4"
CHOST="i686-pc-linux-gnu"
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 -mtune=athlon -mmmx -m3dnow -O2 -pipe -fomit-frame-pointer -ffast-math -fforce-addr -falign-functions=4"
DISTDIR="/storage/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://gentoo.inode.at/source/ http://gentoo.inode.at"
MAKEOPTS="-j2"
PKGDIR="/storage/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://localhost/gentoo-portage"
USE="3dnow acpi apache2 apm bcmath berkdb bzlib calendar chroot cpdflib crypt ctype curl curlwrappers dba dlloader erandom exif exim exiscan-acl fam flatfile ftp gd gdbm gif gmp gpm hardened hardenedphp iconv imagemagick imap inifile innodb ithreads java jpeg ldap maildir mhash mime mmx mysql nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses nls nptl nptlonly pam parse-clocks pcntl pcre pdflib perl pic pie png posix python readline samba sasl session sharedmem simplexml slang snmp sockets socks5 spell spl sse ssl sysvipc tcpd threads tidy tiff tokenizer truetype usb vhosts wddx wildlsearch x86 xml xml2 xmlrpc xsl zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 6 Csaba Tóth 2005-02-15 05:08:31 UTC
oh, i forgot to paste my emerge info:

Portage 2.0.51-r15 (hardened/x86/2.6, gcc-3.4.3-20050110, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 11 2005, 18:27:07)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   [Not Present]
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=athlon-xp -msse -mfpmath=sse -m3dnow -pipe -fPIC -mmmx -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=athlon-xp -msse -mfpmath=sse -m3dnow -pipe -fPIC -mmmx -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache digest distlocks fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.mirror.icd.hu/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://212.219.56.146/sites/www.ibiblio.org/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X acl apache2 avi bash-completion berkdb caps cdr crypt ctype cups curl curlwrappers dbm dlloader dvdr ethereal exif fam fastcgi ftp gd gif gmp hardened iconv imagemagick imap inifile innodb ipv6 jpeg libg++ libwww mhash mime mmx mmx2 mpeg mpi ncurses nls nptl pam pcntl pcre php pic pie png pnp posix postgres python readline recode samba sasl shared snmp sockets sse ssl svg symlink sysvipc tcpd tiff usb vhosts x86 xml xml2 xmlrpc xsl zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 7 Guillaume Castagnino 2005-02-15 05:11:04 UTC
Fails on this machine : 
==========================================
Portage 2.0.51-r15 (hardened/x86/2.6, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-xwing i686)
=================================================================
System uname: 2.6.10-xwing i686 Intel(R) Celeron(R) CPU 2.53GHz
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 01:01:47)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -mtune=pentium4 -fomit-frame-pointer -ffast-math -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/co
ntrol"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mtune=pentium4 -fomit-frame-pointer -ffast-math -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildsyspkg candy ccache distlocks sandbox userpriv usersandbox"
GENTOO_MIRRORS="ftp://192.168.6.28/linux/Gentoo ftp://192.168.6.149/linux ftp://mir.zyrianes.net/gentoo/ http:
//gentoo.mirror.sdv.fr http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/ge
ntoo/ http://mirror.switch.ch/ftp/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://r2d2.v6.xwing.info/gentoo-portage"
USE="X509 acl acpi acpi4linux apache2 bash-completion berkdb clamav crypt curl dba dga distribution dlloader d
nd dvd extensions fbcon freetype fs gd gdbm gif gpm hardened hardenedphp idled imap imlib2 ipv6 jpeg maildir m
d5sum mmx mysql ncurses network nls nptl nptlonly nvidia ofx pam perl php pic pie png print python readline rr
dtool samba sasl slang spell sse sse2 ssl tcpd tiff truetype truetype-fonts type1 type1-fonts unicode usb user
locales x86 xml2 zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
==========================================

But works on this :
==========================================
Portage 2.0.51-r15 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20050125-r0, 2.6.10-ac12 i686)
=================================================================
System uname: 2.6.10-ac12 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 07:56:35)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -mtune=pentium4 -fomit-frame-pointer -ffast-math -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown 
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/d
vips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /
var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mtune=pentium4 -fomit-frame-pointer -ffast-math -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildsyspkg candy ccache distlocks sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="ftp://mir.zyrianes.net/gentoo/ http://gentoo.mirror.sdv.fr http://ftp.gentoo.skynet.be/pub/gen
too/ http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X X509 a52 aac aalib acl acpi acpi4linux alsa apache2 avi bash-completion berkdb bitmap-fonts bzip2 c
dr clamav codecs crypt cups curl dba dga directfb distribution dnd dv dvd dvdread encode extensions f77 faad f
am fbcon ffmpeg flac foomaticdb fortran freetype fs gd gdbm gif gimp gimpprint gphoto2 gpm gstreamer gtk gtk2 
hardenedphp idled imagemagick imap imlib imlib2 ipv6 jabber java jce jpeg jpeg2k kde ldap libcaca libg++ libww
w logitech-mouse mad maildir matroska md5sum mikmod mmx monkey motif mozsvg mpeg mysql nas ncurses network nls
 no_wxgtk1 nptl nptlonly nvidia ofx oggvorbis opengl oss pam pdflib perl pic png postgres povray print python 
qt quicktime rdesktop readline real samba sasl scanner sdl speex spell sse sse2 ssl svg tcltk tcpd tetex theor
a tiff truetype truetype-fonts type1 type1-fonts unicode usb userlocales v4l v4l2 wxwindows xine xml xml2 xpri
nt xrandr xv xvid zlib video_cards_nvidia linguas_fr"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
==========================================

As you can see, two have "nptl" and "nptlonly", so it's perhaps not nptl related
Comment 8 Csaba Tóth 2005-02-15 05:12:49 UTC
the different is the profile, when it was not builded it used the hardened profile!
Comment 9 Rumen Yotov 2005-02-15 08:34:49 UTC
Hi,
One more such error, again using +hardened +nptl +nptlonly and ~x86.
Here's the log:
....
/nptl/sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/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../nptl/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.3/include -isystem /usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC     -o /var/tmp/portage/glibc-2.3.4.20050125/work/build-default-i686-pc-linux-gnu-nptl/iconv/gconv_dl.o -MD -MP -MF /var/tmp/portage/glibc-2.3.4.20050125/work/build-default-i686-pc-linux-gnu-nptl/iconv/gconv_dl.o.dt -MT /var/tmp/portage/glibc-2.3.4.20050125/work/build-default-i686-pc-linux-gnu-nptl/iconv/gconv_dl.o
gconv_cache.c: In function `__gconv_load_cache':
gconv_cache.c:75: error: invalid `asm': operand number out of range
gconv_cache.c:75: error: invalid `asm': operand number out of range
gconv_cache.c:112: error: invalid `asm': operand number out of range
gconv_cache.c:112: error: invalid `asm': operand number out of range
{standard input}: Assembler messages:
{standard input}:102: Error: non-constant expression in ".if" statement
{standard input}:137: Error: non-constant expression in ".if" statement
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20050125/work/build-default-i686-pc-linux-gnu-nptl/iconv/gconv_cache.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20050125/work/glibc-2.3.4/iconv'
make[1]: *** [iconv/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20050125/work/glibc-2.3.4'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20050125 failed.
!!! Function toolchain-glibc_src_compile, Line 194, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
...
emerge info:
...
Gentoo Base System version 1.6.9
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.11-rc3 i686)
=================================================================
System uname: 2.6.11-rc3 i686 AMD Athlon(tm) XP 2200+
Python:              dev-lang/python-2.4-r2,dev-lang/python-2.3.4-r1 [2.4 (#2, Feb  8 2005, 19:45:38)]
ccache version 2.3 [enabled]
dev-lang/python:     2.4-r2, 2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks gpg sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.itdnet.net/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.oregonstate.edu http://mirror.datapipe.net/gentoo"
LANG="bg_BG.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X X509 aalib acl acpi apache2 avi bash-completion berkdb bitmap-fonts caps cdr chroot clamav crypt cups curl directfb dvd dvdr encode esd evo f77 ffmpeg flac font-server foomaticdb fortran freetype gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 guile hardened hardenedphp imagemagick imap imlib ipv6 java javascript jpeg junit ldap libg++ libwww mad maildir matroska mikmod mmx motif mozilla mpeg mpeg4 mysql ncurses nls nptl nvidia oggvorbis opengl oss pam pdflib perl pic pie png postgres ppds prelude python qt quicktime readline samba sdl skey slang snmp speex spell sse ssl svg svga symlink tcltk tcpd tetex theora threads tiff transcode truetype truetype-fonts type1-fonts unicode usb xml xml2 xmms xv xvid zlib linguas_bg linguas_en"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL
...
PS: same result if filtering LDFLAGS.
Thanks
Rumen
Comment 10 Nuno Alexandre 2005-02-15 09:16:05 UTC
754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -nostdinc -isystem /usr/lib/gcc                           /x86_64-pc-linux-gnu/3.4.3/include -isystem /usr/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -includ                           e include/libc-symbols.h  -DPIC -DSHARED     -o /var/tmp/portage/glibc-2.3.4.20050125/work/build-def                           ault-x86_64-pc-linux-gnu-nptl/elf/interp.os -MD -MP -MF /var/tmp/portage/glibc-2.3.4.20050125/work/b                           uild-default-x86_64-pc-linux-gnu-nptl/elf/interp.os.dt -MT /var/tmp/portage/glibc-2.3.4.20050125/wor                           k/build-default-x86_64-pc-linux-gnu-nptl/elf/interp.os
elf/interp.c:21: error: `RUNTIME_LINKER' undeclared here (not in a function)
{standard input}: Assembler messages:
{standard input}:3: Warning: setting incorrect section attributes for .interp
make[1]: *** [/var/tmp/portage/glibc-2.3.4.20050125/work/build-default-x86_64-pc-linux-gnu-nptl/elf/                           interp.os] Error 1
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20050125/work/glibc-2.3.4'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.4.20050125 failed.
!!! Function toolchain-glibc_src_compile, Line 194, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.11-rc4-bk2 x86_64)
=================================================================
System uname: 2.6.11-rc4-bk2 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  9 2005, 19:51:17)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoclean autoconfig ccache distlocks noinfo notitles sandbox"
GENTOO_MIRRORS="http://mirror.uni-c.dk/gentoo/ ftp://ftp.dkuug.dk/pub/gentoo/ ftp://rsync.gentoo.diku.dk http://ftp.du.se/pub/os/gentoo"
LANG="en_US"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 acpi cdr curl f77 flac ithreads lzw ncurses nptl nptlonly opengl pic sdl truetype-fonts usb userlocales xpm xrandr"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL


Comment 11 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-15 11:04:49 UTC
Reassigning to hardened guys.
Comment 12 solar (RETIRED) gentoo-dev 2005-02-15 11:08:02 UTC
Can somebody explain why this is a hardened bug?
Comment 13 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-15 12:28:18 UTC
Beats me, but it works on non-hardened systems, and everyone here with the problem is x86-hardened (except the amd64 guy which looks like a different bug).  Nuno, pleasse come talk to me on IRC and we can try working thorugh your issue.
Comment 14 solar (RETIRED) gentoo-dev 2005-02-15 12:59:25 UTC
Please try without +nptlonly
Comment 15 Marien Zwart (RETIRED) gentoo-dev 2005-02-15 14:10:09 UTC
Doesn't work here, tried both with and without nptlonly. emerge info:

Portage 2.0.51-r15 (hardened/x86/2.6, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r7-m2 i686)
=================================================================
System uname: 2.6.10-gentoo-r7-m2 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.4-r2 [2.4 (#1, Feb 15 2005, 21:26:42)]
ccache version 2.3 [enabled]
dev-lang/python:     2.4-r2
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fweb -frename-registers"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fweb -frename-registers"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache confcache distlocks noauto prelink sandbox userpriv usersandbox verify-rdepend"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://www.gigaload.org/gentoo.org/"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X alsa ansi bzip2 ccache cdr crypt dlloader emacs faad fbcon flac gnome gtk2 hardened javascript jit jpeg libcaca maildir md5sum mmx mmx2 mng mozdevelop mozsvg mpeg ncurses nethack network nls no-old-linux nptl nptlonly oggvorbis opengl pam png python qemu-fast quicktime readline rtc sdl softmmu spell sse ssl svg symlink tetex truetype truetype-fonts unicode userlocales xml2 xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS

(the previous glibc merge was with a non-hardened gcc, trying to convert to hardened)
Comment 16 Guillaume Castagnino 2005-02-15 14:30:54 UTC
Emerge fail also without +nptlonly, same error :
====================================
gconv_cache.c: In function `__gconv_load_cache':
gconv_cache.c:75: error: invalid `asm': operand number out of range
gconv_cache.c:75: error: invalid `asm': operand number out of range
gconv_cache.c:112: error: invalid `asm': operand number out of range
gconv_cache.c:112: error: invalid `asm': operand number out of range
{standard input}: Assembler messages:
{standard input}:108: Error: non-constant expression in ".if" statement
{standard input}:132: Error: non-constant expression in ".if" statement
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20050125/work/build-default-i686-pc-l
inux-gnu-nptl/iconv/gconv_cache.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20050125/work/glibc-2.3
.4/iconv'
make[1]: *** [iconv/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20050125/work/glibc-2.3
.4'
make: *** [all] Error 2
===========================================

It fails during the nptl build, the linuxthread build seems to be OK (it's computed before if I'm not mistaken)
Comment 17 Kevin F. Quinn (RETIRED) gentoo-dev 2005-02-15 17:19:01 UTC
Phew; took a while to uncover this.  Turns out this patch

    ${FILESDIR}/2.3.4/glibc-2.3.4-hardened-sysdep-shared.patch

from earlier ebuilds is not currently applied - putting it back in should allow this to build; without it the warren of preprocessing macros simply generates broken code.  See bug #52254 for some history.

FWIW I think the patch should be applied unconditionally.  The code generated by the plethora of macros is simply incorrect; it generates a reference to parameter 3 (i.e. 4th parameter), and that's one more than exists if SHARED is not defined.  The affected line is inside an '#ifdef __PIC__' block, so it only affects people who build with PIC by default.  Previously application of the patch has been conditional on 'use hardened' but this is unnecessary due to the '#ifdef __PIC__', and 'use hardened' no longer does what people think it does (so it'd be nice if people stopped using it).  Obviously the offending macro is only triggered when nptl is in use (since the legacy linuxthreads version builds ok) so there's no real benefit to making it conditional on that, either.
Comment 18 solar (RETIRED) gentoo-dev 2005-02-15 18:07:41 UTC
Jeremy, you appear to have removed this patch on your 1.1 of this ebuild.

http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/sys-libs/glibc/glibc-2.3.4.20050125.ebuild?rev=1.1

In the last ebuild

do_hardened_fixes() {
        # this patch is needed to compile nptl with a hardened gcc
        has_hardened && want_nptl && \
                epatch ${FILESDIR}/2.3.4/glibc-2.3.4-hardened-sysdep-shared.patch
}

Can you add it back please? I'm no longer on toolchain.
Comment 19 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-15 20:07:13 UTC
Weird.  It was in the patch tarball's README, but wasn't in the tarball =( sorry guys.  It's in the 1.2 tarball and conditionally applied in 2.3.4.20050125 (once your rsync catches up).

2.3.4.20050125-r1 (package.mask) readds the libidn addon and unconditionally applies the patch.  Have youu considered sending it upstream?
Comment 20 Mikko Tanner 2005-02-16 03:55:32 UTC
>>> Downloading http://dev.gentoo.org/~eradicator/c_stubs-2.1.2.tar.bz2
--13:50:35--  http://dev.gentoo.org/%7Eeradicator/c_stubs-2.1.2.tar.bz2
           => `/pub/gentoo/distfiles/c_stubs-2.1.2.tar.bz2'
Resolving dev.gentoo.org... 156.56.111.197
Connecting to dev.gentoo.org[156.56.111.197]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
13:50:36 ERROR 404: Not Found.

!!! Couldn't download c_stubs-2.1.2.tar.bz2. Aborting.

Care to actually give the corect URL in the ebuild...? :-)
Comment 21 Jeremy Huddleston (RETIRED) gentoo-dev 2005-02-16 10:18:17 UTC
ack... forgot the 'glibc' subdir... but for the record, it's still in package.mask, and the file should be on the mirrors, too.