Fix clang compilation failure in XmlTools Evaluator
Merge request reports
Activity
mentioned in merge request !1408 (merged)
- [2018-07-24 00:07] Validation started with lhcb-lcg-dev3#596
- [2018-07-24 00:09] Validation started with lhcb-lcg-dev4#595
- [2018-07-24 00:10] Validation started with lhcb-head#1928
- [2018-07-24 00:11] Validation started with lhcb-gaudi-head#1940
- [2018-07-24 00:13] Validation started with lhcb-tdr-test#226
- [2018-07-25 00:07] Validation started with lhcb-lcg-dev3#597
- [2018-07-25 00:08] Validation started with lhcb-lcg-dev4#596
- [2018-07-25 00:11] Validation started with lhcb-tdr-test#227
- [2018-07-25 00:13] Validation started with lhcb-head#1929
- [2018-07-25 00:17] Validation started with lhcb-gaudi-head#1941
- [2018-07-25 11:20] Validation started with lhcb-gaudi-merge#544
- [2018-07-25 11:25] Validation started with lhcb-gaudi-merge#545
- [2018-07-25 18:43] Validation started with lhcb-gaudi-merge#547
- [2018-07-26 00:03] Validation started with lhcb-gauss-dev#1713
- [2018-07-26 00:07] Validation started with lhcb-lcg-dev4#597
- [2018-07-26 00:09] Validation started with lhcb-head#1930
- [2018-07-26 00:09] Validation started with lhcb-lcg-dev3#598
- [2018-07-26 00:11] Validation started with lhcb-tdr-test#228
- [2018-07-26 00:13] Validation started with lhcb-gaudi-head#1942
- [2018-07-26 15:01] Validation started with lhcb-gaudi-merge#548
- [2018-07-26 16:47] Validation started with lhcb-gaudi-merge#549
- [2018-07-27 00:05] Validation started with lhcb-gauss-dev#1714
- [2018-07-27 00:07] Validation started with lhcb-lcg-dev4#598
- [2018-07-27 00:11] Validation started with lhcb-head#1931
- [2018-07-27 00:11] Validation started with lhcb-lcg-dev3#599
- [2018-07-27 00:12] Validation started with lhcb-tdr-test#229
- [2018-07-27 00:13] Validation started with lhcb-gaudi-head#1943
- [2018-07-28 00:08] Validation started with lhcb-lcg-dev4#599
- [2018-07-28 00:09] Validation started with lhcb-lcg-dev3#600
- [2018-07-28 00:10] Validation started with lhcb-head#1932
- [2018-07-28 00:10] Validation started with lhcb-gaudi-head#1944
- [2018-07-28 00:12] Validation started with lhcb-tdr-test#230
- [2018-07-29 00:06] Validation started with lhcb-head#1933
- [2018-07-29 00:08] Validation started with lhcb-lcg-dev4#600
- [2018-07-29 00:09] Validation started with lhcb-tdr-test#231
- [2018-07-29 00:09] Validation started with lhcb-lcg-dev3#601
- [2018-07-29 00:10] Validation started with lhcb-gaudi-head#1945
- [2018-07-30 00:08] Validation started with lhcb-lcg-dev3#602
- [2018-07-30 00:09] Validation started with lhcb-lcg-dev4#601
- [2018-07-30 00:10] Validation started with lhcb-head#1934
- [2018-07-30 00:10] Validation started with lhcb-tdr-test#232
- [2018-07-30 00:16] Validation started with lhcb-gaudi-head#1946
- [2018-07-30 15:15] Validation started with lhcb-tdr-test#233
- [2018-07-31 00:06] Validation started with lhcb-lcg-dev4#602
- [2018-07-31 00:10] Validation started with lhcb-gaudi-head#1947
- [2018-07-31 00:12] Validation started with lhcb-tdr-test#234
- [2018-07-31 00:12] Validation started with lhcb-head#1935
- [2018-07-31 00:13] Validation started with lhcb-lcg-dev3#603
- [2018-07-31 09:06] Validation started with lhcb-head#1935
- [2018-07-31 12:07] Validation started with lhcb-gaudi-merge#550
- [2018-08-01 00:07] Validation started with lhcb-lcg-dev4#603
- [2018-08-01 00:08] Validation started with lhcb-head#1936
- [2018-08-01 00:09] Validation started with lhcb-lcg-dev3#604
- [2018-08-01 00:10] Validation started with lhcb-gaudi-head#1948
- [2018-08-01 00:12] Validation started with lhcb-tdr-test#235
- [2018-08-01 10:12] Validation started with lhcb-tdr-test#236
- [2018-08-02 00:07] Validation started with lhcb-lcg-dev4#604
- [2018-08-02 00:10] Validation started with lhcb-lcg-dev3#605
- [2018-08-02 00:10] Validation started with lhcb-tdr-test#237
- [2018-08-02 00:11] Validation started with lhcb-head#1937
- [2018-08-02 00:11] Validation started with lhcb-gaudi-head#1949
- [2018-08-02 11:18] Validation started with lhcb-tdr-test#238
- [2018-08-03 00:05] Validation started with lhcb-lcg-dev3#606
- [2018-08-03 00:08] Validation started with lhcb-lcg-dev4#605
- [2018-08-03 00:10] Validation started with lhcb-gaudi-head#1950
- [2018-08-03 00:11] Validation started with lhcb-tdr-test#239
- [2018-08-03 00:14] Validation started with lhcb-head#1938
- [2018-08-03 10:35] Validation started with lhcb-tdr-test#240
- [2018-08-03 13:48] Validation started with lhcb-tdr-test#241
- [2018-08-03 14:56] Validation started with lhcb-gaudi-merge#551
- [2018-08-04 00:06] Validation started with lhcb-lcg-dev4#606
- [2018-08-04 00:08] Validation started with lhcb-lcg-dev3#607
- [2018-08-04 00:10] Validation started with lhcb-head#1939
- [2018-08-04 00:12] Validation started with lhcb-tdr-test#242
- [2018-08-04 00:14] Validation started with lhcb-gaudi-head#1951
- [2018-08-05 00:05] Validation started with lhcb-head#1940
- [2018-08-05 00:07] Validation started with lhcb-gaudi-head#1952
- [2018-08-05 00:08] Validation started with lhcb-lcg-dev3#608
- [2018-08-05 00:11] Validation started with lhcb-tdr-test#243
- [2018-08-05 00:15] Validation started with lhcb-lcg-dev4#607
- [2018-08-06 00:07] Validation started with lhcb-lcg-dev3#609
- [2018-08-06 00:10] Validation started with lhcb-head#1941
- [2018-08-06 00:11] Validation started with lhcb-lcg-dev4#608
- [2018-08-06 00:12] Validation started with lhcb-gaudi-head#1953
- [2018-08-06 00:13] Validation started with lhcb-tdr-test#244
Edited by Software for LHCb@clemenci how can we check that this fixes the problem? The clang60 build in lhcb-lcg-dev3 slot never seems to run....
@clemenci: it would also be nice to have a recipe for compiling with clang which does not involve lxplus, but would work on any (centos7) machine with /cvmfs available. I've tried several times, but haven't managed to make it work (the recipe provided for lxplus unfortunately does not work on our local centos7 machines)
@cattanem I just found out that some of the jobs we are using to wait for LCG nightlies installation were crashing randomly. I added notification + retry, so it should be slightly more reliable... just meaning that I will not have to retry by hand as it happened today for the dev3/clang60 build.
@graven, it still does not work: https://lhcb-nightlies.cern.ch/logs/build/nightly/lhcb-lcg-dev3/598/x86_64-centos7-clang60-opt/LHCb/
And about the recipe... why do you say it's for lxplus? I do not see anything about lxplus in https://twiki.cern.ch/twiki/bin/view/LHCb/SupportedPlatforms#Development_platforms_binary_bui you only have to be aware that to get the required LbScripts version you need to
source /cvmfs/lhcb.cern.ch/lib/LbLoginDev.sh
... apart from a fix that was available only for the nightlies and I just pushed to CVMFS (you should get it in ~1h)@clemenci: I must be doing something stupid. The following just works:
-- zsh 5.0.2 on stbc-i5.nikhef.nl (x86_64 running Linux 3.10.0-693.2.2.el7.x86_64)-- stbc-i5 1> cd project/master stbc-i5 2> export CMTCONFIG=x86_64-centos7-gcc7-opt ; source /cvmfs/lhcb.cern.ch/lib/LbLoginDev.sh WARNING : using environment variable CMTCONFIG for cmtconfig ******************************************************************************** * ---- LHCb Login v9r2p6 ---- * * Building with gcc7 on centos7 x86_64 system (x86_64-centos7-gcc7-opt) * ******************************************************************************** --- User_release_area is set to /user/graven/cmtuser --- LHCBPROJECTPATH is set to: /cvmfs/lhcb.cern.ch/lib/lhcb /cvmfs/lhcb.cern.ch/lib/lcg/releases /cvmfs/lhcb.cern.ch/lib/lcg/app/releases /cvmfs/lhcb.cern.ch/lib/lcg/external -------------------------------------------------------------------------------- stbc-i5 3> cd Gaudi stbc-i5 4> make configure cmake --build /project/bfys/graven/master/Gaudi/build.x86_64-centos7-gcc7-opt --target rebuild_cache -- [1/1] Running CMake to regenerate build system... -- Using heptools 93 from /cvmfs/sft.cern.ch/lcg/releases/LCG_93/LCG_externals_x86_64-centos7-gcc7-opt.txt -- Using ccache for building -- Prefix COMPILE commands with ' /cvmfs/sft.cern.ch/lcg/releases/LCG_93/ccache/3.3.4/x86_64-centos7-gcc7-opt/bin/ccache' -- Using ccache for building -- Prefix COMPILE commands with ' /cvmfs/sft.cern.ch/lcg/releases/LCG_93/ccache/3.3.4/x86_64-centos7-gcc7-opt/bin/ccache' -- Looking for local directories... -- Found: ... remainder not shown ...
but this does not:
-- zsh 5.0.2 on stbc-i5.nikhef.nl (x86_64 running Linux 3.10.0-693.2.2.el7.x86_64)-- stbc-i5 1> cd project/master stbc-i5 2> export CMTCONFIG=x86_64-centos7-clang60-opt ; source /cvmfs/lhcb.cern.ch/lib/LbLoginDev.sh WARNING : using environment variable CMTCONFIG for cmtconfig ******************************************************************************** * ---- LHCb Login v9r2p6 ---- * * Building with clang60 on centos7 x86_64 system (x86_64-centos7-clang60-opt) * ******************************************************************************** --- User_release_area is set to /user/graven/cmtuser --- LHCBPROJECTPATH is set to: /cvmfs/lhcb.cern.ch/lib/lhcb /cvmfs/lhcb.cern.ch/lib/lcg/releases /cvmfs/lhcb.cern.ch/lib/lcg/app/releases /cvmfs/lhcb.cern.ch/lib/lcg/external -------------------------------------------------------------------------------- stbc-i5 3> cd Gaudi stbc-i5 4> make configure mkdir -p /project/bfys/graven/master/Gaudi/build.x86_64-centos7-clang60-opt cd /project/bfys/graven/master/Gaudi/build.x86_64-centos7-clang60-opt && cmake -DCMAKE_TOOLCHAIN_FILE=/project/bfys/graven/master/Gaudi/toolchain.cmake -GNinja /project/bfys/graven/master/Gaudi CMake Error at cmake/UseHEPTools.cmake:86 (message): Cannot find heptools 93. Call Stack (most recent call first): cmake/GaudiDefaultToolchain.cmake:10 (use_heptools) toolchain.cmake:15 (include) /cvmfs/lhcb.cern.ch/lib/contrib/CMake/3.11.0/Linux-x86_64/share/cmake-3.11/Modules/CMakeDetermineSystem.cmake:94 (include) CMakeLists.txt CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! make: *** [/project/bfys/graven/master/Gaudi/build.x86_64-centos7-clang60-opt/build.ninja] Error 1
Even adding explicitly eg.
export CMAKE_PREFIX_PATH=/cvmfs/sft-nightlies.cern.ch/lcg/nightlies/dev3:$CMAKE_PREFIX_PATH
does not help -- somehow it seems impossible to find a clang60 version of heptools 93...what am I doing wrong?
Looks like this is a known bug in clang
added 1 commit
- 6f96b8ba - workaround for clang problem with std::visit
Since lhcb-lcg-dev3 still hasn't run, can I suggest the opposite strategy, i.e. it seems this version works fine with gcc (as the gcc builds do run), so it is at least as good as the master, and this version has a good chance of working with clang, whereas master does not -- hence I'd propose to merge it 'as-is', without waiting for the dev3 build.
mentioned in commit cf432af7