Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345219 (PR45314) - [4.5/graphite] app-office/openoffice-3.2.1-r1: ICE in remove_unreachable_handlers, at tree-eh.c
Summary: [4.5/graphite] app-office/openoffice-3.2.1-r1: ICE in remove_unreachable_hand...
Status: RESOLVED FIXED
Alias: PR45314
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR45314
Whiteboard:
Keywords: Inclusion
: 336510 345861 (view as bug list)
Depends on:
Blocks: 346445
  Show dependency tree
 
Reported: 2010-11-12 17:41 UTC by David Pyke
Modified: 2010-11-29 20:40 UTC (History)
4 users (show)

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


Attachments
Complete build log (bzipped for your protection) (build.log.bz2,239.53 KB, text/plain)
2010-11-12 17:43 UTC, David Pyke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Pyke 2010-11-12 17:41:54 UTC
/var/tmp/portage/app-office/openoffice-3.2.1-r1/work/ooo/build/OOO320_m19/toolkit/source/awt/vclxwindows.cxx: In member function 'virtual double VCLXCurrencyField::getMin()':
/var/tmp/portage/app-office/openoffice-3.2.1-r1/work/ooo/build/OOO320_m19/toolkit/source/awt/vclxwindows.cxx:5944:8: internal compiler error: in remove_unreachable_handlers, at tree-eh.c:3294
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
dmake:  Error code 1, while making '../../unxlngx6.pro/slo/vclxwindows.obj'


Reproducible: Always




Portage 2.2.0_alpha4 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36-ck-r1 x86_64)
=================================================================
System uname: Linux-2.6.36-ck-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_930_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 12 Nov 2010 07:15:03 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r2
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4
sys-devel/make:      3.82
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
Repositories: gentoo kde gcc-porting sunrise gamerlay-stable local_portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb /var/spool/torque"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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="-O2 -pipe -march=native -floop-interchange -floop-strip-mine -floop-block -w"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --keep-going --jobs=2 --load-average=16 --with-bdeps=y --complete-graph"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en_CA en_US en"
MAKEOPTS="-j12"
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/kde /var/lib/layman/gcc-porting /var/lib/layman/sunrise /var/lib/layman/gamerlay /usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="64bit X a52 aac aacs acl acpi akonadi alsa amd64 amr ao apache2 avahi berkdb bidi bluetooth branding bzip2 cairo cddb cdparanoia cdr cli consolekit cracklib crypt cups curl cxx dbus dri dts dvd dvdr emboss encode exif fam fbcon ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif glibc-omitfp gmp gnutls google-gadgets gpm gs gtk hal hpn iconv icu idn ieee1394 imagemagick imlib inotify ipv6 java jpeg jpeg2k kde kdrive lame lapack lcdfilter lcms ldap libnotify libsamplerate lm_sensors logrotate lzma lzo mad mikmod mmx mmxext mng modules mono motif mp3 mp4 mpeg mudflap multilib mysql mysqli ncurses network nls nptl nptlonly nsplugin offensive ogg opengl openmp optimized-qmake oss pam pango pch pcre pdf perl php plotutils png policykit ppds pppd profile python qt3support qt4 readline ruby samba sasl sdl semantic-desktop session smp sndfile snmp speex spell sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs system-sqlite tcpd theora threads tidy tiff truetype ubuntu udev unicode usb v4l v4l2 vdpau vim-syntax visibility vorbis vpx webkit wmf x264 xcb xcomposite xml xorg xpm xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="hda-intel" 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" 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" LINGUAS="en_CA en_US en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

sys-devel/gcc-4.5.1  USE="fortran graphite gtk lto mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj (-hardened) (-libffi) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla"

app-office/openoffice-3.2.1-r1 [3.2.1] USE="cups dbus gstreamer gtk java kde ldap nsplugin opengl pam (-aqua) -bash-completion -binfilter -debug -eds -gnome (-kdeenablefinal) -odk -templates" LINGUAS="en en_US -af -ar -as_IN -be_BY -bg -bn -br -brx -bs -ca -cs -cy -da -de -dgo -dz -el -en_GB -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi_IN -hr -hu -id -it -ja -ka -kk -km -kn_IN -ko -kok -ks -ku -lt -mai -mk -ml_IN -mn -mni -mr_IN -nb -ne -nl -nn -nr -ns -oc -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sa_IN -sat -sd -sh -sk -sl -sr -ss -st -sv -sw_TZ -ta -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -uz -ve -vi -xh -zh_CN -zh_TW -zu"
Comment 1 David Pyke 2010-11-12 17:43:35 UTC
Created attachment 254117 [details]
Complete build log (bzipped for your protection)
Comment 2 Hanno Zysik (geki) 2010-11-12 22:56:38 UTC
That happens with fancy CXXFLAGS, reference:
https://forums.gentoo.org/viewtopic-p-6457661.html#6457661

Following FLAGS do fine with gcc-4.5.1.

___
$ grep FLAGS /etc/make.conf 
CFLAGS="-O2 -mtune=core2 -march=core2 -pipe -fomit-frame-pointer -funswitch-loops"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common"
Comment 3 Hanno Zysik (geki) 2010-11-12 23:07:16 UTC
It looks like openoffice should add 'strip-flags' next to filtering optimization level, instead of selectively filtering some flags. Just to be safe for good with this beast.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2010-11-13 01:53:39 UTC
the solution for stupid compiler flags causing errors is not strip-flags.  it's not using stupid compiler flags.
Comment 5 Hanno Zysik (geki) 2010-11-13 09:57:14 UTC
Well, you may have a look at the openoffice ebuild, Ryan. ;)

Nothing more to say but openoffice fails far too easily and I would not want to maintain that and be bugged like this again, and again, and again with new gcc features.

And this failing features of gcc-4.5 do not look stupid to me in general, just openoffice being a pita.
Comment 6 Xake 2010-11-13 14:46:28 UTC
(In reply to comment #5)
> Nothing more to say but openoffice fails far too easily and I would not want to
> maintain that and be bugged like this again, and again, and again with new gcc
> features.

So why not just have a big fat message (like sandbox has) so if the merge fails, tell people to sanitize their C(XX)FLAGS before reporting?
And bug reports where people have not, close wontfix telling people to come back when they have a sane openoffice-env?
Comment 7 Hanno Zysik (geki) 2010-11-13 14:57:35 UTC
Well, just my point of view that openoffice is an exception to the rule(s).

It is not quite friendly to compile that beast for hours - not all people out there have highend machines - and let it fail for something this trivial.

Over the last years this just has happened too often. Once and for all. ;)
Comment 8 Hanno Zysik (geki) 2010-11-13 15:07:16 UTC
And if there was a compiler flag safe enough that really improves openoffice runtime execution, it should be added to ALLOWED_FLAGS in flag-o-matic.
Comment 9 David Pyke 2010-11-13 15:08:29 UTC
I thought reporting an ICE in gcc would have been considered helpful.  I'm obviously wrong.  I'll not make that mistake again.
Comment 10 Xake 2010-11-13 15:21:40 UTC
(In reply to comment #9)
> I thought reporting an ICE in gcc would have been considered helpful.  I'm
> obviously wrong.  I'll not make that mistake again.
> 

The problem is not that you are reporting an ICE in gcc, the problem is that you are reporting an ICE in GCC here for features in the compiler which are not yet very stable and not generally supported by Gentoo.

Since Graphite is unsupported by gentoo, you are on your own with this, unless you can show that this happends even with "sane" flags.
What you may want to is to check if it is a already known gcc/graphite bug:
http://gcc.gnu.org/wiki/Graphite/bugs
And/or try to figure out exactly what code does breaks g++, make a testcase, try it against vanilla GCC and report it upstream.
If it leads to a patch accepted by upstream, then you may come back ad ask to have that patch included into the gentoo patchset until upstream releases a fixed version.


If you do not have the knowledge to do that, then you should not use graphite in Gentoo.
Comment 11 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-13 16:28:41 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Nothing more to say but openoffice fails far too easily and I would not want to
> > maintain that and be bugged like this again, and again, and again with new gcc
> > features.
> 
> So why not just have a big fat message (like sandbox has) so if the merge
> fails, tell people to sanitize their C(XX)FLAGS before reporting?
> And bug reports where people have not, close wontfix telling people to come
> back when they have a sane openoffice-env?

Which is actually EXACTLY what we already have right now...

	ewarn " It is important to note that OpenOffice.org is a very fragile  "
	ewarn " build when it comes to CFLAGS.  A number of flags have already "
	ewarn " been filtered out.  If you experience difficulty merging this  "
	ewarn " package and use aggressive CFLAGS, lower the CFLAGS and try to  "
	ewarn " merge again. "

	ewarn " Also if you experience a build break, please make sure to retry "
	ewarn " with MAKEOPTS="-j1" before filing a bug. "
Comment 12 Xake 2010-11-13 16:56:32 UTC
(In reply to comment #11)
> Which is actually EXACTLY what we already have right now...
> 

Which is good, but this erro scrolls past fast in the beginnig, while the sandbox message comes up when the build fails, in the end of the log. Much less likely that people will miss that.
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2010-11-13 20:10:06 UTC
> I thought reporting an ICE in gcc would have been considered helpful.  I'm
> obviously wrong.  I'll not make that mistake again.

If it wasn't helpful I would have closed it myself.  I was referring to the suggestion to use strip-flags which is almost never the right answer, especially in this case where it would be used to cover up a real bug.

We "support" graphite in 4.5+, where "support" means not close bugs automatically.  As you can see this bug has been already fixed upstream for 4.5.2.
Comment 14 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-17 11:36:06 UTC
*** Bug 345861 has been marked as a duplicate of this bug. ***
Comment 15 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-11-17 11:49:11 UTC
Ryan any hope you can backport this one together with the -fno-strict-overflow in the next patchset? Or is 4.5.2 due soon enough that it won't matter?
Comment 16 Ryan Hill (RETIRED) gentoo-dev 2010-11-18 01:34:32 UTC
Okay.  I'm planning on rolling a patchset tomorrow.
Comment 17 Ryan Hill (RETIRED) gentoo-dev 2010-11-19 06:14:47 UTC
Fixed in patchset 1.3.
Comment 18 Alec Meyers 2010-11-22 22:11:58 UTC
*** Bug 336510 has been marked as a duplicate of this bug. ***
Comment 19 Ryan Hill (RETIRED) gentoo-dev 2010-11-29 17:21:40 UTC
This patch is causing segfaults in several packages.
Comment 20 Ryan Hill (RETIRED) gentoo-dev 2010-11-29 20:40:39 UTC
Fixed again.

http://gcc.gnu.org/bugzilla/46651