Error compiling ASPECT on Mac Monterey M1 arm64e

Hello guys! I am Yijun and I have some problems compiling ASPECT main branch on my mac. (I’ve had a successful compile yesterday but don’t know what breaks them today). The error I get is:

[ 0%] Building CXX object CMakeFiles/aspect.dir/cmake_pch_arm64.hxx.pch

warning: unknown warning option ‘-Wno-placement-new’ [-Wunknown-warning-option]

warning: unknown warning option ‘-Wno-literal-suffix’; did you mean ‘-Wno-literal-range’? [-Wunknown-warning-option]

warning: unknown warning option ‘-Wno-class-memaccess’; did you mean ‘-Wno-class-varargs’? [-Wunknown-warning-option]

In file included from :1:

In file included from /Users/yijunw/Applications/aspect/build/CMakeFiles/aspect.dir/cmake_pch_arm64.hxx:5:

In file included from /Users/yijunw/Applications/aspect/include/aspect/global.h:27:

In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/mpi.h:19:

/Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/config.h:499:12: error: ‘mpi.h’ file not found with include; use “quotes” instead

include <mpi.h>

^

In file included from :1:

In file included from /Users/yijunw/Applications/aspect/build/CMakeFiles/aspect.dir/cmake_pch_arm64.hxx:5:

In file included from /Users/yijunw/Applications/aspect/include/aspect/global.h:27:

In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/mpi.h:19:

In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/config.h:503:

/Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/numbers.h:65:5: error: unknown type name 'constexpr’

constexpr static unsigned int max_width = 1;

^

/Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/numbers.h:80:5: error: unknown type name 'constexpr’

constexpr static unsigned int max_width =

^

/Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/numbers.h:104:5: error: unknown type name 'constexpr’

constexpr static unsigned int max_width =

^

In file included from :1:

In file included from /Users/yijunw/Applications/aspect/build/CMakeFiles/aspect.dir/cmake_pch_arm64.hxx:5:

In file included from /Users/yijunw/Applications/aspect/include/aspect/global.h:27:

In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/mpi.h:19:

In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/config.h:503:

In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/numbers.h:145:

In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado.hpp:51:

In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_ExpressionTraits.hpp:35:

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_Expression.hpp:94:14: error: unknown type name 'constexpr’

static constexpr unsigned value = 0;

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_Expression.hpp:99:14: error: unknown type name 'constexpr’

static constexpr unsigned value =

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_Expression.hpp:106:14: error: unknown type name 'constexpr’

static constexpr bool value = false;

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_Expression.hpp:111:14: error: unknown type name 'constexpr’

static constexpr bool value = true;

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_Expression.hpp:122:12: error: unknown type name 'constexpr’

static constexpr bool value = true;

^

In file included from :1:

In file included from /Users/yijunw/Applications/aspect/build/CMakeFiles/aspect.dir/cmake_pch_arm64.hxx:5:

In file included from /Users/yijunw/Applications/aspect/include/aspect/global.h:27:

In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/mpi.h:19:

In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/config.h:503:

In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/numbers.h:145:

In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado.hpp:52:

In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_GeneralFadTraits.hpp:181:

In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_ScalarTraitsImp.hpp:37:

In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Teuchos_ScalarTraits.hpp:59:

In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Kokkos_Complex.hpp:46:

In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Kokkos_Atomic.hpp:71:

In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Kokkos_HostSpace.hpp:52:

In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Kokkos_Core_fwd.hpp:52:

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:60:1: error: unknown type name 'constexpr’

constexpr

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:61:2: error: expected ‘;’ at end of declaration

T&& forward( typename std::remove_reference::type& arg ) noexcept

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:61:61: error: expected function body after function declarator

T&& forward( typename std::remove_reference::type& arg ) noexcept

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:100:16: error: no template named ‘integer_sequence’; did you mean ‘make_integer_sequence’?

{ using type = integer_sequence ; };

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: ‘make_integer_sequence’ declared here

using make_integer_sequence =

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:100:16: error: too few template arguments for alias template 'make_integer_sequence’

{ using type = integer_sequence ; };

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: template is declared here

using make_integer_sequence =

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:104:16: error: no template named ‘integer_sequence’; did you mean ‘make_integer_sequence’?

{ using type = integer_sequence<T,0> ; };

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: ‘make_integer_sequence’ declared here

using make_integer_sequence =

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:108:16: error: no template named ‘integer_sequence’; did you mean ‘make_integer_sequence’?

{ using type = integer_sequence<T,0,1> ; };

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: ‘make_integer_sequence’ declared here

using make_integer_sequence =

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:108:16: error: too many template arguments for alias template 'make_integer_sequence’

{ using type = integer_sequence<T,0,1> ; };

^ ~~

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: template is declared here

using make_integer_sequence =

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:112:16: error: no template named ‘integer_sequence’; did you mean ‘make_integer_sequence’?

{ using type = integer_sequence<T,0,1,2> ; };

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: ‘make_integer_sequence’ declared here

using make_integer_sequence =

^

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:112:16: error: too many template arguments for alias template 'make_integer_sequence’

{ using type = integer_sequence<T,0,1,2> ; };

*^ ~~~~*

/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: template is declared here

using make_integer_sequence =

^

fatal error: too many errors emitted, stopping now [-ferror-limit=]

3 warnings and 20 errors generated.

make[2]: *** [CMakeFiles/aspect.dir/cmake_pch_arm64.hxx.pch] Error 1

make[1]: *** [CMakeFiles/aspect.dir/all] Error 2

make: *** [all] Error 2

I have installed dealii following their instruction for mac M1 using candi and I have newest version of dealii (9.3.3) and Xcode (13.3).

I have seen this error before and it was ‘solved’ with many other compile error I met along the road by installing dealii with candi, giving the right path and many other things I did which I don’t remember now. I am not sure why this is happening again. Let me know if you have any thoughts!

Many thanks,
Yijun

Yijun,
I bet you had a module for one compiler loaded yesterday but not today. The error message suggests to me that you are using a different (non-MPI) compiler today when you used an MPI-enabled compiler yesterday.
Best
W.

Thanks for this information!
Should I specify to use mpi somewhere? Didn’t remember when and how I did this yesterday.

Best,
Yijun

Yijun,
I don’t know either – every system is different. Somehow you must have specified which compiler you wanted to use, and you need to figure out again how you did that.
Best
W.

Thanks again!

I know that I tried this both yesterday and today:
export CC=mpicc; export CXX=mpicxx; export FC=mpifort; export FF=mpifort

And I have this in the CmakeCache.txt file:
//CXX compiler
CMAKE_CXX_COMPILER:STRING=/opt/homebrew/bin/mpicxx

Is this what you meant? What are some possible examples you can give me? I need some help search my memory (and my command history).

Best,
Yijun

You can type history in your terminal to see past commands.

Using the export commands was probably a good start, but in the end you should make sure you have a written-down, reproducible workflow to compile things.

Best
W.

Can you show us the detailed.log found in /Users/yijunw/dealii-candi/deal.II-v9.3.3 and /Users/yijunw/Applications/aspect/build?

Finally, what does mpicxx -v return?

Thanks for following up! I have compiled ASPECT successfully again now, by reinstalling brew to /usr/local/bin and intalling gcc, cmake and openmpi (previously they were in /opt/homebrew/). Then I used compiler from this directory install dealii and aspect. I’m not sure if this is the correct thing to do always so I haven’t updated this post, but to answer your question:

mpicxx -v gives:
Apple clang version 13.1.6 (clang-1316.0.21.2)

Target: x86_64-apple-darwin21.2.0

Thread model: posix

InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

The dealii tool detail.log

deal.II configuration:

CMAKE_BUILD_TYPE: DebugRelease

BUILD_SHARED_LIBS: ON

CMAKE_INSTALL_PREFIX: /Users/yijunw/dealii-candi/deal.II-v9.3.3

CMAKE_SOURCE_DIR: /Users/yijunw/dealii-candi/tmp/unpack/deal.II-v9.3.3

(version 9.3.3, shortrev 1e662e9dc9)

CMAKE_BINARY_DIR: /Users/yijunw/dealii-candi/tmp/build/deal.II-v9.3.3

CMAKE_CXX_COMPILER: GNU 11.2.0 on platform Darwin x86_64

/usr/local/bin/mpicxx

C++ language standard: C++17

CMAKE_C_COMPILER: /usr/local/bin/mpicc

CMAKE_Fortran_COMPILER: /usr/local/bin/mpifort

CMAKE_GENERATOR: Unix Makefiles

Base configuration (prior to feature configuration):

DEAL_II_CXX_FLAGS: -pedantic -fPIC -Wall -Wextra -Wmissing-braces -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wsuggest-override -Wswitch -Wsynth -Wwrite-strings -Wno-placement-new -Wno-deprecated-declarations -Wno-literal-suffix -Wno-psabi -Wno-class-memaccess -fopenmp-simd -ftemplate-depth=1024

DEAL_II_CXX_FLAGS_RELEASE: -O2 -funroll-loops -funroll-all-loops -fstrict-aliasing -Wno-unused-local-typedefs

DEAL_II_CXX_FLAGS_DEBUG: -O0 -ggdb

DEAL_II_LINKER_FLAGS: -fuse-ld=lld

DEAL_II_LINKER_FLAGS_RELEASE:

DEAL_II_LINKER_FLAGS_DEBUG: -ggdb

DEAL_II_DEFINITIONS:

DEAL_II_DEFINITIONS_RELEASE:

DEAL_II_DEFINITIONS_DEBUG: DEBUG

DEAL_II_USER_DEFINITIONS:

DEAL_II_USER_DEFINITIONS_REL:

DEAL_II_USER_DEFINITIONS_DEB: DEBUG

DEAL_II_INCLUDE_DIRS

DEAL_II_USER_INCLUDE_DIRS:

DEAL_II_BUNDLED_INCLUDE_DIRS:

DEAL_II_LIBRARIES:

DEAL_II_LIBRARIES_RELEASE:

DEAL_II_LIBRARIES_DEBUG:

DEAL_II_VECTORIZATION_WIDTH_IN_BITS: 128

DEAL_II_HAVE_CXX17

Configured Features (DEAL_II_ALLOW_BUNDLED = ON, DEAL_II_ALLOW_AUTODETECTION = ON):

( DEAL_II_WITH_64BIT_INDICES = OFF )

( DEAL_II_WITH_ADOLC = OFF )

( DEAL_II_WITH_ARBORX = OFF )

( DEAL_II_WITH_ARPACK = OFF )

( DEAL_II_WITH_ASSIMP = OFF )

DEAL_II_WITH_BOOST set up with bundled packages

BOOST_CXX_FLAGS = -Wno-unused-local-typedefs

BOOST_DEFINITIONS = BOOST_NO_AUTO_PTR

BOOST_USER_DEFINITIONS = BOOST_NO_AUTO_PTR

BOOST_BUNDLED_INCLUDE_DIRS = /Users/yijunw/dealii-candi/tmp/unpack/deal.II-v9.3.3/bundled/boost-1.70.0/include

DEAL_II_WITH_COMPLEX_VALUES = ON

( DEAL_II_WITH_CUDA = OFF )

( DEAL_II_WITH_GINKGO = OFF )

( DEAL_II_WITH_GMSH = OFF )

( DEAL_II_WITH_GSL = OFF )

DEAL_II_WITH_HDF5 set up with external dependencies

HDF5_DIR = /Users/yijunw/dealii-candi/hdf5-1.10.7

HDF5_INCLUDE_DIRS = /Users/yijunw/dealii-candi/hdf5-1.10.7/include

HDF5_USER_INCLUDE_DIRS = /Users/yijunw/dealii-candi/hdf5-1.10.7/include

HDF5_LIBRARIES = /Users/yijunw/dealii-candi/hdf5-1.10.7/lib/libhdf5_hl.dylib;/Users/yijunw/dealii-candi/hdf5-1.10.7/lib/libhdf5.dylib

DEAL_II_WITH_KOKKOS set up with external dependencies

DEAL_II_WITH_LAPACK set up with external dependencies

LAPACK_WITH_64BIT_BLAS_INDICES = OFF

LAPACK_LINKER_FLAGS =

LAPACK_INCLUDE_DIRS =

LAPACK_USER_INCLUDE_DIRS =

LAPACK_LIBRARIES = -lm;-ldl;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Accelerate.framework

( DEAL_II_WITH_METIS = OFF )

DEAL_II_WITH_MPI set up with external dependencies

MPI_VERSION = 3.1

MPI_C_COMPILER = /usr/local/bin/mpicc

MPI_CXX_COMPILER = /usr/local/bin/mpicxx

MPI_Fortran_COMPILER = /usr/local/bin/mpifort

MPI_CXX_FLAGS =

MPI_LINKER_FLAGS =

MPI_INCLUDE_DIRS =

MPI_USER_INCLUDE_DIRS =

DEAL_II_WITH_MUPARSER set up with bundled packages

MUPARSER_BUNDLED_INCLUDE_DIRS = /Users/yijunw/dealii-candi/tmp/unpack/deal.II-v9.3.3/bundled/muparser_v2_2_4//include

( DEAL_II_WITH_OPENCASCADE = OFF )

DEAL_II_WITH_P4EST set up with external dependencies

P4EST_VERSION = 2.3.2

P4EST_DIR = /Users/yijunw/dealii-candi/p4est-2.3.2

P4EST_INCLUDE_DIRS = /Users/yijunw/dealii-candi/p4est-2.3.2/FAST/include

P4EST_USER_INCLUDE_DIRS = /Users/yijunw/dealii-candi/p4est-2.3.2/FAST/include

P4EST_LIBRARIES = optimized;/Users/yijunw/dealii-candi/p4est-2.3.2/FAST/lib/libp4est.dylib;/Users/yijunw/dealii-candi/p4est-2.3.2/FAST/lib/libsc.dylib;debug;/Users/yijunw/dealii-candi/p4est-2.3.2/DEBUG/lib/libp4est.dylib;/Users/yijunw/dealii-candi/p4est-2.3.2/DEBUG/lib/libsc.dylib;general;-lm;-ldl;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Accelerate.framework

( DEAL_II_WITH_PETSC = OFF )

( DEAL_II_WITH_SCALAPACK = OFF )

( DEAL_II_WITH_SLEPC = OFF )

( DEAL_II_WITH_SUNDIALS = OFF )

( DEAL_II_WITH_SYMENGINE = OFF )

DEAL_II_WITH_TBB set up with bundled packages

TBB_CXX_FLAGS = -Wno-parentheses

TBB_BUNDLED_INCLUDE_DIRS = /Users/yijunw/dealii-candi/tmp/unpack/deal.II-v9.3.3/bundled/tbb-2018_U2/include

DEAL_II_WITH_TRILINOS set up with external dependencies

TRILINOS_VERSION = 12.18.1

TRILINOS_DIR = /Users/yijunw/dealii-candi/trilinos-release-12-18-1

TRILINOS_LINKER_FLAGS =

TRILINOS_INCLUDE_DIRS = /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include

TRILINOS_USER_INCLUDE_DIRS = /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include

TRILINOS_LIBRARIES = /Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/librol.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libtempus.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libmuelu-adapters.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libmuelu-interface.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libmuelu.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/liblocathyra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/liblocaepetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/liblocalapack.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libloca.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libnoxepetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libnoxlapack.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libnox.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libintrepid2.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libintrepid.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libteko.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libstratimikos.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libstratimikosbelos.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libstratimikosamesos2.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libstratimikosaztecoo.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libstratimikosamesos.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libstratimikosml.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libstratimikosifpack.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libanasazitpetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libModeLaplace.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libanasaziepetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libanasazi.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libamesos2.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libshylu_nodetacho.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libbelosxpetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libbelostpetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libbelosepetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libbelos.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libml.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libifpack.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libzoltan2.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libpamgen_extras.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libpamgen.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libamesos.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libgaleri-xpetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libgaleri-epetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libaztecoo.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libisorropia.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libxpetra-sup.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libxpetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libthyratpetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libthyraepetraext.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libthyraepetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libthyracore.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libtrilinosss.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libtpetraext.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libtpetrainout.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libtpetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libkokkostsqr.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libtpetraclassiclinalg.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libtpetraclassicnodeapi.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libtpetraclassic.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libepetraext.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libtriutils.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libshards.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libzoltan.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libepetra.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libsacado.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/librtop.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libkokkoskernels.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libteuchoskokkoscomm.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libteuchoskokkoscompat.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libteuchosremainder.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libteuchosnumerics.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libteuchoscomm.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libteuchosparameterlist.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libteuchosparser.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libteuchoscore.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libkokkosalgorithms.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libkokkoscontainers.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libkokkoscore.dylib;/Users/yijunw/dealii-candi/trilinos-release-12-18-1/lib/libgtest.dylib;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/liblapack.tbd;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libblas.tbd;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libdl.tbd

DEAL_II_WITH_UMFPACK set up with bundled packages

UMFPACK_BUNDLED_INCLUDE_DIRS = /Users/yijunw/dealii-candi/tmp/unpack/deal.II-v9.3.3/bundled/umfpack/UMFPACK/Include;/Users/yijunw/dealii-candi/tmp/unpack/deal.II-v9.3.3/bundled/umfpack/AMD/Include

DEAL_II_WITH_ZLIB set up with external dependencies

ZLIB_VERSION = 1.2.11

ZLIB_INCLUDE_DIRS = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include

ZLIB_LIBRARIES = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libz.tbd

Component configuration:

( DEAL_II_COMPONENT_DOCUMENTATION = OFF )

DEAL_II_COMPONENT_EXAMPLES

( DEAL_II_COMPONENT_PACKAGE = OFF )

( DEAL_II_COMPONENT_PYTHON_BINDINGS = OFF )

and aspect detail.log:

ASPECT configuration:

ASPECT_VERSION: 2.4.0-pre

GIT REVISION: 5d8478854 (FratersBillen21_mac_Strainrate_save_on_Particle)

CMAKE_BUILD_TYPE: Debug

DEAL_II_DIR: /Users/yijunw/dealii-candi/deal.II-v9.3.3/lib/cmake/deal.II

DEAL_II VERSION: 9.3.3

ASPECT_USE_PETSC: OFF

ASPECT_USE_FP_EXCEPTIONS: OFF

ASPECT_RUN_ALL_TESTS: OFF

ASPECT_USE_SHARED_LIBS: ON

ASPECT_HAVE_LINK_H: OFF

ASPECT_WITH_LIBDAP: OFF

ASPECT_WITH_WORLD_BUILDER: ON /Users/yijunw/Applications/aspect/contrib/world_builder

ASPECT_PRECOMPILE_HEADERS: OFF

ASPECT_UNITY_BUILD: OFF

CMAKE_INSTALL_PREFIX: /usr/local

CMAKE_SOURCE_DIR: /Users/yijunw/Applications/aspect

CMAKE_BINARY_DIR: /Users/yijunw/Applications/aspect/buildsop

CMAKE_CXX_COMPILER: GNU 11.2.0 on platform Darwin x86_64

/usr/local/bin/mpicxx

PARAMETER_GUI_EXECUTABLE: PARAMETER_GUI_EXECUTABLE-NOTFOUND

LINKAGE: DYNAMIC

COMPILE_FLAGS:

_WITH_CXX14: ON

_WITH_CXX17: TRUE

_MPI_VERSION: 3.1

_WITH_64BIT_INDICES: OFF

Well, if things work correctly without warnings/errors, then you are good to go.

I have two more comments:

  1. It looks like deal.II and ASPECT are using gcc-11 through the MPI wrapper. I can not recommend doing that, see Apple ARM M1 OSX · dealii/dealii Wiki · GitHub (at least I ran into issues)
  2. You report that mpicxx -v reports that it uses clang while deal.II report using gcc. I am not sure why that is, unless you specified OMPI_CXX when configuring deal.II but not when you show the output of mpicxx -v. Is that true?

Answers to both 1 and 2:
Yes, I specified OMPI_CXX=g++-11 (and a bunch of other OMPI compilers to use gcc) before when I installed dealii but not when I use mpicxx -v. If there is problem with this later I will not do this. Thanks!

This is fine (but wasn’t helpful for me to diagnose your compiler warnings).