Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in Finding Mathematica & GSL issues #2

Open
ajueid opened this issue Jul 30, 2021 · 2 comments
Open

Problem in Finding Mathematica & GSL issues #2

ajueid opened this issue Jul 30, 2021 · 2 comments

Comments

@ajueid
Copy link

ajueid commented Jul 30, 2021

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
Copy link
Member

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
Copy link
Author

ajueid commented Aug 11, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants