Hi Konstantin and Yvon,
I am also trying to install CS8.2 on an M1 Mac.
The issue I am facing is coming from the src/base/cs_math.cpp library. The compiler highlights an error as follows:
EXAMPLE/code_saturne/code_saturne-8.2.0/src/base/cs_math.cpp:238:22: error: expected ';' at end of declaration
238 | constexpr cs_real_t c_1ov6 = 1./6.;
| ^
| ;
EXAMPLE/code_saturne/code_saturne-8.2.0/src/base/cs_math.cpp:240:12: error: expected ';' after expression
240 | cs_real_t e, e1, e2, e3;
| ^
| ;
EXAMPLE/code_saturne/code_saturne-8.2.0/src/base/cs_math.cpp:240:14: error: use of undeclared identifier 'e'
240 | cs_real_t e, e1, e2, e3;
^
There are quite a few errors in this library, and I think that it might be a CPP compiler issue. In my setup file, some of my compilers have been installed with homebrew. Is this okay?
#--------------------------------------------------------
# Optional architecture Name (installation subdirectory)
#--------------------------------------------------------
use_arch no
arch Darwin_arm64
#
#--------------------------------------------------------
# C compiler and optional MPI wrapper
#--------------------------------------------------------
compC /usr/bin/cc
mpiCompC /opt/homebrew/bin/mpicc
#
#--------------------------------------------------------
# Fortran compiler
#--------------------------------------------------------
compF /opt/homebrew/bin/gfortran
#
#--------------------------------------------------------
# C++ compiler and MPI wrapper for optional packages
#
# Required only for static builds using the MED library
# or for build of optional modules such as MEDCoupling
# support.
#--------------------------------------------------------
compCxx /usr/bin/c++
mpiCompCxx /opt/homebrew/bin/mpicxx
#
#--------------------------------------------------------
# Python interpreter.
#--------------------------------------------------------
python /usr/local/bin/python3
When I check them with (e.g. mpicxx --version, mpicc --version), I receive a notification that it is part of the developer tools package.
Apple clang version 16.0.0 (clang-1600.0.26.4)
Target: arm64-apple-darwin24.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
When I type mpicxx --show for example:
>> clang++ -I/opt/homebrew/Cellar/open-mpi/5.0.1/include -L/opt/homebrew/Cellar/open-mpi/5.0.1/lib -lmpi
Finally, there are two issues that I am facing with the install_saturne.py script that I would like to report. Firstly, is the link to the MED library. The link to the Salome repo doesn't work, and I am using the alternative link (included in the install_saturne.py script). However, the download freezes, and I had to download this via the browser. The second issue is the ParMetis library, as this link is down, and I cannot install this library through the install_saturne.py script. This error also exists in the CS 8.3 installation as well.
Any assistance would be greatly appreciated.
Best regards,
Sean Hanrahan