Clash between host detection and legacy GaudiBuildFlags module
As reported on lhcb-core-soft mailing list, this procedure:
. /cvmfs/lhcb.cern.ch/lib/LbEnv
lb-set-platform x86_64-slc6-gcc49-opt
lb-dev -c x86_64-slc6-gcc49-opt Gauss/v51r2
cd GaussDev_v51r2/
git lb-use Gauss
git lb-checkout Gauss/v51r2 Sim/Gauss
git lb-checkout Gauss/v51r2 Sim/GaussCalo
results in the error
CMake Error at /cvmfs/lhcb.cern.ch/lib/lhcb/LHCB/LHCB_v42r8/InstallArea/x86_64-slc6-gcc49-opt/cmake/GaudiBuildFlags.cmake:164 (message):
Cannot build for x86_64 on broadwell.
The problem is that now projects pick up the LbDevTools version of GaudiProjectConfig.cmake
(and of BinaryTagUtils.cmake
), but the version of GaudiBuildFlags.cmake
from the upstream project.
The latest version of the tools detect the host as (something like) broadwell-centos7-gcc48-opt
, but the old version of GaudiBuildFlags.cmake
cannot asses the compatibility of broadwell
with x86_64
.