Hello, I’m a new-ish ASPECT user as of this year. In February I had success installing version 2.4 of ASPECT on my computer and on the NERSC Perlmutter system using Candi but since I am headed to the hackathon next week I wanted to have the latest version of deal.ii and aspect working on my laptop (Mac, intel processor, Ventura 13.5.1). I was running into trouble with Candi but I thought I’d try the deal.ii application from the .dmg file (ie Installing and running ASPECT on Mac OS X · geodynamics/aspect Wiki · GitHub) and I was able to open the application, however some things are unfamiliar to me. I have attached some of my environment variables, the output of my configuration attempt which failed.
Any help would be greatly appreciated, as well as any suggestions or tips about getting Candi to work ( Im getting ld: Undefined symbols errors in my deal.ii build after “[ 57%] Linking CXX shared library …/lib/libdeal_II.g.dylib”. Im following the instructions from the 2.6 aspect documentation and what Candi asks for in terms of brew installations and setting variables CC, CXX, FF to look at mpicc, mpicxx, mpifort etc)
Back to the deal.ii application terminal:
TERMINAL OUTPUT + ERROR MESSAGES INSIDE THE DEAL.II TERMINAL:
bash-3.2$ ls
AUTHORS.md CONTRIBUTING.md README.md contrib include
CITATION Jenkinsfile VERSION cookbooks source
CMakeLists.txt Jenkinsfile.osx benchmarks data tests
CODE_OF_CONDUCT.md LICENSE cmake doc unit_tests
bash-3.2$ mkdir build
bash-3.2$ cd build
bash-3.2$ cmake ..
-- ====================================================
-- ============ Configuring ASPECT ====================
-- ====================================================
-- Setting up ASPECT for DebugRelease mode.
-- Found deal.II version 9.5.0 at '/Applications/deal.II.app/Contents/Resources/Libraries/lib/cmake/deal.II'
-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /Applications/deal.II.app/Contents/Resources/spack/opt/mpich-4.1.1-hbtt/bin/mpic++
-- Check for working CXX compiler: /Applications/deal.II.app/Contents/Resources/spack/opt/mpich-4.1.1-hbtt/bin/mpic++ - broken
CMake Error at /Applications/deal.II.app/Contents/Resources/spack/opt/cmake-3.26.3-aw3s/share/cmake-3.26/Modules/CMakeTestCXXCompiler.cmake:60 (message):
The C++ compiler
"/Applications/deal.II.app/Contents/Resources/spack/opt/mpich-4.1.1-hbtt/bin/mpic++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/mkerr/ASPECT_hackathon/code/aspect/build/CMakeFiles/CMakeScratch/TryCompile-v9SVEM
Run Build Command(s):/Applications/deal.II.app/Contents/Resources/spack/opt/cmake-3.26.3-aw3s/bin/cmake -E env VERBOSE=1 /opt/local/bin/gmake -f Makefile cmTC_9179a/fast && /opt/local/bin/gmake -f CMakeFiles/cmTC_9179a.dir/build.make CMakeFiles/cmTC_9179a.dir/build
gmake[1]: Entering directory '/Users/mkerr/ASPECT_hackathon/code/aspect/build/CMakeFiles/CMakeScratch/TryCompile-v9SVEM'
Building CXX object CMakeFiles/cmTC_9179a.dir/testCXXCompiler.cxx.o
/Applications/deal.II.app/Contents/Resources/spack/opt/mpich-4.1.1-hbtt/bin/mpic++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -mmacosx-version-min=13.5 -MD -MT CMakeFiles/cmTC_9179a.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_9179a.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_9179a.dir/testCXXCompiler.cxx.o -c /Users/mkerr/ASPECT_hackathon/code/aspect/build/CMakeFiles/CMakeScratch/TryCompile-v9SVEM/testCXXCompiler.cxx
Linking CXX executable cmTC_9179a
/Applications/deal.II.app/Contents/Resources/spack/opt/cmake-3.26.3-aw3s/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9179a.dir/link.txt --verbose=1
/Applications/deal.II.app/Contents/Resources/spack/opt/mpich-4.1.1-hbtt/bin/mpic++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -mmacosx-version-min=13.5 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_9179a.dir/testCXXCompiler.cxx.o -o cmTC_9179a
ld: unknown options: -commons
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_9179a.dir/build.make:100: cmTC_9179a] Error 1
gmake[1]: Leaving directory '/Users/mkerr/ASPECT_hackathon/code/aspect/build/CMakeFiles/CMakeScratch/TryCompile-v9SVEM'
gmake: *** [Makefile:127: cmTC_9179a/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:147 (PROJECT)
-- Configuring incomplete, errors occurred!
Environment in the dealii terminal opened from the app:
env
DEAL_II_BUNDLE=/Applications/deal.II.app
SPACK_ROOT=/Applications/deal.II.app/Contents/Resources/spack
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
SHELL=/bin/zsh
TMPDIR=/var/folders/py/h1ls7vw539b6m54802bh8ly80000gq/T/
TERM_PROGRAM_VERSION=447
OLDPWD=/Users/mkerr/ASPECT_hackathon
DEAL_II_RESOURCES=/Applications/deal.II.app/Contents/Resources
TERM_SESSION_ID=976C67C5-8A60-46EC-A5CA-4A984B2DE5DF
USER=mkerr
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.kxCRYW2q3x/Listeners
BASH_SILENCE_DEPRECATION_WARNING=1
PATH=/Applications/deal.II.app/Contents/Resources/Libraries/bin:/usr/local/Cellar:/usr/local/bin:/opt/igpp/sbin:/opt/igpp/bin:/opt/local/sbin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/sw/bin:/sw/sbin:/Applications/MATLAB_R2020a.app/bin:/usr/X11/bin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin:/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
__CFBundleIdentifier=com.apple.Terminal
PWD=/Users/mkerr/ASPECT_hackathon/code
LANG=en_US.UTF-8
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
HOME=/Users/mkerr
SHLVL=3
LOGNAME=mkerr
CMAKE_PREFIX_PATH=/Applications/deal.II.app/Contents/Resources/Libraries/
DISPLAY=/private/tmp/com.apple.launchd.kSQM1PgHPT/org.xquartz:0
_=/usr/bin/env
VERSIONS OF CMAKE AND COMPILERS
bash-3.2$ which cmake
/Applications/deal.II.app/Contents/Resources/Libraries/bin/cmake
bash-3.2$ which mpicc
/Applications/deal.II.app/Contents/Resources/Libraries/bin/mpicc
bash-3.2$ which mpifort
/Applications/deal.II.app/Contents/Resources/Libraries/bin/mpifort
bash-3.2$ which mpicxx
/Applications/deal.II.app/Contents/Resources/Libraries/bin/mpicxx
bash-3.2$ which mpic++
/Applications/deal.II.app/Contents/Resources/Libraries/bin/mpic++
bash-3.2$ cmake --version
cmake version 3.26.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
bash-3.2$ mpicc --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
bash-3.2$ mpic++ --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin