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
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
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
looks like it can workaround by building ppl and cloog-ppl without loop optimizations and once done they will build with loop optimizations
Please attach the entire failing build log to this bug report.
Created attachment 309135 [details] cloog-ppl build log
attached description should read cloog build log
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.
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 ;)
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?
(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.
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.
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...
Re: the slotting of ppl, it sounds like 4.7 will be the last version with a ppl dependency.
(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 ?
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.
s/ppl/cloog-ppl
i think we're going to drop graphite support in <gcc-4.8 to keep things simple -- older ones require the forked cloog-ppl
we're dropping cloog-ppl from the tree