[Mesa-users] Encountering Errors Building MESA 24.08.01 in Mac OSX (Intel) ver. 15.5 (Sequoia).

Samuel H Dupree Jr sdupree at speakeasy.net
Sun Jun 8 05:36:18 UTC 2025


mesa-users,

I running into errors attempting to build MESA ver. 24.08.01 on a Mac 
Pro (2019) running Mac OSX (Intel) ver. 15.5 (Sequoia). I've followed 
the instruction posted at 
https://docs.mesastar.org/en/latest/installation.html. I downloaded the 
code from https://github.com/MESAHub/mesa?tab=readme-ov-file. When I 
start up the installation in a terminal window, I running in the z-shell.

Module crmath is not getting built as reflecting in the output listed below.

(base) user at Mac-Pro ~ % cd $MESA_DIR
(base) user at Mac-Pro mesa-24.08.1 % ./install

/Volumes/Development/AstrophysicsLib/mesa-24.08.1/const
building const package.

MAKEDEPF90
COMPILE_CMD ../public/const_def.f90
COMPILE_CMD ../public/const_lib.f90
LIB_TOOL libconst.a
MAKEDEPF90
TEST_COMPILE ../src/test_const.f90
LOADER ../tester
export
done

mesa/const has been built, tested, and exported.

************************************************

/Volumes/Development/AstrophysicsLib/mesa-24.08.1/utils
building utils package.

MAKEDEPF90
COMPILE_CMD ../public/utils_def.f90
COMPILE_CMD ../private/utils_dict.f90
COMPILE_CMD ../private/utils_idict.f90
COMPILE_CMD ../private/utils_system.f90
COMPILE_CMD ../private/utils_openmp.f90
COMPILE_CMD ../private/utils_nan_qp.f90
COMPILE_CMD ../private/utils_nan_dp.f90
COMPILE_CMD ../private/utils_nan_sp.f90
COMPILE_CMD ../private/utils_nan.f90
COMPILE_CMD ../public/utils_lib.f90
CC ../private/utils_c_system.c
LIB_TOOL libutils.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: 
file: libutils.a(utils_nan.o) has no symbols
MAKEDEPF90
TEST_COMPILE ../src/test_utils.f90
LOADER ../tester
export
done

mesa/utils has been built, tested, and exported.

************************************************

/Volumes/Development/AstrophysicsLib/mesa-24.08.1/math
building math package.

MAKEDEPF90
COMPILE_CMD ../public/math_def.f90
COMPILE_CMD ../private/math_io.f90
COMPILE_CMD ../private/math_pown.f90
COMPILE_CMD ../public/math_lib_crmath.f90
../public/math_lib_crmath.f90:37:7:

    37 |   use crmath
       |       1
Fatal Error: Cannot open module file 'crmath.mod' for reading at (1): No 
such file or directory
compilation terminated.
make: *** [math_lib_crmath.o] Error 1

/Volumes/Development/AstrophysicsLib/mesa-24.08.1/math/make
FAILED


/Volumes/Development/AstrophysicsLib/mesa-24.08.1/math
./build_and_test FAILED


(base) user at Mac-Pro mesa-24.08.1 %



 From the uname -a command I get:

(base) user at Mac-Pro mesa-24.08.1 % uname -a
Darwin Mac-Pro.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 
19:53:26 PDT 2025; root:xnu-11417.121.6~2/RELEASE_X86_64 x86_64
(base) user at Mac-Pro mesa-24.08.1 %


gfortran -v gives:

(base) user at Mac-Pro mesa-24.08.1 % gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/14.1.0_2/bin/../libexec/gcc/x86_64-apple-darwin23/14/lto-wrapper
Target: x86_64-apple-darwin23
Configured with: ../configure --prefix=/usr/local/opt/gcc 
--libdir=/usr/local/opt/gcc/lib/gcc/current --disable-nls 
--enable-checking=release --with-gcc-major-version-only 
--enable-languages=c,c++,objc,obj-c++,fortran,m2 --program-suffix=-14 
--with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr 
--with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl 
--with-zstd=/usr/local/opt/zstd --with-pkgversion='Homebrew GCC 
14.1.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues 
--with-system-zlib --build=x86_64-apple-darwin23 
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.1.0 (Homebrew GCC 14.1.0_2)
(base) user at Mac-Pro mesa-24.08.1 %

*NOTE: it appears that the version of gfortran in mesasdk is not being 
picked up? Any thoughts? *


echo $MESASDK_ROOT gives:

(base) user at Mac-Pro mesa-24.08.1 % echo $MESASDK_ROOT
/Applications/mesasdk
(base) user at Mac-Pro mesa-24.08.1 %


echo $PATH contains:

(base) user at Mac-Pro mesa-24.08.1 % echo $PATH
/Users/user/.juliaup/bin:/usr/local/bin:/usr/bin:/Users/user/opt/anaconda3/bin:/Users/user/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/opt/gettext/bin:/Users/user/.local/bin:/Applications/Julia-1.11.app/Contents/Resources/julia/bin/julia:/Users/user/boost_1_67_0_anaconda3/include/boost:/Users/user/boost_1_67_0_anaconda3/lib:/Applications/mesasdk/bin:/Applications/Absoft22.0/bin:/Applications/Absoft22.0/bin:/Library/Frameworks/Python.framework/Versions/3.13/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin 
Workbooks.app/Contents/SharedSupport/path-bin:/Users/user/.cargo/bin:/Applications/Visual 
Studio 
Code.app/Contents/Resources/app/bin:/Applications/MATLAB_R2024b.app/bin:/Volumes/Development/AstrodynamicsLib/MacOSX.NAIF.mice.v67/mice/src/mice:/Volumes/Development/AstrodynamicsLib/MacOSX.NAIF.mice.v67/mice/lib:/Users/user/oorb:/Users/user/oorb/main:/Volumes/Development/AstrophysicsLib/mesa-24.08.1/scripts/shmesa:/Users/user/cestam/adipack/bin:/Users/user/cestam/adipack/bin
(base) user at Mac-Pro mesa-24.08.1 %


echo $MESA_DIR is set to:

(base) user at Mac-Pro mesa-24.08.1 % echo $MESA_DIR
/Volumes/Development/AstrophysicsLib/mesa-24.08.1
(base) user at Mac-Pro mesa-24.08.1 %


A copy of the build.log file has been attached to this note.


Any thoughts as to how to correct this problem?

Sam Dupree.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20250608/f8f482ce/attachment.htm>
-------------- next part --------------

*** Copy and paste the following information into your email to mesa-users ***

MESA Version
r24.08.1

uname -a
Darwin Mac-Pro.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:53:26 PDT 2025; root:xnu-11417.121.6~2/RELEASE_X86_64 x86_64

gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/14.1.0_2/bin/../libexec/gcc/x86_64-apple-darwin23/14/lto-wrapper
Target: x86_64-apple-darwin23
Configured with: ../configure --prefix=/usr/local/opt/gcc --libdir=/usr/local/opt/gcc/lib/gcc/current --disable-nls --enable-checking=release --with-gcc-major-version-only --enable-languages=c,c++,objc,obj-c++,fortran,m2 --program-suffix=-14 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-zstd=/usr/local/opt/zstd --with-pkgversion='Homebrew GCC 14.1.0_2' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --with-system-zlib --build=x86_64-apple-darwin23 --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.1.0 (Homebrew GCC 14.1.0_2) 

$MESASDK_ROOT
/Applications/mesasdk

MESASDK version
x86_64-macos-24.10.1

$PATH
/Users/user/.juliaup/bin:/usr/local/bin:/usr/bin:/Users/user/opt/anaconda3/bin:/Users/user/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/opt/gettext/bin:/Users/user/.local/bin:/Applications/Julia-1.11.app/Contents/Resources/julia/bin/julia:/Users/user/boost_1_67_0_anaconda3/include/boost:/Users/user/boost_1_67_0_anaconda3/lib:/Applications/mesasdk/bin:/Applications/Absoft22.0/bin:/Applications/Absoft22.0/bin:/Library/Frameworks/Python.framework/Versions/3.13/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/Users/user/.cargo/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Applications/MATLAB_R2024b.app/bin:/Volumes/Development/AstrodynamicsLib/MacOSX.NAIF.mice.v67/mice/src/mice:/Volumes/Development/AstrodynamicsLib/MacOSX.NAIF.mice.v67/mice/lib:/Users/user/oorb:/Users/user/oorb/main:/Volumes/Development/AstrophysicsLib/mesa-24.08.1/scripts/shmesa:/Users/user/cestam/adipack/bin:/Users/user/cestam/adipack/bin

$MESA_DIR
/Volumes/Development/AstrophysicsLib/mesa-24.08.1


/Volumes/Development/AstrophysicsLib/mesa-24.08.1/const
building const package.

MAKEDEPF90
COMPILE_CMD ../public/const_def.f90
COMPILE_CMD ../public/const_lib.f90
LIB_TOOL libconst.a
MAKEDEPF90
TEST_COMPILE ../src/test_const.f90
LOADER ../tester
export
done

mesa/const has been built, tested, and exported.

************************************************

/Volumes/Development/AstrophysicsLib/mesa-24.08.1/utils
building utils package.

MAKEDEPF90
COMPILE_CMD ../public/utils_def.f90
COMPILE_CMD ../private/utils_dict.f90
COMPILE_CMD ../private/utils_idict.f90
COMPILE_CMD ../private/utils_system.f90
COMPILE_CMD ../private/utils_openmp.f90
COMPILE_CMD ../private/utils_nan_qp.f90
COMPILE_CMD ../private/utils_nan_dp.f90
COMPILE_CMD ../private/utils_nan_sp.f90
COMPILE_CMD ../private/utils_nan.f90
COMPILE_CMD ../public/utils_lib.f90
CC ../private/utils_c_system.c
LIB_TOOL libutils.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libutils.a(utils_nan.o) has no symbols
MAKEDEPF90
TEST_COMPILE ../src/test_utils.f90
LOADER ../tester
export
done

mesa/utils has been built, tested, and exported.

************************************************

/Volumes/Development/AstrophysicsLib/mesa-24.08.1/math
building math package.

MAKEDEPF90
COMPILE_CMD ../public/math_def.f90
COMPILE_CMD ../private/math_io.f90
COMPILE_CMD ../private/math_pown.f90
COMPILE_CMD ../public/math_lib_crmath.f90
../public/math_lib_crmath.f90:37:7:

   37 |   use crmath
      |       1
Fatal Error: Cannot open module file 'crmath.mod' for reading at (1): No such file or directory
compilation terminated.
make: *** [math_lib_crmath.o] Error 1

/Volumes/Development/AstrophysicsLib/mesa-24.08.1/math/make
FAILED


/Volumes/Development/AstrophysicsLib/mesa-24.08.1/math
./build_and_test FAILED



More information about the Mesa-users mailing list