Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412117 - sys-devel/gcc-4.6.2 - dev-libs/cloog-ppl-0.15.10 with dev-libs/ppl-0.12 -In function 'new_clast_reduction': source/ppl/clast.c:51:25: internal compiler error: Segmentation fault
Summary: sys-devel/gcc-4.6.2 - dev-libs/cloog-ppl-0.15.10 with dev-libs/ppl-0.12 -In f...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-15 16:35 UTC by Chris Smith
Modified: 2015-03-17 05:26 UTC (History)
3 users (show)

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


Attachments
cloog-ppl build log (cloog.build.log,16.44 KB, text/plain)
2012-04-16 12:28 UTC, Chris Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2012-04-15 16:35:18 UTC
had to mask dev-libs/ppl-0.12 on both x86 and amd64 as dev-libs/cloog-ppl-0.15.10 doesn't build against it
Comment 1 Chris Smith 2012-04-15 16:36:49 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include/cloog -I./include -I./include -Wall -fomit-frame-pointer -O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block -c source/ppl/clast.c  -fPIC -DPIC -o .libs/clast.o
source/ppl/clast.c: In function 'new_clast_reduction':
source/ppl/clast.c:51:25: internal compiler error: Segmentation fault
Comment 2 Chris Smith 2012-04-15 16:37:24 UTC
emerge --info
Portage 2.2.0_alpha100 (default/linux/amd64/10.0, gcc-4.6.2, glibc-2.15, 3.3.1-gentoo x86_64)
=================================================================
System uname: Linux-3.3.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Sun, 15 Apr 2012 14:45:01 +0000
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3, 3.2.2-r1
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15
Repositories: gentoo tcg mythtv
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-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/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
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 xattr"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://mirrors.rit.edu/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="V=1 -j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/mythtv_portage/Gentoo"
SYNC="rsync://rsync11.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 amr apache2 audiofile bash-completion berkdb bluetooth bzip2 cairo caps cdaudio cddb cdparanoia cdr cdrdao chm cli consolekit cracklib crypt cups curl cxx dbus designer-plugin djvu dri dts dv dvb dvd dvdr ebook encode exif fam ffmpeg flac fortran gdbm gif gmp gnome gphoto2 gpm gps graphite gstreamer gtk gtk3 iconv icu ieee1394 imagemagick imap imlib ipv6 jack java jpeg jpeg2k kpathsea lame lcms libffi libnotify mad marble midi mmap mmx modules mozilla mp3 mudflap multilib musicbrainz mythtv ncurses network nls nodrm nptl nptlonly nsplugin nvidia ofx ogg opencl openexr opengl openmp pam pcre pdf png policykit pulseaudio quicktime readline samba sasl scanner sdl semantic-desktop session slp smp sndfile spell sse sse2 ssl subversion svg sysfs theora threads tiff tk transparency truetype udev unicode usb v4l vcd vdpau vim-syntax vorbis vpx wav wavpack wmf x264 xattr xcomposite xine xml xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel hdsp hpet hrtimer rtctimer seqdummy virmidi" 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" 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 sheets stage tables krita karbon braindump" CAMERAS="*" 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" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Chris Smith 2012-04-15 19:03:55 UTC
looks like it can workaround by building ppl and cloog-ppl without loop optimizations and once done they will build with loop optimizations
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-16 11:16:19 UTC
Please attach the entire failing build log to this bug report.
Comment 5 Chris Smith 2012-04-16 12:28:56 UTC
Created attachment 309135 [details]
cloog-ppl build log
Comment 6 Chris Smith 2012-04-16 12:29:36 UTC
attached description should read cloog build log
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-16 18:37:01 UTC
Comment on attachment 309135 [details]
cloog-ppl build log

(In reply to comment #6)
> attached description should read cloog build log

You can actually fix that yourself by accessing the attachment's properties through the [Details] link.
Comment 8 Douglas J Hunley 2012-04-16 20:19:43 UTC
confirmed on ~amd64 with gcc 4.5.3 
Running this:
emerge -1 ppl && emerge -1 cloog-ppl
with:
CFLAGS="-O2 -pipe -march=native -mtune=native -mpopcnt -msahf -fomit-frame-pointer -fforce-addr"

works fine but the same command with:
CFLAGS="-O2 -pipe -march=native -mtune=native -mpopcnt -msahf -fomit-frame-pointer -fforce-addr -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution -ftree-loop-linear"

causes the compiler to throw internal errors and segfaults.

The work around described herein fixes it for me ;)
Comment 9 Ryan Hill (RETIRED) gentoo-dev 2012-04-17 01:59:47 UTC
Okay, let's get this straight - you build ppl-0.12.  Then you build cloog-ppl with graphite flags enabled and it bombs.  Then you rebuild cloog-ppl without graphite flags and it works.  What happens when you rebuild cloog-ppl with graphite flags again after this?
Comment 10 Chris Smith 2012-04-17 02:38:28 UTC
(In reply to comment #9)
> Okay, let's get this straight

These, exactly, are the loop optimizations I'm referring to:
CFLAGS="${CFLAGS} -floop-interchange -floop-strip-mine -floop-block"

The above line is normally active in my /etc/make.conf.

I upgrade to ppl-0.12 and then attempt to rebuild cloog-ppl-0.15.10 and it fails. However if I rem out the above CFLAGS line in my make.conf (no loop optimizations) I can then build ppl-0.12 followed by cloog-ppl-0.15.10, once that is done I can then rebuild them both with the the CFLAGS line active (loop optimizations).

What I didn't attempt was upgrading to ppl-0.12 with loop opts and then rebuilding cloog-ppl-0.15.10 without loop opts followed by rebuilding cloog-ppl-0.15.10 one more time with loop opts.
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2012-04-17 04:52:51 UTC
Thanks.  It sounds like this is the same issue everyone runs into when upgrading ppl: cloog-ppl has to be rebuilt before you can use graphite loop flags again, and you need to disable graphite flags to do that.  Before it would give you an "unimplemented" error.  Now it's just segfaulting.  Most likely the cloog patch in GCC needs to be updated for 0.12.

How we're going to do that while maintaining backwards compatibility for older ppl and gcc versions is beyond me.  We're probably going to end up having to SLOT ppl at some point.
Comment 12 Alec Meyers 2012-04-18 15:18:05 UTC
What's the cause of this? I just upgraded ppl on two machines (I use the graphite flags and gcc-4.6.2 on both), and I didn't have any problems...
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2012-06-24 02:04:44 UTC
Re: the slotting of ppl, it sounds like 4.7 will be the last version with a ppl dependency.
Comment 14 SpanKY gentoo-dev 2012-07-24 17:52:27 UTC
(In reply to comment #11)

i don't suppose there is a check we can add to one of the ppl ebuilds to catch this ?  or do we just suck it up and let the few people who hit it find this bug and manually adjust their CFLAGS & re-emerge packages ?
Comment 15 Ryan Hill (RETIRED) gentoo-dev 2012-07-24 19:34:27 UTC
We could just strip-flags().  It's amazing how many times I've seen people baffled that they can't rebuild ppl with graphite flags after the message tells them that graphite flags won't work until they rebuild ppl.
Comment 16 Ryan Hill (RETIRED) gentoo-dev 2012-07-24 19:35:22 UTC
s/ppl/cloog-ppl
Comment 17 SpanKY gentoo-dev 2014-11-04 04:13:18 UTC
i think we're going to drop graphite support in <gcc-4.8 to keep things simple -- older ones require the forked cloog-ppl
Comment 18 SpanKY gentoo-dev 2015-03-17 05:26:09 UTC
we're dropping cloog-ppl from the tree