# I can't use candi to compile deal.ii-9.3. Here are the error messages

**URL:** https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961
**Category:** ASPECT
**Tags:** installation
**Created:** [August 24, 2021, 6:03pm UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961 "2021-08-24T18:03:09Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![egpuckett](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/egpuckett/32/123_2.png) [@egpuckett](https://community.geodynamics.org/u/egpuckett)
#### Post date: [August 24, 2021, 6:03pm UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/1 "2021-08-24T18:03:09Z")

</div>

Here are the last few lines from the output of

./candi.sh -p /home/egpuckett/WORKSPACE/deal.ii-9.3.0 -j4

```
      FC arch-linux2-c-opt/obj/tao/f90-mod/petsctaomod.o
 CLINKER arch-linux2-c-opt/lib/libpetsc.so.3.13.1

```

# Now to install the libraries do: make PETSC\_DIR=/home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/build/petsc-lite-3.13.1 PETSC\_ARCH=arch-linux2-c-opt install

Fetching slepc 3.13.2  
Trying to download [https://tjhei.info/candi-mirror/slepc-3.13.2.tar.gz](https://tjhei.info/candi-mirror/slepc-3.13.2.tar.gz)  
 Total Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
100 343 100 343 0 0 968 0 --:–:-- --:–:-- --:–:-- 966  
100 4689k 100 4689k 0 0 2918k 0 0:00:01 0:00:01 --:–:-- 11.6M  
Verifying slepc-3.13.2.tar.gz  
slepc-3.13.2.tar.gz: OK(md5)  
Unpacking slepc-3.13.2.tar.gz  
Building slepc 3.13.2  
Checking environment… done  
Checking PETSc installation…  
ERROR: Unable to link with PETSc  
ERROR: See “installed-arch-linux2-c-opt/lib/slepc/conf/configure.log” file for details  
Failure with exit status: 1  
Exit message: slepc ./configure failed

Here are the contents of

```
      FC arch-linux2-c-opt/obj/tao/f90-mod/petsctaomod.o
 CLINKER arch-linux2-c-opt/lib/libpetsc.so.3.13.1

```

# Now to install the libraries do: make PETSC\_DIR=/home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/build/petsc-lite-3.13.1 PETSC\_ARCH=arch-linux2-c-opt install

Fetching slepc 3.13.2  
Trying to download [https://tjhei.info/candi-mirror/slepc-3.13.2.tar.gz](https://tjhei.info/candi-mirror/slepc-3.13.2.tar.gz)  
 Total Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
100 343 100 343 0 0 968 0 --:–:-- --:–:-- --:–:-- 966  
100 4689k 100 4689k 0 0 2918k 0 0:00:01 0:00:01 --:–:-- 11.6M  
Verifying slepc-3.13.2.tar.gz  
slepc-3.13.2.tar.gz: OK(md5)  
Unpacking slepc-3.13.2.tar.gz  
Building slepc 3.13.2  
Checking environment… done  
Checking PETSc installation…  
ERROR: Unable to link with PETSc  
ERROR: See “installed-arch-linux2-c-opt/lib/slepc/conf/configure.log” file for details  
Failure with exit status: 1  
Exit message: slepc ./configure failed

I’m using standard Ubuntu 20.04 that is updated.

I’ve never had trouble using candi to install deal.ii before. I’ve tried everything I can think of. Thanks

---

<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: [August 24, 2021, 8:55pm UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/2 "2021-08-24T20:55:28Z")

</div>

Hi Gerry,

Thanks for posting to the forum.

There is no need to install PETSc with candi, as its use in ASPECT is now explicitly disabled.

In the candi.cfg file, you can normally comment out all packages (i.e., this means they won’t be built) except for Trilinos, p4est, and dealii. Other packages you might want to build, depending on what is already installed on your system, are hdf5 and openblas.

Cheers,  
John

---

<div class="post-metadata">

### Author: ![egpuckett](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/egpuckett/32/123_2.png) [@egpuckett](https://community.geodynamics.org/u/egpuckett)
#### Post date: [August 24, 2021, 11:23pm UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/3 "2021-08-24T23:23:14Z")

</div>

Hi John,

I get an error which says it can build Trilinos when I comment out everything but Trilinos, p4est, and dealii.

I’m starting the error messages at the beginning of the TPL part so you can see what the compiler finds and what it doesn’t:

Processing enabled TPL: MPI (enabled explicitly, disable with -DTPL\_ENABLE\_MPI=OFF)  
Processing enabled TPL: BLAS (enabled by TeuchosNumerics, disable with -DTPL\_ENABLE\_BLAS=OFF)  
– BLAS\_LIBRARY\_NAMES=‘blas blas\_win32’  
– Searching for libs in BLAS\_LIBRARY\_DIRS=’’  
– Searching for a lib in the set “blas blas\_win32”:  
– Searching for lib ‘blas’ …  
– Found lib ‘/usr/lib/x86\_64-linux-gnu/libblas.so’  
– TPL\_BLAS\_LIBRARIES=’/usr/lib/x86\_64-linux-gnu/libblas.so’  
Processing enabled TPL: LAPACK (enabled by TeuchosNumerics, disable with -DTPL\_ENABLE\_LAPACK=OFF)  
– LAPACK\_LIBRARY\_NAMES=‘lapack lapack\_win32’  
– Searching for libs in LAPACK\_LIBRARY\_DIRS=’’  
– Searching for a lib in the set “lapack lapack\_win32”:  
– Searching for lib ‘lapack’ …  
– Found lib ‘/usr/lib/x86\_64-linux-gnu/liblapack.so’  
– TPL\_LAPACK\_LIBRARIES=’/usr/lib/x86\_64-linux-gnu/liblapack.so’  
Processing enabled TPL: ParMETIS (enabled explicitly, disable with -DTPL\_ENABLE\_ParMETIS=OFF)  
– ParMETIS\_LIBRARY\_NAMES=‘parmetis;metis’  
– TPL\_ParMETIS\_LIBRARIES=’/home/egpuckett/WORKSPACE/deal.ii-9.3.0/parmetis-4.0.3/lib/libparmetis.so;/home/egpuckett/WORKSPACE/deal.ii-9.3.0/parmetis-4.0.3/lib/libmetis.so’  
– TPL\_ParMETIS\_INCLUDE\_DIRS=’/home/egpuckett/WORKSPACE/deal.ii-9.3.0/parmetis-4.0.3/include’  
– Performing Test HAVE\_PARMETIS\_VERSION\_4\_0\_3  
– Performing Test HAVE\_PARMETIS\_VERSION\_4\_0\_3 - Failed  
Processing enabled TPL: SCALAPACK (enabled explicitly, disable with -DTPL\_ENABLE\_SCALAPACK=OFF)  
– SCALAPACK\_LIBRARY\_NAMES=‘scalapack;blacs;blacsF77;blacs’  
– Searching for libs in SCALAPACK\_LIBRARY\_DIRS=’/home/egpuckett/WORKSPACE/deal.ii-9.3.0/petsc-3.13.1/lib’  
– Searching for a lib in the set “scalapack”:  
– Searching for lib ‘scalapack’ …  
– NOTE: Did not find a lib in the lib set “scalapack” for the TPL ‘SCALAPACK’!  
– ERROR: Could not find the libraries for the TPL ‘SCALAPACK’!  
– TIP: If the TPL ‘SCALAPACK’ is on your system then you can set:  
-DSCALAPACK\_LIBRARY\_DIRS=’;;…’  
to point to the directories where these libraries may be found.  
Or, just set:  
-DTPL\_SCALAPACK\_LIBRARIES=’;;…’  
to point to the full paths for the libraries which will  
bypass any search for libraries and these libraries will be used without  
question in the build. (But this will result in a build-time error  
if not all of the necessary symbols are found.)  
– ERROR: Failed finding all of the parts of TPL ‘SCALAPACK’ (see above), Aborting!

– NOTE: The find module file for this failed TPL ‘SCALAPACK’ is:  
/home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/unpack/Trilinos-trilinos-release-12-18-1/cmake/TPLs/FindTPLSCALAPACK.cmake  
which is pointed to in the file:  
/home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/unpack/Trilinos-trilinos-release-12-18-1/TPLsList.cmake

TIP: Even though the TPL ‘SCALAPACK’ was explicitly enabled in input,  
it can be disabled with:  
-DTPL\_ENABLE\_SCALAPACK=OFF  
which will disable it and will recursively disable all of the  
downstream packages that have required dependencies on it.  
When you reconfigure, just grep the cmake stdout for ‘SCALAPACK’  
and then follow the disables that occur as a result to see what impact  
this TPL disable has on the configuration of Trilinos.

CMake Error at cmake/tribits/core/package\_arch/TribitsProcessEnabledTpl.cmake:144 (MESSAGE):  
ERROR: TPL\_SCALAPACK\_NOT\_FOUND=TRUE, aborting!  
Call Stack (most recent call first):  
cmake/tribits/core/package\_arch/TribitsGlobalMacros.cmake:1821 (TRIBITS\_PROCESS\_ENABLED\_TPL)  
cmake/tribits/core/package\_arch/TribitsProjectImpl.cmake:206 (TRIBITS\_PROCESS\_ENABLED\_TPLS)  
cmake/tribits/core/package\_arch/TribitsProject.cmake:93 (TRIBITS\_PROJECT\_IMPL)  
CMakeLists.txt:90 (TRIBITS\_PROJECT)

– Configuring incomplete, errors occurred!  
See also “/home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/build/trilinos-release-12-18-1/CMakeFiles/CMakeOutput.log”.  
See also “/home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/build/trilinos-release-12-18-1/CMakeFiles/CMakeError.log”.  
Failure with exit status: 1  
Exit message: There was a problem configuring trilinos 12-18-1.

Thanks!

- Gerry

---

<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: [August 24, 2021, 11:44pm UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/4 "2021-08-24T23:44:16Z")

</div>

Hi Gerry,

It looks like scalapack (and maybe other related libraries) are not installed on the machine.

The instructions in the manual are to install the following packages on Ubuntu:

```auto
sudo apt-get install build-essential \
                     cmake \
                     gcc \
                     g++ \
                     gfortran \
                     git \
                     libblas-dev \
                     liblapack-dev \
                     libopenmpi-dev \
                     numdiff \
                     openmpi-bin \
                     zlib1g-dev

```

Have libblas-dev and liblapack-dev been installed on your computer? These instructions were for Ubuntu 14, so we may need to update to include things like scalapack. See the following link for scalapack libraries to install, depending on the version of MPI on your machine:  
[https://packages.ubuntu.com/source/bionic/scalapack](https://packages.ubuntu.com/source/bionic/scalapack)

I have built deal.II on ubuntu 20.04 with candi, but don’t recall the details of what I installed.

As an alternative, you can have candi install openblas (uncomment that package in candi.cfg) and see if that is sufficient to configure and build Trilinos.

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: [August 24, 2021, 11:57pm UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/5 "2021-08-24T23:57:34Z")

</div>

Hi Gerry,  
I might have broken the latest Candi version with a recent change. Can you please do

```auto
git remote update
git checkout v9.3.1-r1

```

and try again?

---

<div class="post-metadata">

### Author: ![egpuckett](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/egpuckett/32/123_2.png) [@egpuckett](https://community.geodynamics.org/u/egpuckett)
#### Post date: [August 25, 2021, 12:04am UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/6 "2021-08-25T00:04:34Z")

</div>

> [@tjhei](#):
>
> `git remote update`

Yup! Starting now … Thanks!

---

<div class="post-metadata">

### Author: ![egpuckett](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/egpuckett/32/123_2.png) [@egpuckett](https://community.geodynamics.org/u/egpuckett)
#### Post date: [August 25, 2021, 12:12am UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/7 "2021-08-25T00:12:52Z")

</div>

> [@tjhei](#):
>
> `git checkout v9.3.1-r1`

Hi Timo,

I still get a failure to build Trilinos … Do you want to see more of the errors. (BTW I’m in a detached HEAD state after git checkout v9.3.1-r1) but I assume that that doesn’t matter

TIP: Even though the TPL ‘SCALAPACK’ was explicitly enabled in input,  
it can be disabled with:  
-DTPL\_ENABLE\_SCALAPACK=OFF  
which will disable it and will recursively disable all of the  
downstream packages that have required dependencies on it.  
When you reconfigure, just grep the cmake stdout for ‘SCALAPACK’  
and then follow the disables that occur as a result to see what impact  
this TPL disable has on the configuration of Trilinos.

CMake Error at cmake/tribits/core/package\_arch/TribitsProcessEnabledTpl.cmake:144 (MESSAGE):  
ERROR: TPL\_SCALAPACK\_NOT\_FOUND=TRUE, aborting!  
Call Stack (most recent call first):  
cmake/tribits/core/package\_arch/TribitsGlobalMacros.cmake:1821 (TRIBITS\_PROCESS\_ENABLED\_TPL)  
cmake/tribits/core/package\_arch/TribitsProjectImpl.cmake:206 (TRIBITS\_PROCESS\_ENABLED\_TPLS)  
cmake/tribits/core/package\_arch/TribitsProject.cmake:93 (TRIBITS\_PROJECT\_IMPL)  
CMakeLists.txt:90 (TRIBITS\_PROJECT)

– Configuring incomplete, errors occurred!  
See also “/home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/build/trilinos-release-12-18-1/CMakeFiles/CMakeOutput.log”.  
Failure with exit status: 1  
Exit message: There was a problem configuring trilinos 12-18-1.

---

<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 25, 2021, 12:27am UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/8 "2021-08-25T00:27:56Z")

</div>

Can you please remove /home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/ and try again? This looks like a leftover from earlier.

---

<div class="post-metadata">

### Author: ![egpuckett](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/egpuckett/32/123_2.png) [@egpuckett](https://community.geodynamics.org/u/egpuckett)
#### Post date: [August 25, 2021, 12:28am UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/9 "2021-08-25T00:28:32Z")

</div>

> [@tjhei](#):
>
> /home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/ and try again?

Yup …

---

<div class="post-metadata">

### Author: ![egpuckett](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/egpuckett/32/123_2.png) [@egpuckett](https://community.geodynamics.org/u/egpuckett)
#### Post date: [August 25, 2021, 12:34am UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/10 "2021-08-25T00:34:31Z")

</div>

Nope … How much of the output do you want? Suppose I blow away deal.ii.9.3.0 or even candi and start over?

Short list of error messages

> – Configuring incomplete, errors occurred!  
> See also “/home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/build/trilinos-release-12-18-1/CMakeFiles/CMakeOutput.log”.  
> See also “/home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/build/trilinos-release-12-18-1/CMakeFiles/CMakeError.log”.  
> Failure with exit status: 1  
> Exit message: There was a problem configuring trilinos 12-18-1.

---

<div class="post-metadata">

### Author: ![egpuckett](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/egpuckett/32/123_2.png) [@egpuckett](https://community.geodynamics.org/u/egpuckett)
#### Post date: [August 25, 2021, 12:45am UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/11 "2021-08-25T00:45:59Z")

</div>

> [@tjhei](#):
>
> /home/egpuckett/WORKSPACE/deal.ii-9.3.0/tmp/ and try again?

Timo,

What do you think of the following advice? Do you know what the instructions for using “apt …” would be for 20.04. Also shouldn’t we update the manual?

Thanks!

- G

> It looks like scalapack (and maybe other related libraries) are not installed on the machine.

The instructions in the manual are to install the following packages on Ubuntu:

```auto
sudo apt-get install build-essential \
                     cmake \
                     gcc \
                     g++ \
                     gfortran \
                     git \
                     libblas-dev \
                     liblapack-dev \
                     libopenmpi-dev \
                     numdiff \
                     openmpi-bin \
                     zlib1g-dev

```

Have libblas-dev and liblapack-dev been installed on your computer? These instructions were for Ubuntu 14, so we may need to update to include things like scalapack. See the following link for scalapack libraries to install, depending on the version of MPI on your machine:  
[https://packages.ubuntu.com/source/bionic/scalapack](https://packages.ubuntu.com/source/bionic/scalapack)

---

<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 25, 2021, 2:05am UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/12 "2021-08-25T02:05:34Z")

</div>

Hi Gerry,

We just switched to requiring 9.3 so the instructions, manual, Candi, etc. likely still need work. I will spend some time on that soon.

Until then, it might be easiest for you to use the Ubuntu packages as you are on 20.04:

> **[Getting deal.II · dealii/dealii Wiki](https://github.com/dealii/dealii/wiki/Getting-deal.II#linux-packages)**
>
> The development repository for the deal.II finite element library. - Getting deal.II · dealii/dealii Wiki

Let us know if that works for you.

---

<div class="post-metadata">

### Author: ![egpuckett](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/egpuckett/32/123_2.png) [@egpuckett](https://community.geodynamics.org/u/egpuckett)
#### Post date: [August 25, 2021, 2:07am UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/13 "2021-08-25T02:07:12Z")

</div>

Are you saying ‘don’t use candi’?

---

<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 25, 2021, 3:18pm UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/14 "2021-08-25T15:18:56Z")

</div>

Correct.

---

<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 1, 2021, 4:47pm UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/15 "2021-09-01T16:47:37Z")

</div>

Hi all,

Gerry - I just build deal.II 9.3.1 via candi on a desktop with Ubuntu 20.04 freshly installed.

Prior to the installation, I installed all of the recommended ubuntu libraries in the manual and then also installed all of the additional recommended libraries that appear at the beginning of the candi installation process … e.g., I aborted the candi installation, installed additional packages, and then restarted the candi process.

No issues during the installation (HDF5, p4est, Trilinos, deal.II). Can you try installing all of the packages recommended by candi and then trying candi again?

John

---

<div class="post-metadata">

### Author: ![egpuckett](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/egpuckett/32/123_2.png) [@egpuckett](https://community.geodynamics.org/u/egpuckett)
#### Post date: [September 2, 2021, 12:18am UTC](https://community.geodynamics.org/t/i-cant-use-candi-to-compile-deal-ii-9-3-here-are-the-error-messages/1961/16 "2021-09-02T00:18:16Z")

</div>

Hi John,

Could you please send me or post the candi.cfg file that worked here and point me at the part of the manual that lists all of the recommended Ubuntu libraries?

Thanks!

- Gerry
