# Issues compiling Aspect on TACC

**URL:** <https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401>\
**Category:** ASPECT\
**Created:** [August 20, 2020, 9:07pm UTC](https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401 "2020-08-20T21:07:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![eheilman](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/eheilman/32/459_2.png) [@eheilman](https://community.geodynamics.org/u/eheilman)\
**Post date:** [August 20, 2020, 9:07pm UTC](https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401/1 "2020-08-20T21:07:31Z")

</div>

I’m trying to compile the latest version of Aspect on TACC (Lonestar5) and am having issues with the compile not finishing. I have modules loaded for dealii 9.2, trilinos 12.18.1, p4est 2.2, and cmake 3.16.1. When I run ‘cmake …’ I get a warning about directories/libraries but it’s able to generate the build files. When I run ‘make’ it will fail. I’ve tried with unity build and precompiled headers, and without and the errors are different. Am I missing something?

 ![Screen Shot 2020-08-20 at 10.28.40 AM](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/1X/30c3b5003be465f6ea29807bb4edeefc97177976.png) ![Screen Shot 2020-08-20 at 10.26.30 AM](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/1X/382f3ffb367bcb15acff2eaaef01b2d717a96f43.png) ![Screen Shot 2020-08-20 at 4.00.17 PM](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/1X/0daeaa37afdc4a163a9041344aeb6d21eb7170d3.png)

---

<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:** [August 21, 2020, 4:40pm UTC](https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401/2 "2020-08-21T16:40:20Z")

</div>

Erin:  
The first error (missing typeinfo) is an internal compiler error. Try switching off the unity build and see whether that fixes the issue.

As for the other issue (the “daxpy\_” function): I have to admit that I don’t quite know what that refers to, and the screenshot seems to have cut something at the right margin. Regardless, I think you might have an easier time if you didn’t load the deal.II, trilinos, and p4est packages but instead built all of these from scratch using the ‘candi’ script that you can get from the deal.II download page.

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:** [August 21, 2020, 4:45pm UTC](https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401/3 "2020-08-21T16:45:48Z")

</div>

Also take a look at the ASPECT wiki for cluster instructions. For example, my guide for Frontera is probably pretty close to what you need: [https://github.com/geodynamics/aspect/wiki/Installation-on-Frontera](https://github.com/geodynamics/aspect/wiki/Installation-on-Frontera)  
John has guides for Stampede2 as well, that you can take a look at.

---

<div class="post-metadata">

**Author:** ![gassmoeller](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/gassmoeller/32/11_2.png) [@gassmoeller](https://community.geodynamics.org/u/gassmoeller)\
**Post date:** [August 27, 2020, 6:24pm UTC](https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401/4 "2020-08-27T18:24:48Z")

</div>

Hi Erin,  
I just wanted to check in if there is any progress on the issue. As you mentioned the first error should go away if you disable unity build, and compiling without unity build just takes longer, but is not different otherwise, so if this is resolved, we can look into it later, but it is not crucial.

The last screenshot you posted seems to be a problem when using some LAPACK functions inside source/particle/interpolator/bilinear\_least\_squares, but at the moment I am uncertain if this is a bug in deal.II or in the Intel compiler. Please test two solutions:

1. Please change the following line inside `source/particle/interpolator/bilinear_least_squares.cc`:

```auto
-#include <deal.II/lac/full_matrix.templates.h>

```

into:

```auto
+#include <deal.II/lac/lapack_full_matrix.h>

```

This seems like a bug to me, but I am not 100% sure it will fix your problem (but it may).

1. If you do not use particles in your models: Simply delete `include/aspect/particle/interpolator/bilinear_least_squares.h` and `source/particle/interpolator/bilinear_least_squares.cc`, rerun cmake and recompile. Seems like an extreme solution, but if you do not need the feature it is a good workaround.

Hope that helps, please let us know how it goes.  
Best,  
Rene

---

<div class="post-metadata">

**Author:** ![eheilman](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/eheilman/32/459_2.png) [@eheilman](https://community.geodynamics.org/u/eheilman)\
**Post date:** [August 27, 2020, 8:05pm UTC](https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401/5 "2020-08-27T20:05:22Z")

</div>

Hi Rene,  
I did that line replacement and compiled without unity build or precompiling headers and I was able to compile!

---

<div class="post-metadata">

**Author:** ![gassmoeller](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/gassmoeller/32/11_2.png) [@gassmoeller](https://community.geodynamics.org/u/gassmoeller)\
**Post date:** [August 27, 2020, 8:23pm UTC](https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401/6 "2020-08-27T20:23:33Z")

</div>

Awesome, that is good to know. @tjhei already merged my patch into the main aspect branch (see [https://github.com/geodynamics/aspect/pull/3824](https://github.com/geodynamics/aspect/pull/3824)), so any new development version should work out of the box.

Concerning the unity build: My guess is that the unity build fails because of the boost version that was used for building the deal.II module. In theory the version should be supported, but it is hard to tell, maybe exactly this version does not work with unity build and the intel compiler, there are two many different versions that could play a role. This may be complicated to figure out, are you good without the unity build for now?

---

<div class="post-metadata">

**Author:** ![eheilman](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/eheilman/32/459_2.png) [@eheilman](https://community.geodynamics.org/u/eheilman)\
**Post date:** [August 27, 2020, 8:26pm UTC](https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401/7 "2020-08-27T20:26:24Z")

</div>

Yes I’m fine using the unity build. I also told tech support for TACC and they said they would look into updating boost to work with the new dealii version Aspect requires. I should hear soonish about that.

---

<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:** [August 28, 2020, 2:41pm UTC](https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401/8 "2020-08-28T14:41:13Z")

</div>

deal.II also comes with a bundled version of boost that will work but you need deal.II to use the bundled version using DEAL\_II\_FORCE\_BUNDLED\_BOOST=ON.

---

<div class="post-metadata">

**Author:** ![class4kayaker](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/class4kayaker/32/480_2.png) [@class4kayaker](https://community.geodynamics.org/u/class4kayaker)\
**Post date:** [September 2, 2020, 8:19pm UTC](https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401/9 "2020-09-02T20:19:02Z")

</div>

I have also been having issues with compiling on TACC Stampede2. In my case, I have been trying to get the latest Deal.II version to compile using the instructions on the github wiki, and am getting the following error.

```auto
$WORK/software/candi-install/tmp/unpack/deal.II-v9.2.0/examples/step-67/step-67.cc: In lambda function:
$WORK/software/candi-install/tmp/unpack/deal.II-v9.2.0/examples/step-67/step-67.cc:1516:9: sorry, unimplemented: unexpected AST of kind omp_simd
         });
         ^
$WORK/software/candi-install/tmp/unpack/deal.II-v9.2.0/examples/step-67/step-67.cc:1516: confused by earlier errors, bailing out
make[2]: *** [examples/CMakeFiles/step-67.debug.dir/step-67/step-67.cc.o] Error 1
make[1]: *** [examples/CMakeFiles/step-67.debug.dir/all] Error 2

```

Thank you for your help.

---

<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 2, 2020, 8:32pm UTC](https://community.geodynamics.org/t/issues-compiling-aspect-on-tacc/1401/10 "2020-09-02T20:32:22Z")

</div>

Yes, I have seen that as well. We keep track of the issue here: [https://github.com/dealii/dealii/issues/10823](https://github.com/dealii/dealii/issues/10823)

For you, you can just disable compiling the examples using `-D DEAL_II_COMPONENT_EXAMPLES=OFF`
