emerging the latest sci-physics/root-5.22.00-r1 fails with: include/Hepevt.h:35: error: redefinition of 'HEPEVT_DEF hepevt_' include/Hepevt.h:33: error: 'HEPEVT_DEF hepevt_' previously declared here Note that this is the same symptom as bug #250432, but it's NOT a duplicate. I have the proposed fix, dev-lang/cfortran-4.4-r2, installed. The compiler used is sys-devel/gcc-4.3.2-r3. root USE flags are: [ebuild U ] sci-physics/root-5.22.00-r1 [5.22.00] USE="cern clarens doc emacs examples fftw geant4 ldap math openmp pythia8 python qt4 reflex ruby ssl xinetd xml xrootd -afs -cint7 -debug -kerberos -mysql -odbc -oracle -postgres -pythia6" 0 kB Reproducible: Always Steps to Reproduce: 1. emerge --sync 2. emerge =sci-physics/root-5.22.00-r1 Actual Results: Build fails with _HAVE_CONFIG -march=k8 -pipe -O2 -fweb -frename-registers -pthread -D__cplusplus -- montecarlo/eg/src/TVirtualMCDecayer.cxx x86_64-pc-linux-gnu-g++ -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -march=k8 -pipe -O2 -fweb -frename-registers -pthread -o montecarlo/eg/src/TVirtualMCDecayer.o -c montecarlo/eg/src/TVirtualMCDecayer.cxx In file included from montecarlo/eg/src/TGenerator.cxx:140: include/Hepevt.h:35: error: redefinition of 'HEPEVT_DEF hepevt_' include/Hepevt.h:33: error: 'HEPEVT_DEF hepevt_' previously declared here Expected Results: Build works # emerge --info Portage 2.2_rc31 (default/linux/amd64/2008.0/desktop, gcc-4.2.3, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r3 x86_64) ================================================================= System uname: Linux-2.6.28-gentoo-r3-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-1.12.11.1 Timestamp of tree: Wed, 22 Apr 2009 10:45:02 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.5.4-r2, 2.6.2 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -pipe -O2 -fweb -frename-registers" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d" CXXFLAGS="-march=k8 -pipe -O2 -fweb -frename-registers" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/" LANG="pt_BR.utf8" LC_ALL="pt_BR" LDFLAGS="-Wl,-O1" LINGUAS="pt_BR" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/portage/local/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.las.ic.unicamp.br/gentoo-portage" USE="3dnow 3dnowext X Xaw3d aac aalib accessibility acl acpi alsa amd64 arts artswrappersuid audiofile bash-completion berkdb blas bluetooth bonobo branding bzip2 cairo cdparanoia cdr cli cracklib crypt cscope css cups curl dbus directfb doc dri dvd dvdr dvdread eds emacs emboss encode esd evo examples exif expat fam fbcon ffmpeg firefox flac font-server fortran gd gdbm gif gimpprint glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtkhtml guile hal iconv idn imagemagick ipv6 isdnlog java jbig jikes jpeg jpeg2k junit kde kdeenablefinal kdeprefix latex lcms ldap leim lesstif libcaca libnotify lm_sensors lzo mad matroska midi mikmod mmx mng motif mozcalendar mozilla mp3 mpeg mplayer msn mudflap multilib musepack musicbrainz mysql nas ncurses network nls nptl nptlonly nvidia ogg oggvorbis opengl openmp pam pcre pdf perl plotutils png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl seamonkey session sms sndfile speex spell spl sse sse2 ssl startup-notification svg sysfs tcl tcltk tcpd tetex theora threads tiff truetype unicode usb vcd vorbis x264 xchatdccserver xcomposite xemacs xine xml xml2 xorg xulrunner xv xvid zeroconf zlib" ALSA_CARDS="via82xx" 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 softvol" 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 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" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt_BR" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 189152 [details] Build log
I can't reproduce it here with very similar setup. But I see your emerge --info shows you have gcc-4.2.3 selected instead of the gcc-4.3.2-r3 you mention. Could you try with gcc >= 4.3 (don't forget to gcc-config).
Yes, the 4.3.2 was a mistake; I have it in my system, but it wasn't enabled. It makes no difference, though: the build fails at the same point with either compiler. The included Hepevt.h file is exactly the same as the one installed on my system. Since sci-physics/root-5.22.00 isn't on portage anymore, I tried extracting and compiling the plain tarball; it compiles fine. The include/Hepevt.h on the work directort where the problem lies is identical to the one on my system from sci-physics/root-5.22.00.
Created attachment 189902 [details] Environment
A full emerge -e @system @world fixed it. Strangely, a simple emerge -e sci-physics/root sys-lang/gcc didn't do the trick, though, which seems very weird. Anyway, the bug was invalid all along.