Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260532 - sys-devel/gcc-3.4.6-r1 fails to build when using the "boundschecking" useflag.
Summary: sys-devel/gcc-3.4.6-r1 fails to build when using the "boundschecking" useflag.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Highest minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-27 17:27 UTC by Olliver Schinagl
Modified: 2014-05-18 20:28 UTC (History)
0 users

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 Olliver Schinagl 2009-02-27 17:27:23 UTC
When emergeing gcc 3.4.6-r1 and using boundschecking, gcc produces the following error:

stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -DEFAULT_PIE_SSP -DEFAULT_RELRO -DEFAULT_BIND_NOW    -march=pentium4 -pipe -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wmissing-prototypes -Wmissing-declarations   -Wno-error  -DHAVE_CONFIG_H    -I. -Itreelang -I/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc -I/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/treelang -I/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/../include  treelang/lex.c -o treelang/lex.o
treelang/lex.c: In function `yy_get_next_buffer':
treelang/lex.c:1325: warning: comparison between signed and unsigned
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -DEFAULT_PIE_SSP -DEFAULT_RELRO -DEFAULT_BIND_NOW    -march=pentium4 -pipe -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wmissing-prototypes -Wmissing-declarations   -Wno-error  -DHAVE_CONFIG_H    -I. -Itreelang -I/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc -I/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/treelang -I/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/../include  treelang/parse.c -o treelang/parse.o
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -DEFAULT_PIE_SSP -DEFAULT_RELRO -DEFAULT_BIND_NOW    -march=pentium4 -pipe -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition     -DHAVE_CONFIG_H  -o tree1 \
	treelang/tree1.o treelang/treetree.o treelang/tree-convert.o \
	treelang/lex.o treelang/parse.o \
	main.o libbackend.a ../libiberty/libiberty.a  ../libiberty/libiberty.a   ../libiberty/libiberty.a   attribs.o
libbackend.a(function.o): In function `expand_function_end':
function.c:(.text+0xafc4): undefined reference to `bounds_delete_redundant_calls'
libbackend.a(calls.o): In function `expand_call':
calls.c:(.text+0x4a4a): undefined reference to `bounds_note_call_for_deletion'
calls.c:(.text+0x67fd): undefined reference to `bounds_is_deletable_fn_p'
collect2: ld returned 1 exit status
make[2]: *** [tree1] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/build/gcc'
make: *** [bootstrap-lean] Error 2

[ebuild   R   ] sys-devel/gcc-3.4.6-r2  USE="boundschecking* hardened nls (-altivec) -bootstrap -build -d -doc -fortran -gcj -gtk -ip28 -ip32r10k -libffi (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 0 kB

in bug #79164 it was mentioned to use -j1 which I've set globally in my make.conf; still no go.

amadeus named # emerge --info
Portage 2.1.6.7 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.23-hardened-r7 i686)
=================================================================
System uname: Linux-2.6.23-hardened-r7-i686-Intel-R-_Pentium-R-_4_CPU_1.70GHz-with-glibc2.3.2
Timestamp of tree: Wed, 25 Feb 2009 23:45:02 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo "
LDFLAGS=""
LINGUAS="en de nl"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="7zip aac acpi alsa aotuv apache2 avahi bcmath berkdb bindist boundschecking bzip2 bzlib calendar cli cracklib cross crypt ctype cups curl curlwrappers dap dba dbus dcraw dedicated dga dio djbfft dts exif fam fastcgi fax ffmpeg flash foomatic ftp gd gdbm ggi gif gnutls gs hardened iconv icq idn imagemagick imap imlib imlib2 ipv6 jabber jpeg jpeg2k kerberos krb4 ldap lesstif libwww lirc logrotate lzo mad maildir mcal mdnsresponder-compat memlimit mhash midi mime mmap mmx mng msn ncurses netpbm nls nocd nptl nptlonly ogg oggvorbis oscar pam pcre php pic png posix postgres ppds python readline rle samba sasl scanner sdl session shared sharedmem simplexml slang slp snmp sockets spell sqlite sse ssl szip tcpd theora tidy tiff tokenizer truetype unicode unzip urandom usb v4l vhosts vorbis x86 xml xml2 xmlrpc xorg xvid yahoo zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 	emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m 	maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de nl" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt intel 	mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage 	siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware 	voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Next thing i'm going to try, is to use -O1 and 2 for this package, maybe -Os is to tricky.
Comment 1 SpanKY gentoo-dev 2009-03-15 07:12:06 UTC
fixed in cvs ... the treelang code doesnt work with boundschecking apparently

http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.393&r2=1.394