# Error compiling ASPECT on Mac Monterey M1 arm64e

**URL:** <https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328>\
**Category:** ASPECT\
**Tags:** installation\
**Created:** [March 29, 2022, 2:31pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328 "2022-03-29T14:31:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![yijunw](https://avatars.discourse-cdn.com/v4/letter/y/ecc23a/32.png) [@yijunw](https://community.geodynamics.org/u/yijunw)\
**Post date:** [March 29, 2022, 2:31pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328/1 "2022-03-29T14:31:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bangerth](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/bangerth/32/52_2.png) [@bangerth](https://community.geodynamics.org/u/bangerth)\
**Post date:** [March 29, 2022, 3:19pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328/2 "2022-03-29T15:19:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![yijunw](https://avatars.discourse-cdn.com/v4/letter/y/ecc23a/32.png) [@yijunw](https://community.geodynamics.org/u/yijunw)\
**Post date:** [March 29, 2022, 5:22pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328/3 "2022-03-29T17:22:55Z")

</div>

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

Best,  
Yijun

---

<div class="post-metadata">

**Author:** ![bangerth](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/bangerth/32/52_2.png) [@bangerth](https://community.geodynamics.org/u/bangerth)\
**Post date:** [March 29, 2022, 5:59pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328/4 "2022-03-29T17:59:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![yijunw](https://avatars.discourse-cdn.com/v4/letter/y/ecc23a/32.png) [@yijunw](https://community.geodynamics.org/u/yijunw)\
**Post date:** [March 29, 2022, 7:54pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328/5 "2022-03-29T19:54:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bangerth](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/bangerth/32/52_2.png) [@bangerth](https://community.geodynamics.org/u/bangerth)\
**Post date:** [March 29, 2022, 8:13pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328/6 "2022-03-29T20:13:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tjhei](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/tjhei/32/1163_2.png) [@tjhei](https://community.geodynamics.org/u/tjhei)\
**Post date:** [March 31, 2022, 8:20pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328/7 "2022-03-31T20:20:37Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![yijunw](https://avatars.discourse-cdn.com/v4/letter/y/ecc23a/32.png) [@yijunw](https://community.geodynamics.org/u/yijunw)\
**Post date:** [April 1, 2022, 4:33pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328/8 "2022-04-01T16:33:32Z")

</div>

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

# 

###

---

<div class="post-metadata">

**Author:** ![tjhei](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/tjhei/32/1163_2.png) [@tjhei](https://community.geodynamics.org/u/tjhei)\
**Post date:** [April 1, 2022, 5:51pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328/9 "2022-04-01T17:51:31Z")

</div>

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](https://github.com/dealii/dealii/wiki/Apple-ARM-M1-OSX#why-not-gcc) (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?

---

<div class="post-metadata">

**Author:** ![yijunw](https://avatars.discourse-cdn.com/v4/letter/y/ecc23a/32.png) [@yijunw](https://community.geodynamics.org/u/yijunw)\
**Post date:** [April 1, 2022, 6:56pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328/10 "2022-04-01T18:56:26Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![tjhei](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/tjhei/32/1163_2.png) [@tjhei](https://community.geodynamics.org/u/tjhei)\
**Post date:** [April 2, 2022, 2:51pm UTC](https://community.geodynamics.org/t/error-compiling-aspect-on-mac-monterey-m1-arm64e/2328/11 "2022-04-02T14:51:58Z")

</div>

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