HEP-FCC / FCCAnalyses

Common analysis framework for the Future Circular Collider
https://hep-fcc.github.io/FCCAnalyses/
24 stars 117 forks source link

Fail to Compile the Master Branch of FCCAnalyses on LXPLUS8 #264

Closed amanmdesai closed 1 year ago

amanmdesai commented 1 year ago

Hello,

This is to report the failure in compiling the 'master' branch of FCCAnalyses.

Computer: CERN LXPLUS

Steps to Reproduce the Error:

git clone https://github.com/HEP-FCC/FCCAnalyses.git
cd FCCAnalyses
source setup.sh
mkdir build install
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install
make install
cd ..

Error

It stops somewhere here:

Consolidate compiler generated dependencies of target FastJet
[  8%] Built target FastJet
Consolidate compiler generated dependencies of target ONNXRuntime
[ 15%] Built target ONNXRuntime
[ 17%] Generating G__FCCAnalyses.cxx, libFCCAnalyses_rdict.pcm, libFCCAnalyses.rootmap
In file included from input_line_3:2:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/string:40:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/char_traits.h:40:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/postypes.h:40:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cwchar:44:
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:104:1: error: unknown type name '__BEGIN_NAMESPACE_C99'
__BEGIN_NAMESPACE_C99

Could you please help me with this?

Thanks Aman

kjvbrt commented 1 year ago

Hello @amanmdesai,

I'm able to compile the FCCAnalyses the way you describe.

Are you sure you are running in the clean environment? Have you used fccanalyses pin command? What shell do you use?

amanmdesai commented 1 year ago

Hi @kjvbrt

I tried now with LXPLUS7 and it works well with no error. However when I tried to compile the FCCAnalyses with LXPLUS8 I face the above error (I retried now, the same error exists).

Is FCCAnalyses compatible to work with LXPLUS8?

Thanks Aman

kjvbrt commented 1 year ago

Hello @amanmdesai,

the FCCAnalyses is tied to Key4hep stack, which does not support LXPLUS8 at the moment. If you are curious enough you can try to compile the stack on your local machine: https://key4hep.github.io/key4hep-doc/spack-build-instructions-for-librarians/spack-setup.html#configuring-spack

Best, Juraj

amanmdesai commented 1 year ago

Hi @kjvbrt

the FCCAnalyses is tied to Key4hep stack, which does not support LXPLUS8 at the moment.

I see. Thanks for your help.

If you are curious enough you can try to compile the stack on your local machine: https://key4hep.github.io/key4hep-doc/spack-build-instructions-for-librarians/spack-setup.html#configuring-spack

Thanks for the link. Sure, I will check the link and try to compile the stack on my machine.

Thanks Aman

vvolkl commented 1 year ago

Hi @amanmdesai , I would not recommend compiling the full stack on lxplus. You can use singularity on lxplus8 just to compile fccanalyses with the following recipe:

# in FCCanalysis repo
singularity exec -B$PWD:/repo -B /cvmfs docker://ghcr.io/aidasoft/centos7:latest bash
cd /repo; mkdir build; cd build
cmake .. # -D...
make -j 8 install
# exit container with Ctrl+D
source setup.sh

You can then run the installed FCCAnalysis without needing singularity.

Pulling the image the first time will take a while (up to half an hour) but then it should be reasonably fast.

amanmdesai commented 1 year ago

Thanks for the suggestions @vvolkl