Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367385 - [4.6/graphite] games-rpg/freedroidrpg-0.15 ICE with CFLAGS='-O2 -floop-parallelize-all'
Summary: [4.6/graphite] games-rpg/freedroidrpg-0.15 ICE with CFLAGS='-O2 -floop-parall...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-15 14:48 UTC by Emmanuel Andry
Modified: 2015-10-22 14:18 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,37.00 KB, text/x-log)
2011-05-15 14:48 UTC, Emmanuel Andry
Details
reduced testcase (ice_367385.c,579 bytes, text/plain)
2012-06-05 10:25 UTC, Kacper Kowalik (Xarthisius) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Andry 2011-05-15 14:48:52 UTC
Created attachment 273283 [details]
build.log

faction.c: In function ‘init_factions’:
faction.c:97:6: erreur interne du compilateur: Segmentation fault
Comment 1 Emmanuel Andry 2011-05-15 14:50:37 UTC
# emerge --info
Portage 2.1.9.49 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.0, glibc-2.13-r2, 2.6.38-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r5-x86_64-AMD_Phenom-tm-_II_N930_Quad-Core_Processor-with-gentoo-2.0.2
Timestamp of tree: Sun, 15 May 2011 13:15:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.2
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
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
sys-devel/gcc:            4.6.0
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA googleearth Broadcom PUEL dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -g -march=native -mtune=native -floop-interchange -floop-strip-mine -floop-block -floop-parallelize-all -fgraphite-identity"
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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -g -march=native -mtune=native -floop-interchange -floop-strip-mine -floop-block -floop-parallelize-all -fgraphite-identity"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.opteamax.de/gentoo/ rsync://mirror.opteamax.de/gentoo/ ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j9"
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=""
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr apng audit autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cddb cdr cgroup chm cleartype cli colordiff consolekit cracklib crypt css cups curl cxx dbus desktopglobe dga dhcp dirac dri dts dvd dvdr ebook embedded-fuseiso emboss encode exif expat extras faac faad fam fbcondecor ffmpeg fftw firefox flac fluidsynth fontconfig fortran freetype fts3 fuse gallium gdbm gdu gensplash gif gles glitz gmp gnutls gphoto2 gpm gps graphite grub gs gsm gstreamer gtk hdmi hdri iconv icoutils id3tag idn imagemagick inotify ipv6 java jbig jpeg jpeg2k kde kipi laptop lcms ldap libedit libnl libnotify libsamplerate libv4l2 live llvm lm_sensors lto lua lzma lzo mad matroska midi mikmod mktemp mmx mmxext mng modules mp3 mp4 mpeg msn mudflap multilib musepack musicbrainz ncurses network network-cron nls nptl nptlonly nsplugin nss ntp ogg openal opencl openexr opengl openmp openssl optimized-qmake pae pam pango pcre pdf perl phonon physfs plasma plymouth pnat png policykit polkit portaudio ppds pppd prelink pulseaudio python qt3support qt4 quicktime radeon rdesktop readline resolvconf rle rss rtmp rtsp samba schroedinger sdl secure-delete semantic-desktop session skey sndfile speex spell sqlite sse sse2 sse3 sse4a ssl startup-notification stream strong-optimization suid svg symlink synaptics sysfs syslog system-sqlite taglib tcpd theora threads thumbnail tiff truetype udev unicode unlock-notify upnp usb utempter v4l2 vaapi vdpau vnc vorbis vp8 vpx wav webkit webm webp wicd wifi windeco winetricks wps x264 xattr xcb xcomposite xinerama xml xmp xorg xosd xpm xscreensaver xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" 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 joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Tupone Alfredo gentoo-dev 2011-05-16 07:06:11 UTC
It does compile here with the CFLAGS/CXXFLAGS I have.
Have you tried removing the specific optimizations you have and have 
CFLAGS and CXXFLAGS "-O2 -pipe -g -march=native -mtune=native"?
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2011-05-16 18:50:20 UTC
gcc fails when given certain input is more of a toolchain issue rather than an issue with the game.  reassigning.
Comment 4 Emmanuel Andry 2011-05-21 09:20:48 UTC
It compiles with "-O2 -pipe -g -march=native -mtune=native".
As graphite issues are not supported by gentoo, maybe this ticket can be closed as INVALID.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2011-06-21 02:59:41 UTC
We "support" graphite in 4.5+ as in we'll fix compiler bugs related to it if we get time.  It remains to be seen if this is a compiler bug...
Comment 6 Tolga Dalman 2012-03-16 11:34:31 UTC
Is this error still relevant for freedroidrpg-0.15 and gcc-4.6.[23] ?
Comment 7 Emmanuel Andry 2012-03-18 16:44:38 UTC
I don't use graphite anymore since many month, I can't tell if it works now
Comment 8 Tolga Dalman 2012-04-23 22:55:09 UTC
I just installed freedroidRPG 0.15 successfully with GCC-4.6.2. Whether 0.14.1 compiles I cannot say. Is there any reason to keep the old version around ? Otherwise, I'd say, this bug is fixed.
Comment 9 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-05 10:25:29 UTC
Created attachment 314271 [details]
reduced testcase
Comment 10 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-06-06 11:29:41 UTC
Fixed by:

commit 367113ea9531e9b5eafa834fb120d45106709dc2
Author: ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Sun Sep 25 14:55:12 2011 +0000

    	* tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
    	if there is no outgoing edge.
    
    	* tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
    	integral types.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179165 138bc75d-0d04-0410-961f-82ee72b054a4

unaffected versions: sys-devel/gcc-4.7.0
affected version: <=sys-devel/gcc-4.6.3

It hasn't been backported to gcc-4.6 branch
Comment 11 SpanKY gentoo-dev 2015-10-22 14:18:23 UTC
gcc-4.9 is stable now, so throwing away older bugs we don't plan on doing backports for as this should be fixed w/4.9+.  please re-open if it's still an issue with 4.9.3+ though.