# Error once I have compiled ASPECT

**URL:** <https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989>\
**Category:** ASPECT\
**Tags:** installation\
**Created:** [September 3, 2021, 12:00pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989 "2021-09-03T12:00:16Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedrogea08](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pedrogea08](https://community.geodynamics.org/u/Pedrogea08)\
**Post date:** [September 3, 2021, 12:00pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/1 "2021-09-03T12:00:16Z")

</div>

Hi everyone, my name is Pedro. I think I have installed and compiled ASPECT succesfully. When I run make, it reaches the 100 . This message is displayed: [100] **Linking CXX executable aspect**  
[100%] Built target aspect  
However, when I write ‘make test’, the following error is displayed:

bash-3.2$ make test

**Consolidate compiler generated dependencies of target aspect**

[98%] Built target aspect

[100%] **Running unit\_tests …**

/bin/sh: line 1: 3869 Illegal instruction: 4 /Users/pedro\_gea/aspect/release/aspect --test

make[3]: \*\*\* [CMakeFiles/run\_unit\_tests] Error 132

make[2]: \*\*\* [CMakeFiles/run\_unit\_tests.dir/all] Error 2

make[1]: \*\*\* [CMakeFiles/test.dir/rule] Error 2

make: \*\*\* [test] Error 2

bash-3.2$

Also, when I run a .prm file using mpi, I get the following error:

Primary job terminated normally, but 1 process returned

a non-zero exit code. Per user-direction, the job has been aborted.

* * *

* * *

mpirun noticed that process rank 1 with PID 0 on node cvi067009 exited on signal 4 (Illegal instruction: 4).

Any ideas as to the cause of the problem?  
Pedro

---

<div class="post-metadata">

**Author:** ![jbnaliboff](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jbnaliboff](https://community.geodynamics.org/u/jbnaliboff)\
**Post date:** [September 3, 2021, 3:19pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/2 "2021-09-03T15:19:09Z")

</div>

Hi Pedro,

Thank you for posting to the forum!

At first glance I’m not seeing any clear hints to what the issue is. To help with the debugging, can you provide some information about your system and how you installed ASPECT/deal.II?

Thanks!  
John

---

<div class="post-metadata">

**Author:** ![Pedrogea08](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pedrogea08](https://community.geodynamics.org/u/Pedrogea08)\
**Post date:** [September 3, 2021, 4:04pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/3 "2021-09-03T16:04:57Z")

</div>

Thanks for your reply.

My operating system is MacOs BigSur. I installed deal.II by downloading the prepackaged .dmg file from the download page and dragging the deal.II.app to the applications folder. Specifically, I downloaded dealii-9.3.0-bigsur-intel.dmg, available in [deal.II Downloads](https://www.dealii.org/download.html).

To install aspect in my users directory in the optimized mode, I did the following steps (always within the deal.II terminal):

git clone [https://github.com/geodynamics/aspect.git](https://github.com/geodynamics/aspect.git)

mkdir ~/aspect/release

cd ~/aspect/release

cmake ~/aspect

make release

make

All of this seemed to work well. However, when I tried make test or to run a .prm file, I get the error I pasted in my previous message.

---

<div class="post-metadata">

**Author:** ![jbnaliboff](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jbnaliboff](https://community.geodynamics.org/u/jbnaliboff)\
**Post date:** [September 3, 2021, 5:32pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/4 "2021-09-03T17:32:57Z")

</div>

Hi Pedro,

Yes, at first glance I don’t see anything wrong with your workflow.

Question 1 - if you compile in Debug mode (i.e, don’t do `make release`), does everything work properly?

Question 2 - In release mode, can you run a model with `~/aspect/release/.aspect prm_file_name.prm`?

Can you also report the version of Xcode you have installed? This has caused problems in the past.

Cheers,  
John

---

<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:** [September 3, 2021, 6:39pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/5 "2021-09-03T18:39:04Z")

</div>

I bet that this is the problem. The dmg package is built for a specific  
processor architecture, and while operating systems running on a different  
processor will gladly install the DMG, it may not run if, for example, you  
have an older processor than the one Luca used when building the dmg package.

I’m not a Mac person, so don’t know the workflow well. But I think that the  
only option you have is to build deal.II yourself on your machine, for example  
using the ‘candi’ script.

Best  
W.

---

<div class="post-metadata">

**Author:** ![Pedrogea08](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pedrogea08](https://community.geodynamics.org/u/Pedrogea08)\
**Post date:** [September 3, 2021, 7:31pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/6 "2021-09-03T19:31:51Z")

</div>

Hello!

The computer has the new M1 processor, so that could be the problem.

I think that candi only works for linux systems. Could I use another alternative software to build deal.II like Spack?

Thanks!

Pedro

---

<div class="post-metadata">

**Author:** ![Pedrogea08](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pedrogea08](https://community.geodynamics.org/u/Pedrogea08)\
**Post date:** [September 3, 2021, 7:42pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/7 "2021-09-03T19:42:26Z")

</div>

Answer to question 1: It doesn’t work in Debug mode either.

Answer to question 2: I haven’t tried to run a model in release mode without using mpirun as you say. I’ll try it on monday.

The version of Xcode I have installed is the latest version (version 12.5.1).

I will keep trying to solve the problem.

Thank you very much

Pedro

---

<div class="post-metadata">

**Author:** ![jbnaliboff](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jbnaliboff](https://community.geodynamics.org/u/jbnaliboff)\
**Post date:** [September 3, 2021, 7:49pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/8 "2021-09-03T19:49:28Z")

</div>

Hi Pedro,

> The computer has the new M1 processor, so that could be the problem.

Yes, that is definitely the issue 🙂

Here the instructions (quite new) for compiling on the M1 processor, which Timo Heister kindly put together at the last hackathon:

> **[Installation on ARM OSX](https://github.com/geodynamics/aspect/wiki/Installation-on-ARM-OSX)**
>
> A parallel, extensible finite element code to simulate convection in both 2D and 3D models. - geodynamics/aspect

Let us know how it goes!  
John

---

<div class="post-metadata">

**Author:** ![Pedrogea08](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pedrogea08](https://community.geodynamics.org/u/Pedrogea08)\
**Post date:** [September 6, 2021, 12:02pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/9 "2021-09-06T12:02:39Z")

</div>

Hello!

I have followed Timo’s instructions for compiling on the M1 processor but I get an error when I try to install deal.22. Specifically, when I type:

> ./candi.sh -j 8 --packages=“hdf5 p4est trilinos dealii”

within the candi directory, I get the following error message:

[90%] Building CXX object examples/CMakeFiles/step-16b.release.dir/step-16b/step-16b.cc.o

[90%] Linking CXX executable …/bin/step-22.release

[90%] Linking CXX executable …/bin/step-56.release

[90%] Built target step-22.release

[90%] Building CXX object examples/CMakeFiles/step-74.release.dir/step-74/step-74.cc.o

[90%] Built target step-56.release

[90%] Building CXX object examples/CMakeFiles/step-39.release.dir/step-39/step-39.cc.o

[90%] Linking CXX executable …/bin/step-76.release

[90%] Built target step-76.release

[90%] Building CXX object examples/CMakeFiles/step-34.release.dir/step-34/step-34.cc.o

[90%] Linking CXX executable …/bin/step-11.release

[90%] Built target step-11.release

[90%] Building CXX object examples/CMakeFiles/step-15.release.dir/step-15/step-15.cc.o

[90%] Linking CXX executable …/bin/step-47.release

[90%] Built target step-47.release

[91%] Building CXX object examples/CMakeFiles/step-40.release.dir/step-40/step-40.cc.o

[91%] Linking CXX executable …/bin/step-14.release

[91%] Built target step-14.release

[91%] Building CXX object examples/CMakeFiles/step-1.release.dir/step-1/step-1.cc.o

[91%] Linking CXX executable …/bin/step-21.release

[91%] Linking CXX executable …/bin/step-74.release

[91%] Built target step-21.release

[91%] Building CXX object examples/CMakeFiles/step-4.release.dir/step-4/step-4.cc.o

[91%] Built target step-74.release

[91%] Building CXX object examples/CMakeFiles/step-20.release.dir/step-20/step-20.cc.o

[91%] Linking CXX executable …/bin/step-1.release

[91%] Built target step-1.release

[91%] Building CXX object examples/CMakeFiles/step-7.release.dir/step-7/step-7.cc.o

[91%] Linking CXX executable …/bin/step-40.release

[91%] Linking CXX executable …/bin/step-15.release

[91%] Built target step-40.release

[91%] Building CXX object examples/CMakeFiles/step-43.release.dir/step-43/step-43.cc.o

[91%] Built target step-15.release

[91%] Building CXX object examples/CMakeFiles/step-10.release.dir/step-10/step-10.cc.o

[91%] Linking CXX executable …/bin/step-16b.release

[91%] Built target step-16b.release

[91%] Building CXX object examples/CMakeFiles/step-52.release.dir/step-52/step-52.cc.o

[91%] Linking CXX executable …/bin/step-39.release

[91%] Linking CXX executable …/bin/step-34.release

[91%] Built target step-39.release

[91%] Building CXX object source/CMakeFiles/deal\_II.g.dir/dummy.cc.o

[91%] Linking CXX shared library …/lib/libdeal\_II.g.dylib

[91%] Built target step-34.release

[91%] Linking CXX executable …/bin/step-10.release

[91%] Linking CXX executable …/bin/step-4.release

[91%] Built target step-10.release

[91%] Built target step-4.release

[91%] Linking CXX executable …/bin/step-20.release

[91%] Linking CXX executable …/bin/step-52.release

[91%] Built target step-20.release

[91%] Built target step-52.release

[91%] Linking CXX executable …/bin/step-7.release

[91%] Built target step-7.release

[91%] Linking CXX executable …/bin/step-43.release

[91%] Built target step-43.release

final section layout:

\_\_TEXT/\_\_text addr=0x00018BA0, size=0x07A0B2E0, fileOffset=0x00018BA0, type=1

\_\_TEXT/\_\_stubs addr=0x07A23E80, size=0x00650124, fileOffset=0x07A23E80, type=29

\_\_TEXT/\_\_stub\_helper addr=0x08073FA4, size=0x00002124, fileOffset=0x08073FA4, type=33

\_\_TEXT/\_\_const addr=0x080760D0, size=0x002B6E58, fileOffset=0x080760D0, type=0

\_\_TEXT/\_\_cstring addr=0x0832CF28, size=0x01739C38, fileOffset=0x0832CF28, type=13

\_\_TEXT/\_\_eh\_frame addr=0x09A66B60, size=0x024E14A0, fileOffset=0x09A66B60, type=19

\_\_DATA\_CONST/\_\_got addr=0x0BF48000, size=0x000353C0, fileOffset=0x0BF48000, type=30

\_\_DATA\_CONST/\_\_mod\_init\_func addr=0x0BF7D3C0, size=0x00000C00, fileOffset=0x0BF7D3C0, type=34

\_\_DATA\_CONST/\_\_const addr=0x0BF7DFC0, size=0x00134100, fileOffset=0x0BF7DFC0, type=0

\_\_DATA/\_\_la\_symbol\_ptr addr=0x0C0B4000, size=0x00435618, fileOffset=0x0C0B4000, type=28

\_\_DATA/\_\_gcc\_except\_tab addr=0x0C4E9618, size=0x005FF1F0, fileOffset=0x0C4E9618, type=0

\_\_DATA/\_\_data addr=0x0CAE8808, size=0x0000AEA8, fileOffset=0x0CAE8808, type=0

\_\_DATA/\_\_bss addr=0x0CAF36B0, size=0x00009C49, fileOffset=0x00000000, type=26

\_\_DATA/\_\_common addr=0x0CAFD300, size=0x00000719, fileOffset=0x00000000, type=26

ld: b(l) ARM64 branch out of range (134586840 max is +/-128MB): from \__ZN5boost7archive17archive\_exceptionC2ENS1\_14exception\_codeEPKcS4_ (0x00018C58) to \_\_\_assert\_rtn@0x00000000 (0x08073344) in ‘\__ZN5boost7archive17archive\_exceptionC2ENS1\_14exception\_codeEPKcS4_’ from …/bundled/boost-1.70.0/libs/serialization/src/CMakeFiles/obj\_boost\_serialization\_debug.dir/archive\_exception.cpp.o for architecture arm64

collect2: error: ld returned 1 exit status

make[2]: \*\*\* [lib/libdeal\_II.g.9.3.1.dylib] Error 1

make[2]: \*\*\* Deleting file `lib/libdeal\_II.g.9.3.1.dylib’

make[1]: \*\*\* [source/CMakeFiles/deal\_II.g.dir/all] Error 2

make: \*\*\* [all] Error 2

**Failure with exit status: 2**

**Exit message: There was a problem building dealii v9.3.1.**

Any idea what the problem might be?

Thanks, Pedro

---

<div class="post-metadata">

**Author:** ![jbnaliboff](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jbnaliboff](https://community.geodynamics.org/u/jbnaliboff)\
**Post date:** [September 6, 2021, 5:35pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/10 "2021-09-06T17:35:07Z")

</div>

Hi Pedro,

I’m not sure what the fix is for that error, this may be very compiler and architecture specific:  
`ld: b(l) ARM64 branch out of range (134586840 max is +/-128MB): from _ *ZN5boost7archive17archive_exceptionC2ENS1_14exception_codeEPKcS4* (0x00018C58) to ___assert_rtn@0x00000000 (0x08073344) in ‘_ *ZN5boost7archive17archive_exceptionC2ENS1_14exception_codeEPKcS4* ’ from …/bundled/boost-1.70.0/libs/serialization/src/CMakeFiles/obj_boost_serialization_debug.dir/archive_exception.cpp.o for architecture arm64`

What you can try doing is not rerunning Candi and not have the deal.II examples built. I believe you can do this in candi.cfg by setting `BUILD_EXAMPLES=OFF`.

Alternatively, setting the following variable in candi.cfg should also work:  
`DEAL_CONFOPTS="-DDEAL_II_COMPONENT_EXAMPLES:BOOL=OFF"`

Unfortunately the deal.II build failed before getting to step-32, which is the most relevant one for ASPECT. You will need to build ASPECT run the test suite set to make sure nothing is off. Please let us know how this goes!

FYI, you may get a large number of failing tests, but the key is whether they are simply very small changes to already small values, or significant changes to the test results. The test results are machine/compiler dependent to a small degree, but this will be the case for all codes.

Cheers,  
John

---

<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:** [September 6, 2021, 9:38pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/11 "2021-09-06T21:38:22Z")

</div>

I have not seen this error before. John is right in that the examples are not crucial, but ASPECT might fail the same way. We will see.

Can you please post your detailed.log? It should be inside the destination folder then tmp/build/deal.II/. Maybe that tells me what is different on your system.

---

<div class="post-metadata">

**Author:** ![Pedrogea08](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pedrogea08](https://community.geodynamics.org/u/Pedrogea08)\
**Post date:** [September 7, 2021, 10:35am UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/12 "2021-09-07T10:35:33Z")

</div>

I have set `BUILD_EXAMPLES=OFF` and run Candi again. Now, it reaches 100 % but at the end I get the same error:

[98%] Building CXX object source/numerics/CMakeFiles/obj\_numerics\_debug.dir/vector\_tools\_project\_qp.cc.o  
[100%] Building CXX object source/numerics/CMakeFiles/obj\_numerics\_debug.dir/vector\_tools\_project\_qpmf.cc.o  
[100%] Built target obj\_fe\_debug  
[100%] Built target obj\_numerics\_debug  
[100%] Building CXX object source/CMakeFiles/deal\_II.g.dir/dummy.cc.o  
[100%] Linking CXX shared library …/lib/libdeal\_II.g.dylib  
final section layout:  
\_\_TEXT/\_\_text addr=0x00018BA0, size=0x07A0B2E0, fileOffset=0x00018BA0, type=1  
\_\_TEXT/\_\_stubs addr=0x07A23E80, size=0x00650124, fileOffset=0x07A23E80, type=29  
\_\_TEXT/\_\_stub\_helper addr=0x08073FA4, size=0x00002124, fileOffset=0x08073FA4, type=33  
\_\_TEXT/\_\_const addr=0x080760D0, size=0x002B6E58, fileOffset=0x080760D0, type=0  
\_\_TEXT/\_\_cstring addr=0x0832CF28, size=0x01739C38, fileOffset=0x0832CF28, type=13  
\_\_TEXT/\_\_eh\_frame addr=0x09A66B60, size=0x024E14A0, fileOffset=0x09A66B60, type=19  
\_\_DATA\_CONST/\_\_got addr=0x0BF48000, size=0x000353C0, fileOffset=0x0BF48000, type=30  
\_\_DATA\_CONST/\_\_mod\_init\_func addr=0x0BF7D3C0, size=0x00000C00, fileOffset=0x0BF7D3C0, type=34  
\_\_DATA\_CONST/\_\_const addr=0x0BF7DFC0, size=0x00134100, fileOffset=0x0BF7DFC0, type=0  
\_\_DATA/\_\_la\_symbol\_ptr addr=0x0C0B4000, size=0x00435618, fileOffset=0x0C0B4000, type=28  
\_\_DATA/\_\_gcc\_except\_tab addr=0x0C4E9618, size=0x005FF1F0, fileOffset=0x0C4E9618, type=0  
\_\_DATA/\_\_data addr=0x0CAE8808, size=0x0000AEA8, fileOffset=0x0CAE8808, type=0  
\_\_DATA/\_\_bss addr=0x0CAF36B0, size=0x00009C49, fileOffset=0x00000000, type=26  
\_\_DATA/\_\_common addr=0x0CAFD300, size=0x00000719, fileOffset=0x00000000, type=26  
ld: b(l) ARM64 branch out of range (134586840 max is +/-128MB): from \__ZN5boost7archive17archive\_exceptionC2ENS1\_14exception\_codeEPKcS4_ (0x00018C58) to \_\_\_assert\_rtn@0x00000000 (0x08073344) in ‘\__ZN5boost7archive17archive\_exceptionC2ENS1\_14exception\_codeEPKcS4_’ from …/bundled/boost-1.70.0/libs/serialization/src/CMakeFiles/obj\_boost\_serialization\_debug.dir/archive\_exception.cpp.o for architecture arm64  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [lib/libdeal\_II.g.9.3.1.dylib] Error 1  
make[2]: \*\*\* Deleting file `lib/libdeal\_II.g.9.3.1.dylib’  
make[1]: \*\*\* [source/CMakeFiles/deal\_II.g.dir/all] Error 2  
make: \*\*\* [all] Error 2  
Failure with exit status: 2  
Exit message: There was a problem building dealii v9.3.1.

---

<div class="post-metadata">

**Author:** ![Pedrogea08](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pedrogea08](https://community.geodynamics.org/u/Pedrogea08)\
**Post date:** [September 7, 2021, 10:38am UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/13 "2021-09-07T10:38:15Z")

</div>

Here is the detailed.log:

### 

# 

# deal.II configuration:

# CMAKE\_BUILD\_TYPE: DebugRelease

# BUILD\_SHARED\_LIBS: ON

# CMAKE\_INSTALL\_PREFIX: /Users/pedro\_gea/dealii-candi/deal.II-v9.3.1

# CMAKE\_SOURCE\_DIR: /Users/pedro\_gea/dealii-candi/tmp/unpack/deal.II-v9.3.1

# (version 9.3.1, shortrev 7f0732c521)

# CMAKE\_BINARY\_DIR: /Users/pedro\_gea/dealii-candi/tmp/build/deal.II-v9.3.1

# CMAKE\_CXX\_COMPILER: GNU 11.1.0 on platform Darwin arm64

# /opt/homebrew/bin/mpicxx

# C++ language standard: C++17

# CMAKE\_C\_COMPILER: /opt/homebrew/bin/mpicc

# CMAKE\_Fortran\_COMPILER: /opt/homebrew/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: 0

# 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/pedro\_gea/dealii-candi/tmp/unpack/deal.II-v9.3.1/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/pedro\_gea/dealii-candi/hdf5-1.10.7

# HDF5\_INCLUDE\_DIRS = /Users/pedro\_gea/dealii-candi/hdf5-1.10.7/include

# HDF5\_USER\_INCLUDE\_DIRS = /Users/pedro\_gea/dealii-candi/hdf5-1.10.7/include

# HDF5\_LIBRARIES = /Users/pedro\_gea/dealii-candi/hdf5-1.10.7/lib/libhdf5\_hl.dylib;/Users/pedro\_gea/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/MacOSX11.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 = /opt/homebrew/bin/mpicc

# MPI\_CXX\_COMPILER = /opt/homebrew/bin/mpicxx

# MPI\_Fortran\_COMPILER = /opt/homebrew/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/pedro\_gea/dealii-candi/tmp/unpack/deal.II-v9.3.1/bundled/muparser\_v2\_2\_4//include

# ( DEAL\_II\_WITH\_OPENCASCADE = OFF )

# DEAL\_II\_WITH\_P4EST set up with external dependencies

# P4EST\_VERSION = 2.2

# P4EST\_DIR = /Users/pedro\_gea/dealii-candi/p4est-2.2

# P4EST\_INCLUDE\_DIRS = /Users/pedro\_gea/dealii-candi/p4est-2.2/FAST/include

# P4EST\_USER\_INCLUDE\_DIRS = /Users/pedro\_gea/dealii-candi/p4est-2.2/FAST/include

# P4EST\_LIBRARIES = optimized;/Users/pedro\_gea/dealii-candi/p4est-2.2/FAST/lib/libp4est.dylib;/Users/pedro\_gea/dealii-candi/p4est-2.2/FAST/lib/libsc.dylib;debug;/Users/pedro\_gea/dealii-candi/p4est-2.2/DEBUG/lib/libp4est.dylib;/Users/pedro\_gea/dealii-candi/p4est-2.2/DEBUG/lib/libsc.dylib;general;-lm;-ldl;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.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/pedro\_gea/dealii-candi/tmp/unpack/deal.II-v9.3.1/bundled/tbb-2018\_U2/include

# DEAL\_II\_WITH\_TRILINOS set up with external dependencies

# TRILINOS\_VERSION = 12.18.1

# TRILINOS\_DIR = /Users/pedro\_gea/dealii-candi/trilinos-release-12-18-1

# TRILINOS\_LINKER\_FLAGS =

# TRILINOS\_INCLUDE\_DIRS = /Users/pedro\_gea/dealii-candi/trilinos-release-12-18-1/include

# TRILINOS\_USER\_INCLUDE\_DIRS = /Users/pedro\_gea/dealii-candi/trilinos-release-12-18-1/include

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

# DEAL\_II\_WITH\_UMFPACK set up with bundled packages

# UMFPACK\_BUNDLED\_INCLUDE\_DIRS = /Users/pedro\_gea/dealii-candi/tmp/unpack/deal.II-v9.3.1/bundled/umfpack/UMFPACK/Include;/Users/pedro\_gea/dealii-candi/tmp/unpack/deal.II-v9.3.1/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/MacOSX11.3.sdk/usr/include

# ZLIB\_LIBRARIES = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/lib/libz.tbd

# 

# Component configuration:

# ( DEAL\_II\_COMPONENT\_DOCUMENTATION = OFF )

# ( DEAL\_II\_COMPONENT\_EXAMPLES = OFF )

# ( DEAL\_II\_COMPONENT\_PACKAGE = OFF )

# ( DEAL\_II\_COMPONENT\_PYTHON\_BINDINGS = 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:** [September 7, 2021, 4:40pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/14 "2021-09-07T16:40:04Z")

</div>

Thank you. I will need to try to reproduce on my system to fix this. Can I ask you to try the following?  
edit candi.cfg to say

```auto
DEAL_II_CONFOPTS="-DDEAL_II_WITH_COMPLEX_VALUES=OFF -DDEAL_II_CXX_FLAGS_DEBUG='-Os' -DDEAL_II_COMPONENT_EXAMPLES=OFF"

```

then delete `tmp/build/deal.II-v9.3.1`  
and run again? This might reduce the library size so that you are able to link.

Best,  
Timo

---

<div class="post-metadata">

**Author:** ![Pedrogea08](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pedrogea08](https://community.geodynamics.org/u/Pedrogea08)\
**Post date:** [September 8, 2021, 10:26am UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/15 "2021-09-08T10:26:25Z")

</div>

Hello! That worked! Deal.II has been installed successfully.

However, when I type make to compile ASPECT, I get the following error:

[67%] Building CXX object CMakeFiles/aspect.dir/Unity/unity\_39\_cxx.cxx.o

[68%] Building CXX object CMakeFiles/aspect.dir/Unity/unity\_35\_cxx.cxx.o

[69%] Building CXX object CMakeFiles/aspect.dir/Unity/unity\_38\_cxx.cxx.o

**g+±11:**  **error:** unrecognized command-line option ’ **-Xarch\_arm64** ’

**g+±11:**  **error:** unrecognized command-line option ’ **-Xarch\_arm64** ’

make[2]: \*\*\* [CMakeFiles/aspect.dir/Unity/unity\_36\_cxx.cxx.o] Error 1

make[2]: \*\*\* Waiting for unfinished jobs…

make[2]: \*\*\* [CMakeFiles/aspect.dir/Unity/unity\_34\_cxx.cxx.o] Error 1

**g+±11:**  **error:** unrecognized command-line option ’ **-Xarch\_arm64** ’

**g+±11:**  **error:** unrecognized command-line option ’ **-Xarch\_arm64** ’

make[2]: \*\*\* [CMakeFiles/aspect.dir/Unity/unity\_40\_cxx.cxx.o] Error 1

make[2]: \*\*\* [CMakeFiles/aspect.dir/Unity/unity\_39\_cxx.cxx.o] Error 1

**g+±11:**  **error:** unrecognized command-line option ’ **-Xarch\_arm64** ’

**g+±11:**  **error:** unrecognized command-line option ’ **-Xarch\_arm64** ’

**g+±11:**  **error:** unrecognized command-line option ’ **-Xarch\_arm64** ’

make[2]: \*\*\* [CMakeFiles/aspect.dir/Unity/unity\_38\_cxx.cxx.o] Error 1

make[2]: \*\*\* [CMakeFiles/aspect.dir/Unity/unity\_37\_cxx.cxx.o] Error 1

make[2]: \*\*\* [CMakeFiles/aspect.dir/Unity/unity\_35\_cxx.cxx.o] Error 1

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

make: \*\*\* [all] Error 2

I guess the problem is in the computer architecture again but I have not been able to solve it. Any ideas for this?

Here is the detailed.log in case it would be helpful:

### 

# 

# ASPECT configuration:

# ASPECT\_VERSION: 2.4.0-pre

# GIT REVISION: 4dacd248b (master)

# CMAKE\_BUILD\_TYPE: Release

# 

# DEAL\_II\_DIR: /Users/pedro\_gea/dealii-candi/deal.II-v9.3.1/lib/cmake/deal.II

# DEAL\_II VERSION: 9.3.1

# 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/pedro\_gea/aspect/contrib/world\_builder

# ASPECT\_PRECOMPILE\_HEADERS: ON

# ASPECT\_UNITY\_BUILD: ON

# 

# CMAKE\_INSTALL\_PREFIX: /usr/local

# CMAKE\_SOURCE\_DIR: /Users/pedro\_gea/aspect

# CMAKE\_BINARY\_DIR: /Users/pedro\_gea/aspect/release

# CMAKE\_CXX\_COMPILER: GNU 11.1.0 on platform Darwin arm64

# /opt/homebrew/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

# 

### 

Thank you very much again,

Pedro

---

<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:** [September 9, 2021, 2:02pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/16 "2021-09-09T14:02:15Z")

</div>

Very weird, I apologize. M1 is still very new and I haven’t seen these problems on my test system.

Are you compiling ASPECT and deal.II in a native terminal window (not the x64 terminal)? Can you try specifying

```auto
cmake -D ASPECT_PRECOMPILE_HEADERS=OFF -D ASPECT_UNITY_BUILD=OFF .

```

in your ASPECT build directory? Maybe these settings mess up your build.  
If that does not work, can you show me the output for

```auto
make VERBOSE=ON

```

That should show the compiler invocation.

---

<div class="post-metadata">

**Author:** ![Pedrogea08](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pedrogea08](https://community.geodynamics.org/u/Pedrogea08)\
**Post date:** [September 10, 2021, 11:00am UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/17 "2021-09-10T11:00:33Z")

</div>

No worries, I am very grateful for all your help.

I am working in the native terminal. I have typed

> cmake -D ASPECT\_PRECOMPILE\_HEADERS=OFF -D ASPECT\_UNITY\_BUILD=OFF .

in the ASPECT directory and it seems that the previous error has been fixed. However, I get another different error when the aspect executable is being linked. The message I get is as follows:

[98%] Building CXX object CMakeFiles/aspect.dir/contrib/world\_builder/source/utilities.cc.o  
[98%] Building CXX object CMakeFiles/aspect.dir/contrib/world\_builder/source/world.cc.o  
[98%] Building CXX object CMakeFiles/aspect.dir/contrib/world\_builder/source/wrapper\_c.cc.o  
[100%] Building CXX object CMakeFiles/aspect.dir/contrib/world\_builder/source/wrapper\_cpp.cc.o  
[100%] Building CXX object CMakeFiles/aspect.dir/contrib/world\_builder/source/parameters.cc.o  
[100%] Linking CXX executable aspect  
duplicate symbol ‘\_\_ZTSN6aspect13GeometryModel8internal13ChunkGeometryILi3EEE’ in:  
CMakeFiles/aspect.dir/source/geometry\_model/chunk.cc.o  
CMakeFiles/aspect.dir/source/geometry\_model/two\_merged\_chunks.cc.o  
duplicate symbol ‘\_\_ZTIN6aspect13GeometryModel8internal13ChunkGeometryILi3EEE’ in:  
CMakeFiles/aspect.dir/source/geometry\_model/chunk.cc.o  
CMakeFiles/aspect.dir/source/geometry\_model/two\_merged\_chunks.cc.o  
duplicate symbol ‘\_\_ZTSN6aspect13GeometryModel8internal13ChunkGeometryILi2EEE’ in:  
CMakeFiles/aspect.dir/source/geometry\_model/chunk.cc.o  
CMakeFiles/aspect.dir/source/geometry\_model/two\_merged\_chunks.cc.o  
duplicate symbol ‘\_\_ZTIN6aspect13GeometryModel8internal13ChunkGeometryILi2EEE’ in:  
CMakeFiles/aspect.dir/source/geometry\_model/chunk.cc.o  
CMakeFiles/aspect.dir/source/geometry\_model/two\_merged\_chunks.cc.o  
ld: 4 duplicate symbols for architecture arm64  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [aspect] Error 1  
make[1]: \*\*\* [CMakeFiles/aspect.dir/all] Error 2  
make: \*\*\* [all] Error 2

I have tried to build ASPECT in both debug mode and release mode and in both cases I get the same error. I have tried to remove the duplicate symbols ‘\_\_ZTSN6aspect13GeometryModel8internal13ChunkGeometryILi3EEE’ from chunk.cc.o and two\_merged\_chunks.cc.o but it does not work.

Have you seen this error before? How could I fix it?

Pedro

---

<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:** [September 10, 2021, 5:41pm UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/18 "2021-09-10T17:41:56Z")

</div>

> [@Pedrogea08](#):
>
> Have you seen this error before? How could I fix it?

This is indeed a bug in ASPECT. I have a fix here: [remove duplicate ChunkGeometry instantiation by tjhei · Pull Request #4351 · geodynamics/aspect · GitHub](https://github.com/geodynamics/aspect/pull/4351)  
You can try it yourself (or wait until it is merged and then update). Let me know if this works and if there are other problems.

---

<div class="post-metadata">

**Author:** ![Pedrogea08](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@Pedrogea08](https://community.geodynamics.org/u/Pedrogea08)\
**Post date:** [September 13, 2021, 9:27am UTC](https://community.geodynamics.org/t/error-once-i-have-compiled-aspect/1989/19 "2021-09-13T09:27:28Z")

</div>

It worked.

Thank you very much for your patience!

Best,  
Pedro
