# ASPECT on intel MacOS Ventura 13.5.1 with dealii .dmg file/application

**URL:** <https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466>\
**Category:** ASPECT\
**Tags:** installation\
**Created:** [May 22, 2024, 5:06am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466 "2024-05-22T05:06:03Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![mkerr](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mkerr](https://community.geodynamics.org/u/mkerr)\
**Post date:** [May 25, 2024, 12:59am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/22 "2024-05-25T00:59:55Z")

</div>

Final update: I was able to configure and compile the latest version of ASPECT. Attached is my Candi config file. After adding “source INSTALL\_PATH/configuration/enable.sh” to my .zshrc file , my environment looks like this. The versions of mpicc, mpicxx, mpifort are all “GNU Fortran (Homebrew GCC 11.4.0) 11.4.0” and I used cmake version 3.29.3.

```auto
mkerr@igpp20grad7 candi % env
__CFBundleIdentifier=com.apple.Terminal
TMPDIR=/var/folders/py/h1ls7vw539b6m54802bh8ly80000gq/T/
XPC_FLAGS=0x0
TERM=xterm-256color
DISPLAY=/private/tmp/com.apple.launchd.kSQM1PgHPT/org.xquartz:0
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.kxCRYW2q3x/Listeners
XPC_SERVICE_NAME=0
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=447
TERM_SESSION_ID=620C153E-924D-4705-BA74-62034A621EB0
SHELL=/bin/zsh
HOME=/Users/mkerr
LOGNAME=mkerr
USER=mkerr
PATH=/usr/local/Cellar:/usr/local/Cellar:/usr/local/Cellar:/usr/local/bin:/opt/igpp/sbin:/opt/igpp/bin:/opt/local/sbin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/sw/bin:/sw/sbin:/Applications/MATLAB_R2020a.app/bin:/usr/X11/bin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
SHLVL=1
PWD=/Users/mkerr/aspect_workshop_software/candi
OLDPWD=/Users/mkerr/aspect_workshop_software
CC=mpicc
CXX=mpicxx
FC=mpifort
FF=mpifort
OMPI_CXX=g++-11
OMPI_FC=gfortran-11
LDFLAGS=
DEAL_II_CONFOPTS=-DDEAL_II_WITH_COMPLEX_VALUES=OFF -DCMAKE_CXX_COMPILER=/usr/local/bin/mpicxx -DCMAKE_C_COMPILER=/usr/local/bin/mpicc
DEAL_II_DIR=/Users/mkerr/aspect_workshop_software/may24_sundials/deal.II-v9.5.1
P4EST_DIR=/Users/mkerr/aspect_workshop_software/may24_sundials/p4est-2.3.2
TRILINOS_DIR=/Users/mkerr/aspect_workshop_software/may24_sundials/trilinos-release-13-2-0
SUNDIALS_DIR=/Users/mkerr/aspect_workshop_software/may24_sundials/sundials-5.7.0
LANG=en_US.UTF-8
_=/usr/bin/env

```

[candi.cfg](https://community.geodynamics.org/uploads/short-url/9Ocr8iNt6p7hyfGJH46maz81LQY.cfg) (5.1 KB)

---

<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:** [May 25, 2024, 2:51am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/23 "2024-05-25T02:51:42Z")

</div>

Thanks for the update @mkerr and glad it working on your system!

Were you ale to successfully run an ASPECT model?

deal.II also compiled successfully on my end (likely CMAKE\_CXX\_COMPILER was also the issue), but the most recent version of ASPECT does not compile and executing aspect from version 2.5 (builds without issue) results in a malloc error.

---

<div class="post-metadata">

**Author:** ![mkerr](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mkerr](https://community.geodynamics.org/u/mkerr)\
**Post date:** [May 25, 2024, 2:59am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/24 "2024-05-25T02:59:57Z")

</div>

@jbnaliboff I’m sorry; I definitely spoke too soon. I was able to configure but I forgot to follow the last step, and yeah I can’t build the latest version either.

```auto
mkerr@igpp20grad7 build % make
[1%] Building Fortran object world_builder/CMakeFiles/WorldBuilderDebug.dir/source/world_builder/wrapper_fortran.f90.o
[1%] Building CXX object world_builder/CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx.o
In file included from /Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include/world_builder/coordinate_systems/interface.h:26,
                 from /Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include/world_builder/coordinate_systems/cartesian.h:23,
                 from /Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/source/world_builder/coordinate_systems/cartesian.cc:20,
                 from /Users/mkerr/ASPECT_hackathon/code/aspect/build/world_builder/CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx:4:
/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include/world_builder/parameters.h:23:10: fatal error: map: No such file or directory
   23 | #include <map>
      | ^ ~~~~
compilation terminated.
make[2]: *** [world_builder/CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx.o] Error 1
make[1]: *** [world_builder/CMakeFiles/WorldBuilderDebug.dir/all] Error 2
make: *** [all] Error 2
mkerr@igpp20grad7 build % 

```

is the error I get; is that the same for you?

edit: I configured aspect 2.5 but also had the same build error so I might still have some underlying issue.

edit2: I have “World Builder not found. Using internal version.” in my config output which is the same thing that failed my build

---

<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:** [May 25, 2024, 3:22am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/25 "2024-05-25T03:22:07Z")

</div>

Oh no, I was hoping some small tweak on my end would get it working!

`is the error I get; is that the same for you?`

Yes, that’s the same one. I haven’t seen that before on any linux build, so I think it is likely something associated with the mac setups.

> edit: I configured aspect 2.5 but also had the same build error so I might still have some underlying issue.

Hmmm. Did you make a new build directory before configuring? I checkout version 2.5 via git, made a new build directory, and then compiled. However, this still led to the runtime malloc error.  
I think I saw this issue 1 or 2 years ago, but at the time the deal.II dmg was working so just moved on.

I’m nearly ready to throw in the towel and just use the docker route. I was able to connect vs code to a running docker container following [these instructions](https://code.visualstudio.com/docs/devcontainers/attach-container), so the development experience is really not that different at all. However, happy to keep trying a few more things on my side if that would be helpful in replicating or confirming issues/solutions!

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:** [May 25, 2024, 3:26am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/26 "2024-05-25T03:26:29Z")

</div>

Something has gone terribly wrong if a C++ compiler can’t find `<map>` 🙂 Are you perhaps trying to compile that file with a C compiler, for example because you accidentally set `CXX` to `mpicc` or some such? You can probably see which compiler is being called if you call make with

```auto
  make VERBOSE=1

```

Best  
W.

---

<div class="post-metadata">

**Author:** ![mkerr](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mkerr](https://community.geodynamics.org/u/mkerr)\
**Post date:** [May 25, 2024, 3:28am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/27 "2024-05-25T03:28:08Z")

</div>

@jbnaliboff , this was just me being dumb. I went into the 2.5 branch to get the link to clone it, but then used the same git clone as the main branch without the flag to clone the 2.5 branch. I’ll confirm that.  
Sorry to get your hopes up re the build though; I was stuck on dealii for so long I jumped the gun ☹  
I’ll try the docker and keep poking around at this.

---

<div class="post-metadata">

**Author:** ![mkerr](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mkerr](https://community.geodynamics.org/u/mkerr)\
**Post date:** [May 25, 2024, 3:32am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/28 "2024-05-25T03:32:07Z")

</div>

@bangerth  
Hello Wolfgang,  
I don’t think that is the case. My verbose output is this, plus what my CXX var is and where it is

```auto
[1%] Building CXX object world_builder/CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx.o
cd /Users/mkerr/ASPECT_hackathon/code/aspect/build/world_builder && /usr/local/bin/mpicxx -DVTU11_ENABLE_ZLIB -DWB_WITH_MPI -DWB_WITH_ZLIB -I/Users/mkerr/ASPECT_hackathon/code/aspect/include -I/Users/mkerr/ASPECT_hackathon/code/aspect/build/include -I/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/catch -I/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include -I/usr/local/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -I/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/tests -I/Users/mkerr/ASPECT_hackathon/code/aspect/build/world_builder/include -std=gnu++14 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -mmacosx-version-min=13.5 -std=c++14 -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-literal-range -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -stdlib=libc++ -Wuninitialized -Werror=uninitialized -Wdangling-else -g -MD -MT world_builder/CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx.o -MF CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx.o.d -o CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx.o -c /Users/mkerr/ASPECT_hackathon/code/aspect/build/world_builder/CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx
In file included from /Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include/world_builder/coordinate_systems/interface.h:26,
                 from /Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include/world_builder/coordinate_systems/cartesian.h:23,
                 from /Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/source/world_builder/coordinate_systems/cartesian.cc:20,
                 from /Users/mkerr/ASPECT_hackathon/code/aspect/build/world_builder/CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx:4:
/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include/world_builder/parameters.h:23:10: fatal error: map: No such file or directory
   23 | #include <map>
      | ^ ~~~~
compilation terminated.
make[2]: *** [world_builder/CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx.o] Error 1
make[1]: *** [world_builder/CMakeFiles/WorldBuilderDebug.dir/all] Error 2
make: *** [all] Error 2
mkerr@igpp20grad7 build % echo $CXX
mpicxx
mkerr@igpp20grad7 build % which mpicxx
/usr/local/bin/mpicxx
mkerr@igpp20grad7 build % mpicxx --version
g++-11 (Homebrew GCC 11.4.0) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

```

---

<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:** [May 25, 2024, 3:47am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/29 "2024-05-25T03:47:06Z")

</div>

@mkerr You already answered all of the questions I was going to ask about what `/usr/local/bin/mpicxx` actually is – good work!

As I said, something terrible must have been happening here. What happens if you try to compile a simple program that only contains

```auto
#include <map>

```

with that compiler?

Best  
W.

---

<div class="post-metadata">

**Author:** ![mkerr](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mkerr](https://community.geodynamics.org/u/mkerr)\
**Post date:** [May 25, 2024, 3:59am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/30 "2024-05-25T03:59:28Z")

</div>

(deleted)

---

<div class="post-metadata">

**Author:** ![mkerr](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mkerr](https://community.geodynamics.org/u/mkerr)\
**Post date:** [May 25, 2024, 4:08am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/31 "2024-05-25T04:08:32Z")

</div>

@bangerth Apologies, when you said only #include I didn’t have a \_main function. When I added that in, I could compile and run:

```auto
mkerr@igpp20grad7 tests % mpicxx just_include_map.cxx -o just_include_map
-macosx_version_min has been renamed to -macos_version_min
mkerr@igpp20grad7 tests % tail just_include_map.cxx 
#include <map>
int main()
{
}
mkerr@igpp20grad7 tests % ./just_include_map 
mkerr@igpp20grad7 tests % 

```

---

<div class="post-metadata">

**Author:** ![mkerr](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mkerr](https://community.geodynamics.org/u/mkerr)\
**Post date:** [May 25, 2024, 5:00am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/32 "2024-05-25T05:00:55Z")

</div>

@jbnaliboff I could build 2.5 and I could also run it without a malloc error(although I do remember getting these in the past). I ran the convection-box cookbook successfully with aspect 2.5. But still no luck for 2.6. I am working with docker now; I’ve never used it before but I do use VS code so I’m sure I can figure it out before Tuesday. I know the documentation recommends downloading a pre-compiled ASPECT image from docker hub, and I’m wondering if we should build our own image for our own fork? I’m also still figuring out exactly what docker is a does so pardon if my question is garbled.

---

<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:** [May 25, 2024, 11:36pm UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/33 "2024-05-25T23:36:04Z")

</div>

@mkerr I don’t quite know what to suggest. The exact invocation of the compiler in the case that failed was this one:

> [@mkerr](#):
>
> ```auto
> /usr/local/bin/mpicxx -DVTU11_ENABLE_ZLIB -DWB_WITH_MPI -DWB_WITH_ZLIB -I/Users/mkerr/ASPECT_hackathon/code/aspect/include -I/Users/mkerr/ASPECT_hackathon/code/aspect/build/include -I/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/catch -I/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include -I/usr/local/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -I/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/tests -I/Users/mkerr/ASPECT_hackathon/code/aspect/build/world_builder/include -std=gnu++14 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -mmacosx-version-min=13.5 -std=c++14 -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-literal-range -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -stdlib=libc++ -Wuninitialized -Werror=uninitialized -Wdangling-else -g -MD -MT world_builder/CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx.o -MF CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx.o.d -o CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx.o -c /Users/mkerr/ASPECT_hackathon/code/aspect/build/world_builder/CMakeFiles/WorldBuilderDebug.dir/Unity/unity_0_cxx.cxx
> 
> ```

What happens if you replace the test in which you just called `mpicxx` by using all or some of the compiler flags in this line?

Best  
W.

---

<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:** [May 26, 2024, 12:43am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/34 "2024-05-26T00:43:54Z")

</div>

@mkerr - [Here is a link](https://aspect-documentation.readthedocs.io/en/latest/user/install/docker-container/index.html) to the documentation for the aspect docker container.

Once docker is installed, you can run `docker pull geodynamics/aspect` to get the aspect docker container (contains deal.II 9.5.1 + main branch of aspect). `docker run -it geodynamics/aspect` will start the container, and then you can connect VS code to the running container.

I’m out of ideas for the native build, but your installation is farther along than mine (aspect at least runs after being built) and @bangerth may see something or think of a diagnostic test that pinpoints the issue.

---

<div class="post-metadata">

**Author:** ![mkerr](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mkerr](https://community.geodynamics.org/u/mkerr)\
**Post date:** [May 26, 2024, 1:07am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/35 "2024-05-26T01:07:35Z")

</div>

A great idea, I think the problem is in the flag “-stdlib=libc++”. I am compiling my program “JIM” (just include maps) which is

```auto
#include <map>
int main()
{
}

```

And I did a little binary search type thing to find the problematic flag. They seem to be “-stdlib=libc++” which gives the error that I see in compiling aspect and then -MT which breaks it in a different way

```auto
mkerr@igpp20grad7 tests % /usr/local/bin/mpicxx -DVTU11_ENABLE_ZLIB -DWB_WITH_MPI -DWB_WITH_ZLIB -I/Users/mkerr/ASPECT_hackathon/code/aspect/include -I/Users/mkerr/ASPECT_hackathon/code/aspect/build/include -I/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/catch -I/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include -I/usr/local/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -I/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/tests -I/Users/mkerr/ASPECT_hackathon/code/aspect/build/world_builder/include -std=gnu++14 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -mmacosx-version-min=13.5 -std=c++14 just_include_map.cxx -o JIM
-macosx_version_min has been renamed to -macos_version_min
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % /usr/local/bin/mpicxx -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-literal-range -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -stdlib=libc++ -Wuninitialized -Werror=uninitialized -Wdangling-else -g -MD -MT just_include_map.cxx -o JIM
-macosx_version_min has been renamed to -macos_version_min
ld: Undefined symbols:
  _main, referenced from:
      <initial-undefines>
collect2: error: ld returned 1 exit status
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % /usr/local/bin/mpicxx -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-literal-range -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual just_include_map.cxx -o JIM 
-macosx_version_min has been renamed to -macos_version_min
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % /usr/local/bin/mpicxx -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-literal-range -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing just_include_map.cxx -o JIM 
-macosx_version_min has been renamed to -macos_version_min
mkerr@igpp20grad7 tests % /usr/local/bin/mpicxx -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-literal-range -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -stdlib=libc++ just_include_map.cxx -o JIM
just_include_map.cxx:1:10: fatal error: map: No such file or directory
    1 | #include <map>
      | ^ ~~~~
compilation terminated.
mkerr@igpp20grad7 tests % /usr/local/bin/mpicxx -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-literal-range -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -Wuninitialized -Werror=uninitialized -Wdangling-else -g -MD -MT just_include_map.cxx -o JIM 
-macosx_version_min has been renamed to -macos_version_min
ld: Undefined symbols:
  _main, referenced from:
      <initial-undefines>
collect2: error: ld returned 1 exit status
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % 
mkerr@igpp20grad7 tests % /usr/local/bin/mpicxx -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-literal-range -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -stdlib=libc++ -Wuninitialized -Werror=uninitialized -Wdangling-else -g -MD -MT just_include_map.cxx -o JIM
-macosx_version_min has been renamed to -macos_version_min
ld: Undefined symbols:
  _main, referenced from:
      <initial-undefines>
collect2: error: ld returned 1 exit status
mkerr@igpp20grad7 tests % /usr/local/bin/mpicxx -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-literal-range -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -Wuninitialized just_include_map.cxx -o JIM 
-macosx_version_min has been renamed to -macos_version_min
mkerr@igpp20grad7 tests % /usr/local/bin/mpicxx -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-literal-range -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -Wuninitialized -Werror=uninitialized -Wdangling-else -g -MD -MT just_include_map.cxx -o JIM 
-macosx_version_min has been renamed to -macos_version_min
ld: Undefined symbols:
  _main, referenced from:
      <initial-undefines>
collect2: error: ld returned 1 exit status
mkerr@igpp20grad7 tests % /usr/local/bin/mpicxx -Wpointer-arith -Wwrite-strings -Wsynth -Wsign-compare -Woverloaded-virtual -Wno-literal-range -Wno-parentheses -Wno-unused-local-typedefs -Wcast-qual -fstrict-aliasing -Wuninitialized -Werror=uninitialized -Wdangling-else -g -MD just_include_map.cxx -o JIM 
-macosx_version_min has been renamed to -macos_version_min

```

Also I noticed these two flags “-std=gnu++14 -std=c++14” were using version 14 instead of 11 even though mpicxx version is gnu 11

---

<div class="post-metadata">

**Author:** ![mkerr](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mkerr](https://community.geodynamics.org/u/mkerr)\
**Post date:** [May 26, 2024, 1:09am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/36 "2024-05-26T01:09:27Z")

</div>

I was able to get the latest version of aspect to run on docker! whew. Then I did a little more digging to see how docker works when developing code that is in the docker container. I think I can make this work if I cant get the native installation in time. Thank you so much for your help!

---

<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:** [May 27, 2024, 2:40am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/37 "2024-05-27T02:40:15Z")

</div>

Good sleuthing! The issue with numbers is confusing, but harmless. The _version number of the compiler_ is 11, and you are requesting to use the C++14 standard. These two are independent.

As for `-stdlib=libc++`: This is interesting. There are basically only two big C++ compilers left in the field that can run on Mac and Linux, GCC and clang/LLVM. Both of these two projects have written versions of the C++ standard library that implement things such as the `<map>` header file that implements `std::map`. GCC has developed `libstdc++` and the clang/LLVM folks have developed `libc++`. Both compilers by default use their own library, but can also use the other compiler’s library. That’s what’s happening here: `mpicxx` is set up to use the GCC compiler with the `libc++` standard library. I believe that this kind of setup is not uncommon on Mac OS X.

What I _think_ is happening is that on your system, `libc++` is not installed in a way that allows for compiling programs. That is, the library `libc++.so` may be there (which every executable build with C++ needs), but the header files may not (which you’d need to _compile_ executables). I don’t know how to fix this, but perhaps with the description above you can find something on the internet that explains how to implement the missing parts of `libc++`…

Best  
W.

---

<div class="post-metadata">

**Author:** ![mkerr](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mkerr](https://community.geodynamics.org/u/mkerr)\
**Post date:** [May 27, 2024, 6:34am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/38 "2024-05-27T06:34:14Z")

</div>

> [@bangerth](#):
>
> I don’t know how to fix this, but perhaps with the description above you can find something on the internet that explains how to implement the missing parts of `libc++`

Thank you for thinking about this. I guess I’m confused why ASPECT 2.5 would be able to compile and run on my computer with the same environment/path everything. Is there something different about version 2.6 in terms of the way ASPECT interacts with libc++ or needing a specific version of the c++ standard library? Regardless, I have Docker working and can use version 2.6 in that way, so I might just call it here for now. Thank you again for your help, and I look forward to meeting you soon!

---

<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:** [May 27, 2024, 8:03pm UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/39 "2024-05-27T20:03:17Z")

</div>

@mkerr - A heads up regarding docker - after cloning my own aspect repo inside the ASPECT docker container, I kept running into an issue of loosing connectivity with the docker image when actually building aspect.

I turned off the unity build for WB and ASPECT in CMakeCache.txt, and now both build without issue.

No idea what the underlying issue is, but posting this just in case you or someone else run into the same issue…

---

<div class="post-metadata">

**Author:** ![mkerr](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mkerr](https://community.geodynamics.org/u/mkerr)\
**Post date:** [May 28, 2024, 12:02am UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/40 "2024-05-28T00:02:24Z")

</div>

@jbnaliboff

Thanks for the hint. I’m not still not able to compile 2.6 but I can still compile and run 2.5. When I went to edit the CMakeCache.txt file to turn off Unity build for Aspect and WB, and then when I ran make, it just reconfigured aspect again so I turned it off in CMakeList.txt in the main aspect directory. That didn’t work either. I’m going to try a build inside the aspect container later this evening and hopefully that works.

```auto
[0%] Building Fortran object world_builder/CMakeFiles/WorldBuilderDebug.dir/source/world_builder/wrapper_fortran.f90.o
[0%] Building CXX object world_builder/CMakeFiles/WorldBuilderDebug.dir/source/world_builder/coordinate_systems/cartesian.cc.o
In file included from /Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include/world_builder/coordinate_systems/interface.h:26,
                 from /Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include/world_builder/coordinate_systems/cartesian.h:23,
                 from /Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/source/world_builder/coordinate_systems/cartesian.cc:20:
/Users/mkerr/ASPECT_hackathon/code/aspect/contrib/world_builder/include/world_builder/parameters.h:23:10: fatal error:map: No such file or directory
   23 | #include <map>
      | ^ ~~~~
compilation terminated.
make[2]: *** [world_builder/CMakeFiles/WorldBuilderDebug.dir/source/world_builder/coordinate_systems/cartesian.cc.o] Error 1
make[1]: *** [world_builder/CMakeFiles/WorldBuilderDebug.dir/all] Error 2
make: *** [all] Error 2

```

---

<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:** [May 28, 2024, 3:09pm UTC](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466/41 "2024-05-28T15:09:31Z")

</div>

@mkerr I must admit that I have no idea where the `-stdlib=libc++` comes from and why that would be different between ASPECT 2.5 and 2.6 ☹ Maybe someone else has an idea?  
Best  
W.

[Previous page](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466.md?page=1)

[Next page](https://community.geodynamics.org/t/aspect-on-intel-macos-ventura-13-5-1-with-dealii-dmg-file-application/3466.md?page=3)
