I am trying to install Garfield++ on my M1 MacBook Air running MacOS version Sonoma 14.4.1.
I followed the Cern guide and, after the download, when the terminal processes the command ’ make -j 4 ’ in the Garfield build directory I eventually get a very long warning which can be summarized with the lines:
For the compiler, the clang version is clang-1500.3.9.4.
I am not sure about ROOT but I can find it in the homebrew directory so I guess I used homebrew.
In the end I managed to solve the problem. It was related to the gfortran compiler: it was trying to use a compiler compatible with the architecture arm64 while all root libraries are built for x86-64 architecture. So I just had to use the correct fortran compiler.
I am not sure, since my computer happened to actually have three different gfortran compiler and only one of those was of the correct architecture. It is called x86_64-apple-darwin23-gfortran-13 don’t know if this can help