lhcb / starterkit-lessons

Lessons taught at the Starterkit workshops.
https://lhcb.github.io/starterkit-lessons/
Other
35 stars 91 forks source link

none of the available platforms is supported: ['x86_64_v2-centos7-gcc10-opt', 'x86_64_v2-centos7-gcc10-dbg'] #307

Open uzzielperez opened 1 month ago

uzzielperez commented 1 month ago

Dear Starterkit lessons Developers,

This might be another newbie question so feel free to redirect me if appropriate! I am following the Developing LHCb Software. I ran the LbEnv beforehand but I am now running into this issue.

ciperez:~$ lb-dev --name DaVinciDev DaVinci/v45r8
none of the available platforms is supported: ['x86_64_v2-centos7-gcc10-opt', 'x86_64_v2-centos7-gcc10-dbg']

Is this a problem with a known solution?

Cheers, Uzzie

jpwgnr commented 1 month ago

Hi Uzzie,

the two platforms that have two be used for this DaVinci version are build on Centos7 which arrived this year at EOL. You can still get it running with a container running Centos7, following the explanation here: https://twiki.cern.ch/twiki/bin/viewauth/LHCb/FAQ/GangaLHCbFAQ#How_do_I_run_old_Gaudi_appli_AN1

In short:

apptainer exec --bind $PWD --env LBENV_SOURCED= --bind /cvmfs:/cvmfs:ro /cvmfs/lhcb.cern.ch/containers/os-base/centos7-devel/prod/amd64/ bash --rcfile /cvmfs/lhcb.cern.ch/lib/LbEnv
lb-dev -c best DaVinci/v45r8

The -c best is equivalent here to using lb-set-platform x86_64_v2-centos7-gcc-opt.

But you are right, this section should be updated.

jpwgnr commented 1 month ago

See also issue #297, which gives a problem in one of the following steps afterwards. There it would be best to switch the command

git lb-checkout Analysis/run2-patches Phys/DecayTreeTuple

to the version

git lb-checkout Analysis/v21r8 Phys/DecayTreeTuple

which corresponds to the DaVinci version which is used here in the tutorial.

uzzielperez commented 1 month ago

Thanks @jpwgnr for sending relevant issues and for acknowledging that the section needs to be udpated. For my purposes lb-set-platform x86_64_v2-centos7-gcc-opt seemed to have done the trick. Looking forward to the updated version as well if and when that comes. Might be good to have them for the starterkit in November.