Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389709 - dev-java/icedtea-7.2.0-r1: failed to emerge due to SIGSEGV in the build process
Summary: dev-java/icedtea-7.2.0-r1: failed to emerge due to SIGSEGV in the build process
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Andrew John Hughes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: icedtea-tracker
  Show dependency tree
 
Reported: 2011-11-06 10:29 UTC by Oleg Osipovich
Modified: 2018-02-07 18:26 UTC (History)
10 users (show)

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


Attachments
Full build log (build.log.gz,57.31 KB, text/plain)
2011-11-06 10:38 UTC, Oleg Osipovich
Details
Java error report (hs_err_pid32069.log,14.52 KB, text/plain)
2011-11-06 10:43 UTC, Oleg Osipovich
Details
complete build log (build.log,15.44 KB, text/plain)
2011-11-10 18:40 UTC, Georgi Kehaiov
Details
emerge --info (emerge.info,4.86 KB, text/plain)
2011-11-10 18:41 UTC, Georgi Kehaiov
Details
build.log (build.log,150.20 KB, text/plain)
2011-11-20 09:55 UTC, Dennis Schridde
Details
hs_err_pid28774.log (hs_err_pid28774.log,21.44 KB, text/plain)
2011-11-20 09:57 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Osipovich 2011-11-06 10:29:15 UTC
I'm trying to bootstrap dev-java/icedtea-7.2.0-r1 using dev-java/icedtea-bin-1.10.4 (installed via emerge jdk:1.6) and receive SIGSEGV crash in the build process.

Reproducible: Always

Steps to Reproduce:
1. No java (jdk/jre) intalled
2. emerge jdk:1.6 (to get dev-java/icedtea-bin)
3. [probably not relevant] emerge -1 dev-java/ant-nodeps (to resolve circular dependecies)
4. [probably not relevant] emerge -1 dev-java/xerces dev-java/xalan (to workaround #389625 )
5. emerge jdk (to get dev-java/icedtea-7.2.0-r1)

Actual Results:  
emerge of dev-java/icedtea failed with this at the end of the build log:

Linking vm...
echo Linking launcher...
Linking launcher...
i686-pc-linux-gnu-gcc -m32 -march=i586 -Xlinker -O1   -Xlinker -z -Xlinker noexecstack -m32 -march=i586 -Xlinker -export-dynamic  -L `pwd` -o gamma launcher/java_md.o launcher/jli_util.o launcher/java.o launcher/wildcard.o -ljvm -lm -ldl -lpthread
make[7]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/hotspot/outputdir/linux_i486_compiler2/product'
All done.
make[6]: Leaving directory `/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/openjdk.build/hotspot/outputdir/linux_i486_compiler2/product'
cd linux_i486_compiler2/product && ./test_gamma
java full version "1.6.0_22-b22"
Using java runtime at: /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0/jre
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb6d2c843, pid=32069, tid=3062614896
#
# JRE version: 6.0_22-b22
# Java VM: OpenJDK Server VM (21.0-b17 mixed mode linux-x86 )
# Derivative: IcedTea7 2.0
# Distribution: Built on Gentoo Base System release 2.1 (Sun Nov  6 13:50:13 FET 2011)
# Problematic frame:
# V  [libjvm.so+0x153843]  MacroAssembler::jump(AddressLiteral)+0x43
#

Expected Results:  
Successful emerge of dev-java/icedtea.

Portage 2.1.10.32 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.13-r4, 3.1.0-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.0-gentoo-i686-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-2.1
Timestamp of tree: Sun, 06 Nov 2011 06:45:02 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r1, 4.6.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo gentoo-haskell lisp mozilla
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/games/angband/edit/ /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.mgts.by/pub/gentoo-distfiles"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/haskell /var/lib/layman/lisp /var/lib/layman/mozilla"
SYNC="rsync://ftp.mgts.by/pub/gentoo-portage"
USE="X aac acl acpi alsa berkdb bzip2 cairo cli cracklib crypt cue cups cxx darcs dbus djvu dri encode flac ftp gdbm git gpm iconv ipv6 jpeg lm_sensors lock mad mercurial mmx modules mp3 mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre png pppd readline session sqlite sse sse1 sse2 sse3 sse4 ssl ssse3 startup-notification sysfs tcpd threads thunar unicode vorbis x86 xorg 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Oleg Osipovich 2011-11-06 10:38:06 UTC
Created attachment 291803 [details]
Full build log
Comment 2 Oleg Osipovich 2011-11-06 10:41:30 UTC
Note that build log attachment isn't plain text, it's gziped.
Comment 3 Oleg Osipovich 2011-11-06 10:43:39 UTC
Created attachment 291807 [details]
Java error report
Comment 4 Markus Wernig 2011-11-09 11:53:41 UTC
Hi all

Exactly the same happens here on ~x86 32bit

Use flags:
# equery u icedtea
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-java/icedtea-7.2.0-r1:
 U I
 - - debug      : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
                  http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - doc        : Adds extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - examples   : Install examples, usually source code
 - - jamvm      : Use the JamVM virtual machine instead of HotSpot.
 - - javascript : Enables javascript support
 + + nsplugin   : Enable browser plugin (NPPlugin), requires also the webstart flag to be enabled.
 - - pulseaudio : Adds support for PulseAudio sound server
 - - systemtap  : Enable SystemTap probes in HotSpot.
 + - webstart   : Enable Web Start support (via NetX).
 - - zero       : Enable the zero assembler port of HotSpot.

# emerge --info
Portage 2.1.10.32 (default/linux/x86/10.0/desktop, gcc-4.4.5, glibc-2.13-r4, 3.1.0 i686)
=================================================================
System uname: Linux-3.1.0-i686-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.1
Timestamp of tree: Wed, 09 Nov 2011 07:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     1.3.7-r1, 2.1.11-r3
dev-lang/python:          2.4.6, 2.5.4-r4, 2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            3.3.6-r1, 4.1.2, 4.3.4, 4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1 
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
...

# qlist -I -v icedtea
dev-java/icedtea-bin-1.10.3
Comment 5 Georgi Kehaiov 2011-11-10 18:40:15 UTC
Created attachment 292135 [details]
complete build log
Comment 6 Georgi Kehaiov 2011-11-10 18:41:05 UTC
Created attachment 292137 [details]
emerge --info
Comment 7 Georgi Kehaiov 2011-11-10 19:05:11 UTC
hello everyone, I'm having a quite similar issue (build.log and emerge --info have already been attached):


ln -sf /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/icedtea /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0; \
if ! /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0/bin/java -version ; \
         then \
           echo "/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0/bin/java" \
               "cannot be found or is corrupted." ; \
           exit 1; \
        fi
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb6bf4679, pid=30941, tid=3063307120
#
# JRE version: 7.0_147-b147
# Java VM: OpenJDK Server VM (21.0-b17 mixed mode linux-x86 )
# Derivative: IcedTea7 2.0
# Distribution: Built on Gentoo Base System release 2.1 (Thu Nov 10 19:42:17 CET 2011)
# Problematic frame:
# V  [libjvm.so+0x13a679]  MacroAssembler::jump(AddressLiteral)+0x39
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/hs_err_pid30941.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
#
/bin/sh: line 6: 30941 Aborted                 /var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0/bin/java -version
/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0/bootstrap/jdk1.6.0/bin/java cannot be found or is corrupted.
make: *** [stamps/bootstrap-directory-symlink-stage2.stamp] Error 1
 * ERROR: dev-java/icedtea-7.2.0-r1 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =dev-java/icedtea-7.2.0-r1',
 * the complete build log and the output of 'emerge -pqv =dev-java/icedtea-7.2.0-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-java/icedtea-7.2.0-r1/work/icedtea-2.0'
!!! When you file a bug report, please include the following information:
GENTOO_VM=gcj-jdk  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info




the problem occurred when I tried emerge -uND world; it complained about circular dependencies and proposed me to modify package.use to include "dev-java/icedtea -javascript", which i did. Now I'm stuck at not being able to emerge jdk-1.7.0
Comment 8 Dennis Schridde 2011-11-20 09:55:33 UTC
Created attachment 293183 [details]
build.log

Similar issue upgrading from dev-java/icedtea-7.2.0 to dev-java/icedtea-7.2.0-r1:
---
#  SIGSEGV (0xb) at pc=0x00007ff1b81c805a, pid=28774, tid=140676068923136
#
# JRE version: 7.0_147-b147
# Java VM: OpenJDK 64-Bit Server VM (21.0-b17 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea7 2.0
# Distribution: Built on Gentoo Base System release 2.1 (Fri Nov  4 18:35:42 CET 2011)
# Problematic frame:
# V  [libjvm.so+0x62105a]  JVM_FindSignal+0xf8a8a
---
Comment 9 Dennis Schridde 2011-11-20 09:57:00 UTC
Created attachment 293185 [details]
hs_err_pid28774.log
Comment 10 Dennis Schridde 2011-11-20 09:57:57 UTC
Portage 2.2.0_alpha76 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.2, glibc-2.13-r4, 3.1.1-gentoo x86_64)
=================================================================
System uname: Linux-3.1.1-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.1
Timestamp of tree: Sun, 20 Nov 2011 08:15:01 +0000
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo kde sunrise local
Installed sets: @kdebase
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=athlon64-sse3 -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/neatx/home"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -O2 -march=athlon64-sse3 -ftree-vectorize"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--depclean-lib-check n --with-bdeps y --keep-going"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ "
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--hash-style=gnu"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
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="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/layman/kde /var/cache/portage/layman/sunrise /var/cache/portage/local"
[...]
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 Dmitry 2011-12-07 12:41:21 UTC
Hi all. Sorry for my English :)

I've had the same problem in version 7.2.0-r1.
But icedtea-7.2.0-r3 successfully compiled when I set -march=i686 instead of -march=native in CFLAGS and CXXFLAGS variables for this package.
Comment 12 Jonathan Thibault 2012-09-03 21:20:49 UTC
Same issue here. on ~x86  -march=native or -march=core2 yields a SIGSEGV, -march=i686 builds fine.  It would be interesting to figure out which of the -march=core2 subset the build disagrees with.
Comment 13 dwfreed 2012-09-05 07:07:39 UTC
I have this problem too, and I have a feeling that this is caused by an SSE instruction set.  Try compiling with -march=nocona, -march=prescott, and -march=pentium4.  If nocona works, then it's SSSE3 that's to blame; if prescott works, then it's something really weird with 64-bit extensions (which shouldn't be used, since it's compiling for 32-bit arch); if pentium4 works, then SSE3 is the problem.
Comment 14 Jonathan Thibault 2012-09-17 14:59:18 UTC
(In reply to comment #13)

Interesting.  '-march=nocona' works, but not '-march=native -mno-ssse3'...  I'll look into it further.
Comment 15 Dmitry Derevyanko 2012-10-13 11:48:15 UTC
Workaround that works for me:
1) In make.conf CFLAGS="-O2 ...". Regardless of what is in the -march=
2) "emerge -1 zlib"
3) Return CFLAGS in make.conf to what you want
4) "emerge -1 ant-core ant-nodeps icedtea". Compiles fine
We need to know which of the flags in -O3 affects zlib.

P.S. Sorry for my english.
Comment 16 Eckard Brauer 2012-11-01 15:35:10 UTC
I can confirm the exact problem with currently icedtea-7.2.3.3, but already had it for some time.

(a) The problem seems to be caused by gcc when using -march= (pentimu4, in my case) and -O3. Some of the binaries created do SEGV when run. This is the case with icedtea build, but has also been observed with different binaries (e.g. jpeg libraries) before. My workaround still is to exchange -O3 with -O2 in the C(XX)FLAGS in /etc/portage/bashrc.

(b) The problem with icedtea bild is caused by dev-java/icedtea-7.2.3.3/work/icedtea-2.3.3/openjdk*/hotspot/make/linux/makefiles/gcc.make contain "CFLAGS += -O3" (or the like, have it at home) after patches have been applied. My personal workaround is to stop the ebuild process when compiling starts (just after configuring & patching), fixing the file by hand, and finally foreground'ing the stopped job.

If you'd ask, no, I won't file a bug upstream, because I don't have the time to isolate a test case for that, but if memory serves me well, gcc developers were very unwilling to help without one.
Comment 17 Eckard Brauer 2012-11-02 14:42:48 UTC
Correction: -march=pentium-m, in my case.
Comment 18 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-07 17:58:15 UTC
I'm going to close this very old bug as obsolete due to new comments for 5+ years. If it still happens with the current version, feel free to reopen.