GENIE-MC / Generator

The popular GENIE Generator product is used by nearly all accelerator neutrino experiments and it plays a key role in the exploitation of neutrino data. The Generator implements a modern software framework and it includes state-of-the-art physics modules. It captures the latest results of the GENIE global analysis of neutrino scattering data and includes several tunes that were produced using the proprietary Comparisons and Tuning products. The GENIE physics model is universal and comprehensive: It handles all neutrinos and targets, and all processes relevant from MeV to PeV energy scales. The Generator includes several tools (flux drivers, detector geometry navigators, specialized event generation apps, event reweighting engines) to simulate complex experimental setups in full detail and to support generator-related analysis tasks.
http://www.genie-mc.org
40 stars 91 forks source link

macOS arm not supported ? #377

Open aphecetche opened 5 months ago

aphecetche commented 5 months ago

I'm trying to compile GENIE (master) on an Apple Mac M1, and it seems that is not supported (e.g. the Make.include does not list macosxarm64), and I get :

simulationšŸš€~/km3net/simulation/genie [configure-change-root-mathmore-detection] $ make

***** Building GENIE from source tree at: /Users/laurent/km3net/simulation/genie
***** The source tree corresponds to GENIE version 999.999.999

** Creating GENIE lib and bin directories...
cd /Users/laurent/km3net/simulation/genie && \
        [ -d bin ] || mkdir bin && chmod 755 bin && \
        [ -d lib ] || mkdir lib && chmod 755 lib;

** Taking a snapshot of the build environment...
perl /Users/laurent/km3net/simulation/genie/src/scripts/setup/genie-build-env-snapshot

** Adding automatically generated code...
perl /Users/laurent/km3net/simulation/genie/src/scripts/setup/genie-write-gbuild
perl /Users/laurent/km3net/simulation/genie/src/scripts/setup/genie-write-gversion

** Building GENIE framework...
cd /Users/laurent/km3net/simulation/genie/src/Framework && \
        cd Algorithm       &&  make && cd .. && \
        cd EventGen        &&  make && cd .. && \
        cd GHEP            &&  make && cd .. && \
        cd Interaction     &&  make && cd .. && \
        cd Messenger       &&  make && cd .. && \
        cd Ntuple          &&  make && cd .. && \
        cd Numerical       &&  make && cd .. && \
        cd ParticleData    &&  make && cd .. && \
        cd Registry        &&  make && cd .. && \
        cd Utils           &&  make && \
        cd /Users/laurent/km3net/simulation/genie
make[1]: *** No rule to make target `AlgConfigPool.', needed by `_ROOT_DICT_FwAlg.cc'.  Stop.
make: *** [framework] Error 2

which I'd attribute to a missing ObjSuf ...

Is there a plan to support that platform ?

And/or migrate to a more "modern" build system like CMake (just peeked around the mailing list and found a mention of it way back https://www.jiscmail.ac.uk/cgi-bin/wa-jisc.exe?A2=ind1602&L=NEUTRINO-MC-SUPPORT&P=R1920 but looking at the repo now I don't see any CMakeLists.txt lying around ? )

JaydipSingh commented 3 months ago

I also found the same issue with the latest MacOS( M3 ), Did you find any solution to this issue?

fatal: not a git repository (or any of the parent directories): .git

Building GENIE framework... cd /Users/jdsingh/GENIE/src/Generator-R-3_02_00/src/Framework && \ cd Algorithm && make && cd .. && \ cd EventGen && make && cd .. && \ cd GHEP && make && cd .. && \ cd Interaction && make && cd .. && \ cd Messenger && make && cd .. && \ cd Ntuple && make && cd .. && \ cd Numerical && make && cd .. && \ cd ParticleData && make && cd .. && \ cd Registry && make && cd .. && \ cd Utils && make && \ cd /Users/jdsingh/GENIE/src/Generator-R-3_02_00 make[1]: ** No rule to make target AlgConfigPool.', needed by_ROOT_DICT_FwAlg.cc'. Stop. make: [framework] Error 2

aphecetche commented 3 months ago

@JaydipSingh no, I unfortunately did not find a solution for this.

JaydipSingh commented 2 months ago

@aphecetche , Did you install it any other way?