With pithya8 use flag on, sci-physics/root-5.34.10-r2 fails to compile. Failure happens in the configuration phase. Apparently, the Pythia.h header is not looked for in the /usr/include/Pythia8 directory where it resides. Reproducible: Always Steps to Reproduce: 1. USE=pythia8 emerge =sci-physics/root-5.34.10-r2 Actual Results: Checking for libpythia6 ... /usr/lib64 Checking for pythia6_common_block_address__ in /usr/lib64/libpythia6.so ... no Checking for pythia6_common_block_address_ in /usr/lib64/libpythia6.so ... no Checking for pythia6_common_address in /usr/lib64/libpythia6.so ... ok Checking for Pythia.h ... no Checking for libpythia8 ... /usr/lib64 Explicitly required Pythia8 dependencies not fulfilled * ERROR: sci-physics/root-5.34.10-r2::gentoo failed (configure phase): * configure failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 3541: Called die * The specific snippet of code: * ./configure ${mycommonconf} --with-afs-shared=yes --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps --disable-builtin-afterimage --disable-builtin-ftgl --disable-builtin-freetype --disable-builtin-glew --disable-builtin-pcre --disable-builtin-zlib --disable-builtin-lzma --disable-cling --enable-astiff --enable-explicitlink --enable-gdml --enable-memstat --enable-shadowpw --enable-shared --enable-soversion --enable-table --fail-on-missing $(use_enable X x11) $(use_enable X asimage) $(use_enable X xft) $(use_enable afs) $(use_enable avahi bonjour) $(use_enable c++0x c++11) $(use_enable fits fitsio) $(use_enable fftw fftw3) $(use_enable graphviz gviz) $(use_enable kerberos krb5) $(use_enable ldap) $(use_enable math gsl-shared) $(use_enable math genvector) $(use_enable math mathmore) $(use_enable math minuit2) $(use_enable math roofit) $(use_enable math tmva) $(use_enable math unuran) $(use_enable mysql) $(use_enable odbc) $(use_enable opengl) $(use_enable oracle) $(use_enable postgres pgsql) $(usex postgres "--with-pgsql-incdir=$(pg_config --includedir)" "") $(use_enable prefix rpath) $(use_enable pythia6) $(use_enable pythia8) $(use_enable python) $(use_enable qt4 qt) $(use_enable qt4 qtgsi) $(use_enable reflex cintex) $(use_enable reflex) $(use_enable ruby) $(use_enable sqlite) $(use_enable ssl) $(use_enable xml) $(use_enable xrootd) ${EXTRA_ECONF} || die "configure failed" Expected Results: Normal configuration and compilation. Relevant packages: sci-physics/root-5.34.10-r2 sci-physics/pythia-8.1.80
# emerge -pqv '=sci-physics/root-5.34.10-r2::gentoo' [ebuild U ] sci-physics/root-5.34.10-r2 [5.34.09] USE="X afs doc fftw graphviz htmldoc kerberos ldap math metric mysql odbc opengl openmp pythia6 pythia8 python qt4 reflex sqlite%* ssl xinetd xml -avahi -c++0x -emacs -examples -fits -minimal% -mpi -oracle -postgres (-prefix) -ruby -xrootd" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" [ebuild U ] app-doc/root-docs-5.34.10 [5.34.05] USE="{-test}" # emerge --info '=sci-physics/root-5.34.10-r2::gentoo' Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.11.0-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.11.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 16319216 total, 13464468 free KiB Swap: 20971512 total, 20971512 free Timestamp of tree: Sat, 02 Nov 2013 21:45:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.5-r4, 3.2.5, 3.3.2-r2 dev-util/cmake: 2.8.12 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.11.6, 1.12.6, 1.13.4, 1.14 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.6.3, 4.7.3, 4.8.1-r1 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.11 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo x-portage ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA @FREE PUEL" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask=n" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-logs 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="-march=native -O2 -pipe" GENTOO_MIRRORS="ftp://mirror.mcs.anl.gov/pub/gentoo ftp://gentoo.cites.uiuc.edu/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="POSIX" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow X X509 Xaw3d a52 aac aalib acl acpi afs aim alsa amd64 ao apm audiofile bash-completion berkdb blas bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx dbus declarative device-mapper dga djvu dri dts dv dvb dvd dvdr emboss encode enscript exif fam fbcon ffmpeg fftw firefox flac fltk fontconfig fortran ftp g3dvl gcj gd gdbm geoip ggi gif gimp glut gmp gnuplot gnutls gpm graphviz gsl gsm gstreamer gtk gts gzip h323 hddtemp iconv icq icu idn ieee1394 imagemagick imap imlib introspection iodbc ipv6 jabber java javascript jingle jit jpeg jpeg2k kde kerberos kipi kontact lame lapack latex lcms ldap libass libcaca libffi libnotify libsamplerate libwww lm_sensors lua luatex lzma lzo mad maildir matroska mbox midi mikmod mime mmap mms mmx mng mod modplug modules mono motif mozilla mp3 mp4 mpeg mpi mplayer msn mtp mudflap multilib musepack mysql ncurses nls nntp nptl nsplugin odbc offensive ogg openal openexr opengl openmp orc oscar pam pango pch pcre pdf phonon plasma plotutils png policykit portaudio posix postscript ppds python qt3support qt4 quicktime raw readline recode rss sasl sdl semantic-desktop session sharedmem sip sipim skey slang smp sndfile sockets sound speex spell sqlite sse sse2 ssl ssse3 startup-notification subversion svg syslog sysvipc taglib tcl tcmalloc tcpd theora threads tiff timidity tk truetype udev udisks unicode upnp upower usb v4l vdpau video vim-syntax vnc vorbis wav webkit win32codecs wmf wxwidgets x264 xa xattr xcb xcomposite xetex xface xft xine xinerama xinetd xml xmpp xorg xosd xpm xscreensaver xv xvid xvmc yahoo zlib" ABI_X86="64" ALSA_CARDS="hda-intel dummy loopback" 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" DRACUT_MODULES="caps lvm ssh-client 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en it zh zh_TW" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="v4l vesa vga radeon fglrx" 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
Created attachment 362530 [details] build.log
Created attachment 362532 [details] config.log Configuration log shows the list of places where the Pythia.h header is looked for (/usr/include/Pythia8 is not among them). It also shows the Pythia8 library is correctly found.
Confirmed. ATM use pythia < 8.1.80. Pytiha 8.1.80 changed headers location and this can't be just fixed with root configure parameter. Pythia-8.1.80 should add compatibility layer instead. WIP.
Let me add that ROOT >=5.34.11 (upstream) has added pythia >=8.1.80 as an explicit dependency (also documented, configure just produces not-too-helpful messages for older pythia) and will also ONLY look in the new location. ROOT-build will however fail against 8.1.80 if Pythia is installed in /usr/include/Pythia (i.e. /usr/include/Pythia8/Pythia.h present, see https://sft.its.cern.ch/jira/browse/ROOT-5667 ) with an OOM, I am trying to get this resolved upstream.
Thanks, I'm aware of this change and I do not add 5.34.11 version to overlay because of this issue. 5.34.10-r2 is fixed now in science overlay with proper pythia8 dependency. BTW, 5.34.12 is out, I'll try it too.
I have attached a simple patch fixing compilation of ROOT 5.34.11/12 + 9999 against Pythia 8.1.80 installed in /usr/include (as Gentoo does and I'd expect on any reasonable system) to the upstream bug report at https://sft.its.cern.ch/jira/browse/ROOT-5667 . It also applies against ROOT 5.34.10, so pulling in http://root.cern.ch/gitweb?p=root.git;a=commit;h=7fd6b698e5f1a1eccd48e2210e77219314da6c48 and my patch in case of Pythia == 8.1.80 should also fix compilation for this bug (in case one really wants to combine ROOT 5.34.10 with Pythia 8.1.80 ).
I added 5.34.13 to the science overlay with your patch for Pythia8. Seems to work fine, thanks.
Thanks! Just a few hours ago, a (slightly different) patch was added upstream to fix a duplicate of my bugreport: http://root.cern.ch/gitweb?p=root.git;a=commit;h=8edc6e9755715fc73729e24ecd852859acdea16d They do some filtering on the included files directly instead of telling rootcint to use the preprocessor of GCC (which my patch enforces).
This fix should be in 5.34.14 then :)
Fix committed to the tree, closing.