sci-physics/root-5.34.18-r1 fails to compile. See attached build log. Reproducible: Always
Created attachment 389072 [details] build.log
Relevant output is below: x86_64-pc-linux-gnu-g++ -O2 -march=native -pipe -pipe -m64 -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -O2 -march=native -pipe -pthread -o core/base/src/TObjString.o -c /var/tmp/portage/sci-physics/root-5.34.18-r1/work/root/core/base/src/TObjString.cxx /var/tmp/portage/sci-physics/root-5.34.18-r1/work/root/core/base/src/TTimeStamp.cxx: In static member function ‘static void TTimeStamp::DumpTMStruct(const tm_t&)’: /var/tmp/portage/sci-physics/root-5.34.18-r1/work/root/core/base/src/TTimeStamp.cxx:819:13: error: ‘const tm_t’ has no member named ‘__tm_gmtoff’ tmstruct.__tm_gmtoff, tmstruct.__tm_zone); ^ /var/tmp/portage/sci-physics/root-5.34.18-r1/work/root/core/base/src/TTimeStamp.cxx:819:35: error: ‘const tm_t’ has no member named ‘__tm_zone’ tmstruct.__tm_gmtoff, tmstruct.__tm_zone); ^ Makefile:686: recipe for target 'core/base/src/TTimeStamp.o' failed make: *** [core/base/src/TTimeStamp.o] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: sci-physics/root-5.34.18-r1::gentoo failed (compile phase):
The change below fixes the compilation error for me: --- TTimeStamp.cxx.orig 2014-11-11 11:54:19.236116039 -0200 +++ TTimeStamp.cxx 2014-11-11 11:55:11.942118897 -0200 @@ -813,11 +813,7 @@ tmstruct.tm_isdst); #if (defined(linux) && !defined(R__WINGCC)) || defined(R__MACOSX) printf(",\n tm_gmtoff %6ld, tm_zone \"%s\"", -#if defined(__USE_BSD) || defined(R__MACOSX) tmstruct.tm_gmtoff, tmstruct.tm_zone); -#else - tmstruct.__tm_gmtoff, tmstruct.__tm_zone); -#endif #endif printf(" }\n"); }
Please see https://sft.its.cern.ch/jira/browse/ROOT-6714 Upstream has fixed this issue in version 5.34.21, please consider a version bump.
Yes, I confirmed that version 5.34.21 is not affected. Somebody needs to apply my patch above to version 5.34.18 and/or do a revision bump. The current package in the tree is broken.
I'll bump package in a week or so. This is not as simple as it seems, because it is complicated and needs a lot of testing. Meanwhile you may try 6.x branch from science overlay (it will be bumped and added too in a while).
root-5.34.26 is in tree.