Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 573004

Summary: sys-devel/gcc-5.3.0: Graphite loop optimizations cannot be used
Product: Gentoo Linux Reporter: dE <de.techno>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED NEEDINFO    
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: cloog build log with graphite.

Description dE 2016-01-26 16:10:47 UTC
I've build gcc with graphite, however with my CFLAGS it complains -- 

sorry, unimplemented: Graphite loop optimizations cannot be used

Almost all the time.

For e.g. I'm trying to build cloog. The package compiles fine by hand, but with portage, this problem comes up.

I tried compiling this --

https://gcc.gnu.org/ml/gcc/2012-07/txt00001.txt

And graphite is working here too (there are performance gains observed).

Reproducible: Always




emerge --info gcc
Portage 2.2.26 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/kde, gcc-5.3.0, glibc-2.21-r1, 4.3.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.3.0-gentoo-x86_64-Intel-R-_Core-TM-_i3-2120_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     8117412 total,   5410892 free
KiB Swap:   18874364 total,  18874364 free
Timestamp of repository gentoo: Fri, 01 Jan 2016 00:45:01 +0000
sh bash 4.3_p42
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
ccache version 3.1.9 [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

my-tree
    location: /home/de/dev-tree
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-loop-distribution -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-loop-distribution -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=n --complete-graph --binpkg-respect-use=y --binpkg-changed-deps n --changed-deps n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs binpkg-multi-instance candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
USE="X a52 a53 aac aalib acc acpi adns alsa amd64 amr atm audiofile branding bzip2 cdda cdr cli consolekit cracklib css custom-cflags custom-optimization dbus dbx declarative dga dirac dri dts dv dvd dvdr emboss encode enscript exif faad ffmpeg firefox flac fortran gdu gif glamor glut gmp gsm gstreamer gzip iconv imlib ipc jit jpeg jpeg2k kde ladspa lame lcms libedit libnotify libsamplerate libwww lzma lzo mad matroska matrox mikmod mime minimal mmap mmx mmxext mng modules mozilla mp3 mp4 mpeg mplayer mudflap multilib musepack networkmanager nntp nocd nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp optimization orc osc pam pango pdf phonon pie plasma png policykit posix ppds pppd qt3support qt4 quicktime raw readline schroedinger seccomp sharedmem shorten smp sndfile sockets socks5 speex spell sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3 startup-notification strong-optimization svg symlink sysfs systemd taglib theora threads tiff toolame truetype twolame udev udisks unicode unixd upower usb vaapi vcd vhosts vorbis wavpack win32codecs wmf wxwidgets x264 xcb xcomposite xine xinerama xml xorg xpm xv xvid xvmc zlib" ABI_X86="64" 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" APACHE2_MODULES="unixd authn_core authz_core cgi cgid alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="ssse3 sse3 sse4_1 sse4_2 mmx sse avx mmx sse2" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver pdfimport" NGINX_MODULES_HTTP="charset access" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 i915" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-devel/gcc-4.9.3::gentoo was built with the following:
USE="cxx graphite (multilib) nptl openmp (policykit) (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -fortran -gcj -go (-hardened) (-libssp) (-multislot) -nls -nopie -nossp -objc -objc++ -objc-gc -regression-test -sanitize -vanilla" ABI_X86="64"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
sys-devel/gcc-5.3.0::gentoo was built with the following:
USE="cxx graphite (multilib) nptl openmp (policykit) (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -fortran -gcj -go (-hardened) -jit (-libssp) (-multislot) -nls -nopie -nossp -objc -objc++ -objc-gc -regression-test -sanitize -vanilla" ABI_X86="64"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
Comment 1 dE 2016-01-26 16:11:13 UTC
Created attachment 423936 [details]
cloog build log with graphite.
Comment 2 SpanKY gentoo-dev 2016-01-26 21:00:55 UTC
sounds like you upgraded isl recently.  you need to rebuild gcc when you do.
Comment 3 dE 2016-01-29 11:59:29 UTC
It was build at least 10 times after the isl upgrade.sys-devel/gcc
     Available versions:                                                                                                              
     (2.95.3) ~*2.95.3-r10^s
     (3.3.6) (~)3.3.6-r1^s                                                                                                            
     (3.4.6) 3.4.6-r2^s
     (4.0.4) **4.0.4^s                                                                                                                
     (4.1.2) 4.1.2^s
     (4.2.4) (~)4.2.4-r1^s                                                                                                            
     (4.3.6) 4.3.6-r1^s
     (4.4.7) 4.4.7^s                                                                                                                  
     (4.5.4) 4.5.4^s
     (4.6.4) 4.6.4^s                                                                                                                  
     (4.7.4) 4.7.4^s
     (4.8)  4.8.5^s                                                                                                                   
     (4.9)  4.9.3^s
     (5)    **5.1.0^s **5.2.0^s (~)5.3.0^s                                                                                            
       {altivec awt boundschecking cilk +cxx d debug doc fixed-point +fortran gcj go graphite hardened jit libssp mudflap multilib multislot +nls nopie nossp +nptl objc objc++ objc-gc +openmp regression-test +sanitize vanilla}                                          
     Installed versions:  4.9.3(4.9)^s(11:37:39 AM 08/04/2015)(cxx graphite multilib nptl openmp -altivec -awt -cilk -debug -doc -fixed-point -fortran -gcj -go -hardened -libssp -multislot -nls -nopie -nossp -objc -objc++ -objc-gc -regression-test -sanitize -vanilla) 5.3.0(5)^s(10:51:12 PM 01/24/2016)(cxx graphite multilib nptl openmp -altivec -awt -cilk -debug -doc -fixed-point -fortran -gcj -go -hardened -jit -libssp -multislot -nls -nopie -nossp -objc -objc++ -objc-gc -regression-test -sanitize -vanilla)                        
     Homepage:            https://gcc.gnu.org/
     Description:         The GNU Compiler Collection




eix --installed isl
[I] dev-libs/isl                                                                                                                      
     Available versions:  (~)0.11.1 0.12.2(0/10) ~0.13(0/13) ~0.14(0/14) ~0.14.1(0/14) 0.15(0/15) {static-libs ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}                                                                                 
     Installed versions:  0.15(04:34:18 PM 01/09/2016)(-static-libs ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")                                                                                                                   
     Homepage:            http://isl.gforge.inria.fr/
     Description:         A library for manipulating integer points bounded by linear constraints
Comment 4 SpanKY gentoo-dev 2016-05-11 05:30:42 UTC
(In reply to dE from comment #3)

i don't know what that output is trying to say.  that graphite error shows up when gcc is unable to load libisl.so and probe its symbols which happens when there's a mismatch between the version of libisl you have installed compared to when you built gcc.

verify you have isl-0.15 installed, and then rebuild gcc-5.3.0, and then try to build that single file with graphite flags.  if you still get a warning, attach the build logs of isl & gcc here.