Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 525272 - sci-physics/clhep-2.2.0.1 fails to install some header files
Summary: sci-physics/clhep-2.2.0.1 fails to install some header files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Physics related packages
URL:
Whiteboard:
Keywords:
: 525440 531042 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-13 13:27 UTC by Guilherme Amadio
Modified: 2015-08-05 14:03 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,75.75 KB, text/plain)
2014-10-13 14:03 UTC, Guilherme Amadio
Details
CLHEP-includes.patch (clhep.diff,403 bytes, patch)
2014-10-14 20:39 UTC, Guilherme Amadio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guilherme Amadio gentoo-dev 2014-10-13 13:27:34 UTC
sci-physics/geant-4.10.00_p01 fails to build because CLHEP/Utility/thread_local.h file is missing. Using USE=-threads did not work around the problem.

Reproducible: Always
Comment 1 Guilherme Amadio gentoo-dev 2014-10-13 13:32:54 UTC
I couldn't add the complete build log as attachment, so here is the relevant part...

[  1%] Building CXX object source/global/CMakeFiles/G4global.dir/HEPRandom/src/G4Poisson.cc.o
cd /var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant-4.10.00_p01_build/source/global && /usr/bin/x86_64-pc-linux-gnu-g++  -DG4GLOB_ALLOC_EXPORT -DG4VERBOSE -DG4_STORE_TRAJECTORY -DG4global_EXPORTS -DGEANT4_DEVELOPER_GENTOO  -DNDEBUG -O2 -march=native -pipe -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -std=c++98 -fPIC -I/var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant4.10.00.p01/source/global/management/include -I/var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant4.10.00.p01/source/global/HEPGeometry/include -I/var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant4.10.00.p01/source/global/HEPNumerics/include -I/var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant4.10.00.p01/source/global/HEPRandom/include    -o CMakeFiles/G4global.dir/HEPRandom/src/G4Poisson.cc.o -c /var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant4.10.00.p01/source/global/HEPRandom/src/G4Poisson.cc
In file included from /usr/include/CLHEP/Random/RandBreitWigner.h:29:0,
                 from /usr/include/CLHEP/Random/Randomize.h:45,
                 from /var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant4.10.00.p01/source/global/HEPRandom/include/Randomize.hh:32,
                 from /var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant4.10.00.p01/source/global/HEPRandom/include/G4Poisson.hh:49,
                 from /var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant4.10.00.p01/source/global/HEPRandom/src/G4Poisson.cc:31:
/usr/include/CLHEP/Random/RandFlat.h:35:40: fatal error: CLHEP/Utility/thread_local.h: No such file or directory
 #include "CLHEP/Utility/thread_local.h"
                                        ^
compilation terminated.
source/global/CMakeFiles/G4global.dir/build.make:353: recipe for target 'source/global/CMakeFiles/G4global.dir/HEPRandom/src/G4Poisson.cc.o' failed
make[2]: *** [source/global/CMakeFiles/G4global.dir/HEPRandom/src/G4Poisson.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Linking CXX shared library ../../../../outputs/library/Linux-g++/libG4gl2ps.so
cd /var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant-4.10.00_p01_build/source/visualization/externals/gl2ps && /usr/bin/cmake -E cmake_link_script CMakeFiles/G4gl2ps.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -O2 -march=native -pipe -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -std=c++98  -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,libG4gl2ps.so -o ../../../../outputs/library/Linux-g++/libG4gl2ps.so CMakeFiles/G4gl2ps.dir/src/G4OpenGL2PSAction.cc.o CMakeFiles/G4gl2ps.dir/src/gl2ps.cc.o -lz -lGLU -lGL -lSM -lICE -lX11 -lXext 
make[2]: Leaving directory '/var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant-4.10.00_p01_build'
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant-4.10.00_p01_build/CMakeFiles 
[  1%] Built target G4gl2ps
make[2]: Leaving directory '/var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant-4.10.00_p01_build'
CMakeFiles/Makefile2:908: recipe for target 'source/global/CMakeFiles/G4global.dir/all' failed
make[1]: *** [source/global/CMakeFiles/G4global.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant-4.10.00_p01_build'
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: sci-physics/geant-4.10.00_p01::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sci-physics/geant-4.10.00_p01::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-physics/geant-4.10.00_p01::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-physics/geant-4.10.00_p01/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-physics/geant-4.10.00_p01/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant-4.10.00_p01_build'
 * S: '/var/tmp/portage/sci-physics/geant-4.10.00_p01/work/geant4.10.00.p01'
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-13 13:49:03 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info' output in a comment.
Comment 3 Guilherme Amadio gentoo-dev 2014-10-13 13:56:34 UTC
There seems to be a problem with bugzilla when I try to create an attachment, that's why I didn't upload the complete build log. The emerge --info is below:

Portage 2.2.14_rc1 (python 3.4.2-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.16.3-gentoo x86_64)
=================================================================
System uname: Linux-3.16.3-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.2
KiB Mem:     4040216 total,    518960 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sun, 12 Oct 2014 19:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-lang/perl:            5.20.1
dev-lang/python:          2.7.8, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" ftp://gentoo.cites.uiuc.edu/pub/gentoo/ "
LANG="pt_BR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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=""
USE="X aac acl alsa amd64 bash-completion berkdb bzip2 cairo cli cracklib crypt cups curl cxx dbus directfb djvu dri exif fbcon fftw flac fontconfig fortran gdbm gif gpm graphviz gtk iconv icu ipv6 jpeg jpeg2k lame lapack lcms lua lzma lzo mmx mng modules mp3 mpg123 multilib ncurses nls nptl opengl openmp pam pango pcre pdf perl png postscript python readline session smp socks5 sqlite sse sse2 sse3 sse4_1 ssl ssse3 svg tcpd tiff tk truetype udev unicode usb v4l vpx wayland webp x264 xcb xft xml xpm zip zlib" ABI_X86="64" ALSA_CARDS="snd-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" APACHE2_MPMS="peruser" 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" 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pt pt_BR" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="radeon" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 4 Guilherme Amadio gentoo-dev 2014-10-13 14:03:37 UTC
Created attachment 386612 [details]
build.log

This is the complete build log. My bad, it was a file permission issue. My local user wasn't in portage group yet...
Comment 5 Guilherme Amadio gentoo-dev 2014-10-14 20:39:55 UTC
Created attachment 386690 [details, diff]
CLHEP-includes.patch

This patch for clhep-2.2.0.1 resolved the build problem.
What happened is that there were two headers not being installed, so I fixed the CMakeLists.txt file to install those headers. After that, geant built without problems.

—Guilherme
Comment 6 Guilherme Amadio gentoo-dev 2014-10-14 20:50:46 UTC
I am closing this bug, since the problem is not in geant, but in clhep-2.2.0.1.
I opened a separate bug (#525440) for the issue with clhep.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-15 08:43:45 UTC
*** Bug 525440 has been marked as a duplicate of this bug. ***
Comment 8 Oliver Freyermuth 2015-02-23 15:18:34 UTC
I have also reported this upstream, it's already fixed since 2.2.0.2, so a version bump could also fix this issue.
Comment 9 Guilherme Amadio gentoo-dev 2015-03-04 04:33:38 UTC
Bumped to sci-physics/clhep-2.2.0.5. New version is not affected.
Comment 10 Guilherme Amadio gentoo-dev 2015-08-05 14:03:14 UTC
*** Bug 531042 has been marked as a duplicate of this bug. ***