Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53616 - hardened gcc 3.3.3 can't compile mysql/glibc+nptl (breaks)
Summary: hardened gcc 3.3.3 can't compile mysql/glibc+nptl (breaks)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-11 00:39 UTC by Alexander Ivanchev
Modified: 2004-09-08 18:45 UTC (History)
1 user (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 Alexander Ivanchev 2004-06-11 00:39:26 UTC
Using sys-devel/gcc-3.3.3-r6  -X -bootstrap -build -debug -debug -f77 +gcj +hardened -java -multilib +nls -objc +pic -static -uclibc

And trying to compile glibc + nptl sys-libs/glibc-2.3.3.20040420  -build -debug +erandom +nls +nptl +pic fails with icongv_cache breakage

Also, mysql 4.0.20 fails to compile miserably. Using a gcc without +hardened IUSE works like a charm, please assist!@

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Alex 2004-06-11 14:24:10 UTC
I'm having the same problem. My emerge info is as follows:

Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Pentium II (Klamath)
Gentoo Base System version 1.4.15
distcc 2.14 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
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium2 -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages nostrip sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo http://adelie.polymtl.ca/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://ualberta.ca"
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="X alsa apache2 apm arts avi berkdb canna cdr crypt cups curl directfb doc encode esd ethereal flac flash foomaticdb freewnn gdbm gif gpm gstreamer gtk gtk2 gtkhtml guile imlib ipv6 jack java jpeg ldap libg++ libwww mad maildir mbox mcal mikmod milter mmx mng motif mpeg mpg mysql nas ncurses nis nls nocd odbc oggvorbis opengl oss pam pdflib perl pic plotutils png postgres prelude python qt quicktime readline ruby samba sasl scanner sdl slang speex spell sse ssl svga tcltk tcpd tetex tiff truetype unicode usb videos wmf x86 xml xml2 xmms xv zlib"

How I compiled gcc3.3.3:

USE="f77 gcj hardened objc uclibc vim-with-x nptl erandom" emerge -uDv system

Exact gcc version:

*  sys-devel/gcc
      Latest version available: 3.3.3-r6
      Latest version installed: 3.3.3-r6
      Size of downloaded files: 23,203 kB
      Homepage:    http://www.gnu.org/software/gcc/gcc.html
      Description: The GNU Compiler Collection. Includes C/C++, java compilers, pie and ssp extentions

the glibc error I get:

gcc gconv_dl.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -freorder-blocks -march=pentium2 -pipe -mpreferred-stack-boundary=2     -I../include -I. -I/var/tmp/portage/glibc-2.3.3.20040420/work/glibc-2.3.2/buildhere/iconv -I.. -I../libio -I../nptl -I/var/tmp/portage/glibc-2.3.3.20040420/work/glibc-2.3.2/buildhere -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../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-lib/i686-pc-linux-gnu/3.3.3/include -isystem /lib/modules/2.6.5-gentoo-r1/build/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h  -DPIC     -o /var/tmp/portage/glibc-2.3.3.20040420/work/glibc-2.3.2/buildhere/iconv/gconv_dl.o -MD -MP -MF /var/tmp/portage/glibc-2.3.3.20040420/work/glibc-2.3.2/buildhere/iconv/gconv_dl.o.dt
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}:96: 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.3.20040420/work/glibc-2.3.2/buildhere/iconv/gconv_cache.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.3.20040420/work/glibc-2.3.2/iconv'
make[1]: *** [iconv/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.3.20040420/work/glibc-2.3.2'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.3.20040420 failed.
!!! Function src_compile, Line 547, Exitcode 2
!!! (no error message)

I've tried to compile glibc twice now with the same "error".
Comment 2 Alexander Ivanchev 2004-06-21 01:01:38 UTC
Apparently the latest glibc snapshot - glibc-2.3.4.20040619 fixes the hardened toolchain compilation failure, but the mysql 4.0.20 one is still outstanding
Comment 3 solar (RETIRED) gentoo-dev 2004-09-08 18:45:50 UTC
hardened does not directly support NTPL.
Please file a new bug with our mysql maintainers if problem persists.