GambitBSM / gambit_2.0

GAMBIT: The Global and Modular Beyond-the-Standard-Model Inference Tool
https://gambit.hepforge.org
3 stars 1 forks source link

Problem in Finding Mathematica & GSL issues #2

Open ajueid opened 3 years ago

ajueid commented 3 years ago

Dear Gambit developers,

I tried to install Gambit version 2.0 on Mac M1 but got issues connected to GSL and Mathematica.

First, while I have installed GSL-2.7 correctly on the system and added the paths to ~/.zprofile. The installer cannot find it

WARNING: Found GSL, but could not verify that the version is appropriate. If you get link errors from GSL, you may need to upgrade to a newer version. -- Found GSL: ;/Users/adiljueid/miniforge3/lib/libgsl.dylib;/Users/adiljueid/miniforge3/lib/libgslcblas.dylib
Found library libuuid

Second, there are issues with Mathematica

CMake Error at cmake/FindMathematica.cmake:644 (message): Unsupported host platform Darwin Call Stack (most recent call first): cmake/FindMathematica.cmake:1285 (_get_host_system_IDs) cmake/FindMathematica.cmake:2847 (_setup_mathematica_systemIDs) CMakeLists.txt:428 (find_package)

I have Mathematica version 12.3

Would you please let me know how I can fix these issues (the log file is attached)?

Thanks, All the best, Adil CMakeOutput.log

patscott commented 3 years ago

Hi Adil,

The GSL message is not an error, it's just a warning that cmake wasn't able to verify your version (just because cmake is not very up to date when it comes to GSL). It found it though, and it should work fine. So no need to worry about this.

The Mathematica error is a problem. Cmake seems to be mis-identifying your system architecture and therefore OS. I suspect this is because the FindMathematica.cmake script we're using is older than the M1, and can't deal with OSX on arm processors. We'll need to look into updating this script to work with the new hardware. If you are in a hurry, you might be able to get it to work by updating to the absolute latest version of cmake, and deleting cmake/FindMathematica.cmake.

I notice that your cmake log indicates that the AppleClang compiler is detected and in use. Note that GAMBIT support for AppleClang is still experimental. (It supports LLVM clang pretty fully, but that is still kind of unofficial for now). We are working on this though. If you encounter issues building anything (especially backends) with clang, you should install g++ and use that.

ajueid commented 3 years ago

Hi Pat,

Thanks a lot for your answer. It does not work when I remove the FindMathematica.cmake. It cannot find Mathematica. Anyway, I can wait for a fix of this issue as the installation seems to be working very well in my Linux Machine.