SL7 Testing - __builtin_bswap64 issue
Summary
Compilation shows that genreflex command failed because of compilation issues. eg see this:
(stdout from 18.1.0-x86_64 logs)
LArRecEvent compilation [FAILED][ERR= 2]
#CMT---> building shared library ../x86_64-slc6-gcc47-opt/libLArRecEvent.so
lcg-g++-4.7.2 -L/cvmfs/atlas.cern.ch/repo/tools/slc6/cmt/InstallArea/x86_64-slc6-gcc47-opt/lib -L/home/atlas200/condorg_Kccqu1pO/pilot3/Panda_Pilot_20314_1457876986/PandaJob_2787848227_1457876989/kvtest_20904/KV.thr.1/atlas.tmp8081/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasOffline/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasSimulation/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasAnalysis/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasTrigger/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasReconstruction/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasEvent/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasConditions/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasCore/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/DetCommon/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/GAUDI/v24r0p0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/LCGCMT/LCGCMT_65/InstallArea/x86_64-slc6-gcc47-opt/lib -shared -o ../x86_64-slc6-gcc47-opt/libLArRecEvent.so ../x86_64-slc6-gcc47-opt/LArCellCollection.o ../x86_64-slc6-gcc47-opt/LArCellContainer.o ../x86_64-slc6-gcc47-opt/LArCell.o ../x86_64-slc6-gcc47-opt/LArNoisyROSummary.o -fPIC -ldl -Wl,--as-needed -Wl,--no-undefined -pthread -Wl,-z,max-page-size=0x1000 -Wl,--hash-style=both -L/cvmfs/atlas.cern.ch/repo/tools/slc6/cmt/InstallArea/x86_64-slc6-gcc47-opt/lib -L/home/atlas200/condorg_Kccqu1pO/pilot3/Panda_Pilot_20314_1457876986/PandaJob_2787848227_1457876989/kvtest_20904/KV.thr.1/atlas.tmp8081/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasOffline/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasSimulation/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasAnalysis/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasTrigger/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasReconstruction/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasEvent/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasConditions/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasCore/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/DetCommon/18.1.0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/GAUDI/v24r0p0/InstallArea/x86_64-slc6-gcc47-opt/lib -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/LCGCMT/LCGCMT_65/InstallArea/x86_64-slc6-gcc47-opt/lib -lCaloEvent -lFourMom -lFourMomUtils -lNavFourMom -lEventKernel -lNavigation -lVxVertex -lTrkParameters -lTrkParametersBase -lTrkSurfaces -lTrkDetDescrUtils -lCaloDetDescrLib -lAthLinks -lAthContainers -lAthenaBaseComps -lLArReadoutGeometry -lLArHV -lStoreGateLib -lCaloIdentifier -lAtlasDetDescr -lCaloConditions -lIOVSvcLib -lSGTools -lAthenaKernel -lCxxUtils -lAthAllocators -lTrkDetElementBase -lIdDict -lIdentifier -lTrkEventPrimitives -lGeoModelKernel -lGaudiKernel -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/sw/lcg/external/Boost/1.50.0_python2.7/x86_64-slc6-gcc47-opt/lib -lboost_system-gcc47-mt-1_50 -lboost_filesystem-gcc47-mt-1_50 -lboost_thread-gcc47-mt-1_50 -lboost_filesystem-gcc47-mt-1_50 -lboost_system-gcc47-mt-1_50 -lboost_regex-gcc47-mt-1_50 -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/sw/lcg/app/releases/ROOT/5.34.07a/x86_64-slc6-gcc47-opt/root/lib -lReflex -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/sw/lcg/app/releases/ROOT/5.34.07a/x86_64-slc6-gcc47-opt/root/lib -lCore -lCint -lTree -lpthread -lMathCore -lHist -lRIO -luuid -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/sw/lcg/external/xrootd/3.2.7/x86_64-slc6-gcc47-opt/lib64 -L/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/sw/lcg/external/clhep/2.1.2.3-atl01/x86_64-slc6-gcc47-opt/lib -lCLHEP-Cast-2.1.2.3 -lCLHEP-Evaluator-2.1.2.3 -lCLHEP-Exceptions-2.1.2.3 -lCLHEP-GenericFunctions-2.1.2.3 -lCLHEP-Geometry-2.1.2.3 -lCLHEP-RandomObjects-2.1.2.3 -lCLHEP-RefCount-2.1.2.3 -lCLHEP-Matrix-2.1.2.3 -Wl,--no-as-needed -lCLHEP-Vector-2.1.2.3 -lCLHEP-Random-2.1.2.3 -Wl,--as-needed
In file included from /usr/include/endian.h:60,
from /usr/include/ctype.h:40,
from /cvmfs/atlas.cern.ch/repo/sw/atlas-gcc/472/x86_64/slc6/x86_64-slc6-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/cctype:44,
from /cvmfs/atlas.cern.ch/repo/sw/atlas-gcc/472/x86_64/slc6/x86_64-slc6-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/bits/localefwd.h:44,
from /cvmfs/atlas.cern.ch/repo/sw/atlas-gcc/472/x86_64/slc6/x86_64-slc6-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/ios:42,
from /cvmfs/atlas.cern.ch/repo/sw/atlas-gcc/472/x86_64/slc6/x86_64-slc6-gcc47-opt/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/ostream:40,
from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasEvent/18.1.0/InstallArea/include/EventKernel/EventKernel/I4Momentum.h:6,
from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasEvent/18.1.0/InstallArea/include/EventKernel/EventKernel/INavigable4Momentum.h:10,
from /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/18.1.0/AtlasEvent/18.1.0/InstallArea/include/CaloEvent/CaloEvent/CaloCell.h:34,
from /home/atlas200/condorg_Kccqu1pO/pilot3/Panda_Pilot_20314_1457876986/PandaJob_2787848227_1457876989/kvtest_20904/KV.thr.1/atlas.tmp8081/LArCalorimeter/LArRecEvent/LArRecEvent/LArCell.h:44,
from ../x86_64-slc6-gcc47-opt/dict/LArRecEvent/LArRecEventDict_gen.h:1:
/usr/include/bits/byteswap.h: In function 'unsigned int __bswap_32(unsigned int)':
/usr/include/bits/byteswap.h:47: error: '__builtin_bswap32' was not declared in this scope
/usr/include/bits/byteswap.h: In function '__uint64_t __bswap_64(__uint64_t)':
/usr/include/bits/byteswap.h:111: error: '__builtin_bswap64' was not declared in this scope
--->> genreflex: INFO: Parsing file ../x86_64-slc6-gcc47-opt/dict/LArRecEvent/LArRecEventDict_gen.h with GCC_XML
--->> genreflex: ERROR: processing file with gccxml. genreflex command failed.
--->> genreflex: WARNING: Class LArCell in selection file ../x86_64-slc6-gcc47-opt/dict/LArRecEvent_selection.xml not generated.
--->> genreflex: WARNING: Class LArNoisyROSummary in selection file ../x86_64-slc6-gcc47-opt/dict/LArRecEvent_selection.xml not generated.
--->> genreflex: WARNING: Class LArCollisionTime in selection file ../x86_64-slc6-gcc47-opt/dict/LArRecEvent_selection.xml not generated.
make[2]: *** [../x86_64-slc6-gcc47-opt/dict/LArRecEvent/LArRecEventDict.xml.stamp] Error 1
make[1]: *** [LArRecEventGen] Error 2
Releases Affected
18.1.0-x86_64, 18.0.0-x86_64, 17.8.0-x86_64, 17.8.0-x86_64-gcc47, 17.7.5-x86_64,
17.7.4-x86_64-gcc46 (note 17.7.4-x86_64 which is x86_64-slc5-gcc43-opt is OK)
17.7.3-x86_64-gcc46 (note 17.7.3-x86_64 which is x86_64-slc5-gcc43-opt is OK)
17.7.0-slc6-x86_64 (note 17.7.0-x86_64 which is x86_64-slc5-gcc43-opt is OK)
This seems to affect gcc46, gcc47 releases; gcc43 ones passed.
Possible Solution
Found this bug report :
https://bugzilla.redhat.com/show_bug.cgi?id=1019532
but it says it will not be fixed ? (Is that only for that Fedora version ?)