Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564306 - sci-physics/root-6.02.05-r2 fails with gcc-5
Summary: sci-physics/root-6.02.05-r2 fails with gcc-5
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew Savchenko
Depends on:
Blocks: gcc-5
  Show dependency tree
Reported: 2015-10-28 08:33 UTC by Justin Lecher (RETIRED)
Modified: 2018-02-26 16:46 UTC (History)
2 users (show)

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

root-6.02.05-r2:20151028-082617.log.xz (root-6.02.05-r2:20151028-082617.log.xz,71.82 KB, application/octet-stream)
2015-10-28 08:34 UTC, Justin Lecher (RETIRED)

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2015-10-28 08:33:50 UTC
mnt/system/portage/tmp/portage/sci-physics/root-6.02.05-r2/work/root-6.02.05/interpreter/llvm/src/include/llvm/ADT/IntrusiveRefCntPtr.h: In instantiation of ‘llvm::IntrusiveRefCntPtr<T>::IntrusiveRefCntPtr(llvm::IntrusiveRefCntPtr<X>&&) [with X = {anonymous}::ChainedIncludesSource; T = clang::ExternalSemaSource ’:
/mnt/system/portage/tmp/portage/sci-physics/root-6.02.05-r2/work/root-6.02.05/interpreter/llvm/src/tools/clang/lib/Frontend/ChainedIncludesSource.cpp:211:10    required from here
/mnt/system/portage/tmp/portage/sci-physics/root-6.02.05-r2/work/root-6.02.05/interpreter/llvm/src/include/llvm/ADT/IntrusiveRefCntPtr.h:137:8: error: ‘{anonymous}::ChainedIncludesSource* llvm::IntrusiveRefCntPtr<{anonymous}::ChainedIncludesSource>::Obj’ is private
     T* Obj;
/mnt/system/portage/tmp/portage/sci-physics/root-6.02.05-r2/work/root-6.02.05/interpreter/llvm/src/include/llvm/ADT/IntrusiveRefCntPtr.h:158:13: error: within this context
       S.Obj = 0;
/mnt/system/portage/tmp/portage/sci-physics/root-6.02.05-r2/work/root-6.02.05/interpreter/llvm/src/Makefile.rules:1519: recipe for target '/mnt/system/portage/tmp/portage/sci-physics/root-6.02.05-r2/work/root-6.02.05/interpreter/llvm/obj/tools/clang/lib/Frontend/Release/ChainedIncludesSource.o' failed
make[5]: *** [/mnt/system/portage/tmp/portage/sci-physics/root-6.02.05-r2/work/root-6.02.05/interpreter/llvm/obj/tools/clang/lib/Frontend/Release/ChainedIncl

$ emerge-info =sci-physics/root-6.02.05-r2
Portage 2.2.23 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-5.2.0-asneeded, glibc-2.22-r1, 4.2.3-lh x86_64)
                         System Settings
System uname: Linux-4.2.3-lh-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16399548 total,   2866348 free
KiB Swap:    8388600 total,   8031124 free
Timestamp of repository gentoo: Tue, 27 Oct 2015 00:45:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r2::gentoo, 3.4.3::gentoo, 3.5.0-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.3.2-r1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.3::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.1.2::gentoo, 4.9.3::gentoo, 5.2.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo

    location: /local/home/justin/tree
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000
    sync-rsync-extra-opts: --omit-dir-times

    location: /local/src/repos/betagarden
    sync-type: git
    masters: gentoo
    priority: 50

    location: /local/src/repos/dummy
    masters: gentoo
    priority: 50

    location: /local/home/justin/src/ics6/overlay
    masters: gentoo
    priority: 50

    location: /local/src/repos/last-hope
    sync-type: git
    sync-uri: git://
    masters: gentoo
    priority: 50

    location: /local/src/repos/science
    sync-type: git
    sync-uri: git://
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g -fdiagnostics-color=always -Wimplicit-function-declaration -Wformat -Wformat-security"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g -fdiagnostics-color=always -Wenum-compare -Wformat -Wformat-security"
EMERGE_DEFAULT_OPTS=" -vt --keep-going --autounmask-write --autounmask --quiet-build=n --autounmask-unrestricted-atoms=y"
FCFLAGS="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g -fdiagnostics-color=always"
FEATURES="assume-digests binpkg-logs buildsyspkg ccache cgroup collision-protect compressdebug distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -ftracer   -march=native -frecord-gcc-switches -g -fdiagnostics-color=always"
GENTOO_MIRRORS=" 	/mnt/tmpfs/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
MAKEOPTS="-j12 -l8"
PORTAGE_COMPRESS_FLAGS="-z -e -9 -v --threads=4"
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"
USE="X acl alsa amd64 avx bash-completion berkdb branding bzip2 cairo caps cli cracklib crypt cups cxx dbus dri fortran gdbm gif gmp gstreamer gtk gtk3 iconv icu ipv6 jpeg jpeg2k ldap logrotate mmx mmxext modules multilib ncurses network-cron nls nptl nsplugin numa opengl openmp pam pcre pgo png pulseaudio qt3support readline seccomp session smp sse sse2 sse2_4way sse2check sse3 sse4 sse41 sse4_1 sse4_2 sse4a sse5 ssl ssse3 startup-notification tcpd threads tiff truetype udev unicode vaapi vdpau xattr xinerama zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DRACUT_MODULES="plymouth" 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="efi-32 efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport scripting-javascript wiki-publisher nlpsolver" LINGUAS="en en_GB en_US" NGINX_MODULES_HTTP="access auth_pam auth_basic autoindex browser charset empty_gif fancyindex fastcgi geo gzip limit_conn limit_req map memcached metrics perl proxy referer rewrite scgi spdy split_clients ssi stub_status upstream_ip_hash userid uwsgi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4 python3_5 pypy" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm armeb" QEMU_USER_TARGETS="i386 x86_64 arm armeb" RUBY_TARGETS="ruby20" USERLAND="GNU" UWSGI_PLUGINS="cache logfile notfound ping syslog ugreen" VIDEO_CARDS="nvidia" XFCE_PLUGINS="clock trash power" 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"
USE_PYTHON="2.7 3.3"

                        Package Settings

sci-physics/root-6.02.05-r2::gentoo was built with the following:
USE="X ldap math memstat opengl openmp ssl tiff -afs -avahi -doc -emacs -examples -fftw -fits -gdml -geocad -graphviz -http -kerberos -mpi -mysql -odbc -oracle -postgres (-prefix) -pythia6 -pythia8 -python -qt4 -shadow -sqlite -table -xinetd -xml -xrootd" ABI_X86="64" PYTHON_TARGETS="python2_7"
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-10-28 08:34:27 UTC
Created attachment 415608 [details]

Comment 2 Benda Xu gentoo-dev 2016-01-12 09:10:58 UTC
According to the release notes, starting from root 6.04, gcc 5 support is added.

Shall we remove root-6.02 from tree?  Is there a particular reason to keep it?
Comment 3 Oliver Freyermuth 2016-01-13 19:17:15 UTC
> According to the release notes, starting from root 6.04, gcc 5 support is added.

That seems to be wrong information in the release notes:

Not even ROOT 6 master is compatible with the GCC 5 ABI. It will compile, but fail in various cases at runtime (since internally LLVM is used in the JIT, also ROOT is affected by ). 
So the release-note statement that gcc-5 is supported is only valid if the old ABI is enforced consistently.
Comment 4 Andrew Savchenko gentoo-dev 2016-01-13 20:05:11 UTC
I can add a run-item compiler check for root to disallow gcc-5 for root builds.
Users can set per-package gcc versions using various techniques, e.g. gcc-switcher ( allows to automate such switches.

But I'm not sure what will happen if root built with gcc-4 will be linked with libraries built with gcc-5. ABI inconsistency between gcc-4 and gcc-5 may lead to serious problems here.
Comment 5 Oliver Freyermuth 2016-01-13 22:11:53 UTC
> I can add a run-item compiler check for root to disallow gcc-5 for root builds.

I would personally favour that safe way for the time being, users will at least be informed that they might enter unsafe grounds and can still use gcc-switcher if they want to go down that road. 

I myself have a testing node with a fully gcc-5.3 compiled system + ROOT from current master and albeit the compilation was successful, I encounter (expected) runtime issues. 

ROOT upstream is very aware of this problem and a mostly complete fix based on LLVM upstream and a pending patchset will very likely arrive in master still in January:
which probably means that the compiler check can be removed again for the next ROOT version (or, depending on test results, be downgraded to a warning).
Comment 6 Andrew Savchenko gentoo-dev 2016-01-16 12:38:57 UTC
I added check && die to the root-6 ebuilds in the tree. When new versions will fully support gcc-5, this check will be removed for them.
Comment 7 Bakar Chargeishvili 2017-05-02 12:01:33 UTC
As I know ROOT Version 6.08 has GCC5 ABI support:
Can this or any newer version be added to the tree?
Release 6.08/06 works for example perfect for me with gcc5.
Comment 8 Guilherme Amadio gentoo-dev 2018-02-26 16:46:31 UTC
For the record, ROOT can be built with GCC 4.8.5, Clang 3.9, or ICC 16 (and later versions, i.e. any compiler with C++11).