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

Bug 233955

Summary: econf fails on dev-java/antlr-2.7.7 - c++ compiler cannot create executables
Product: Gentoo Linux Reporter: Matthias Krull <m.krull>
Component: [OLD] JavaAssignee: Java team <java>
Status: VERIFIED WORKSFORME    
Severity: normal CC: toolchain
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: antlr-2.7.7 build.log
antlr-2.7.7 config.log

Description Matthias Krull 2008-08-05 09:56:55 UTC
I tried to emerge eclipse and got that error. Trying to emerge antlr only brought the same error.

Reproducible: Always

Steps to Reproduce:
1. emerge =dev-java/antlr-2.7.7



Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo-9p i686)
=================================================================
System uname: 2.6.26-gentoo-9p i686 Intel(R) Pentium(R) M processor 1700MHz
Timestamp of tree: Fri, 01 Aug 2008 16:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r5
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.61-r2
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.1
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.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ "
LINGUAS="de"
MAKEOPTS="-j2"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb bts clflush cli cmov cracklib crypt cups curl cx8 de dri dts est fortran fpu fxsr gdbm gpm iconv ipv6 isdnlog jpeg mca mce midi mmx msr mtrr mudflap ncurses nls nptl nptlonly opengl openmp pam pat pbe pcre perl pge png pppd pse python readline reflection sep session spl sse sse2 ssl tcpd tm tm2 tsc unicode up vme x86 xorg zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matthias Krull 2008-08-05 09:58:19 UTC
Created attachment 162253 [details]
antlr-2.7.7 build.log
Comment 2 Matthias Krull 2008-08-05 09:59:06 UTC
Created attachment 162254 [details]
antlr-2.7.7 config.log
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2008-08-05 16:12:38 UTC
configure:3221: checking for C++ compiler default output file name
configure:3224: i686-pc-linux-gnu-g++ -Os -march=i686 -pipe -fomit-frame-pointer   conftest.cc  >&5
conftest.cc:15: internal compiler error: Segmentation fault

To me it looks like you have a borked gcc. If you have used some weird flags, you should consider recompiling your system or it could be a hardware problem too I guess.
Comment 4 Matthias Krull 2008-08-06 10:10:15 UTC
I already build my system new and without unusual flags (is -Os unusual..?). Everything else i emerged compiled just fine.

Ok, after recompiling the toolchain with -O2 cflag instead of -Os it works.
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2008-08-06 17:28:35 UTC
(In reply to comment #4)
> I already build my system new and without unusual flags (is -Os unusual..?).
> Everything else i emerged compiled just fine.
> 

Not really familiar with the flags but I remember -Os not being that well tested.