Error installing with Candi

185 views
Skip to first unread message

David Ryan

unread,
Oct 11, 2019, 10:34:22 PM10/11/19
to deal.II User Group
Hello,

I'm trying to get deal.ii installed using candi on my Mac running macOS Mojave.

Everything seems to work up till the deal.ii compiling where it tells me that it can't find the lapack libraries.
I've tried installing lapack through brew and from the website, but the installations can't seem to find the lapack libraries.

Is there anybody who has had this problem or knows how to resolve it?

===

The error that I get is as follows:

Include /Users/davidryan/deal.ii-candi/tmp/unpack/deal.II-v9.1.1/cmake/configure/configure_1_lapack.cmake

-- A library with LAPACK API found.

-- Performing Test mpi_usempif08_LIBRARY

-- Performing Test mpi_usempif08_LIBRARY - Success

-- Performing Test mpi_usempi_ignore_tkr_LIBRARY

-- Performing Test mpi_usempi_ignore_tkr_LIBRARY - Success

-- Performing Test mpi_mpifh_LIBRARY

-- Performing Test mpi_mpifh_LIBRARY - Success

-- Performing Test mpi_LIBRARY

-- Performing Test mpi_LIBRARY - Success

-- Performing Test gfortran_LIBRARY

-- Performing Test gfortran_LIBRARY - Failed

-- Performing Test gcc_ext.10.5_LIBRARY

-- Performing Test gcc_ext.10.5_LIBRARY - Failed

-- Performing Test gcc_LIBRARY

-- Performing Test gcc_LIBRARY - Failed

-- Performing Test quadmath_LIBRARY

-- Performing Test quadmath_LIBRARY - Failed

-- Performing Test m_LIBRARY

-- Performing Test m_LIBRARY - Success

--   LAPACK_LIBRARIES: *** Required variable "_lapack_libraries" empty ***

--   LAPACK_LINKER_FLAGS: 

--   LAPACK_INCLUDE_DIRS: 

--   LAPACK_USER_INCLUDE_DIRS: 

-- Could NOT find LAPACK

-- DEAL_II_WITH_LAPACK has unmet external dependencies.

CMake Error at cmake/macros/macro_configure_feature.cmake:112 (MESSAGE):

  


  Could not find the lapack library!


  Please ensure that a suitable lapack library is installed on your computer.


  If the library is not at a default location, either provide some hints for

  autodetection,


      $ LAPACK_DIR="..." cmake <...>

      $ cmake -DLAPACK_DIR="..." <...>


  or set the relevant variables by hand in ccmake.


Call Stack (most recent call first):

  cmake/macros/macro_configure_feature.cmake:269 (FEATURE_ERROR_MESSAGE)

  cmake/configure/configure_1_lapack.cmake:116 (CONFIGURE_FEATURE)

  cmake/macros/macro_verbose_include.cmake:19 (INCLUDE)

  CMakeLists.txt:124 (VERBOSE_INCLUDE)



-- Configuring incomplete, errors occurred!

See also "/Users/davidryan/deal.ii-candi/tmp/build/deal.II-v9.1.1/CMakeFiles/CMakeOutput.log".

See also "/Users/davidryan/deal.ii-candi/tmp/build/deal.II-v9.1.1/CMakeFiles/CMakeError.log".

Failure with exit status: 1

Exit message: There was a problem configuring dealii v9.1.1.

Wolfgang Bangerth

unread,
Oct 12, 2019, 9:37:59 AM10/12/19
to dea...@googlegroups.com
On 10/11/19 8:34 PM, David Ryan wrote:
>
> Everything seems to work up till the deal.ii compiling where it tells me that
> it can't find the lapack libraries.
> I've tried installing lapack through brew and from the website, but the
> installations can't seem to find the lapack libraries.
>
> Is there anybody who has had this problem or knows how to resolve it?

In your candi installation file, does it say DEAL_II_WITH_LAPACK=ON? Can you
set it to =OFF?

Best
W.


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Marc Fehling

unread,
Oct 14, 2019, 9:48:37 AM10/14/19
to deal.II User Group
Hi David!


On Saturday, October 12, 2019 at 4:34:22 AM UTC+2, David Ryan wrote:
I'm trying to get deal.ii installed using candi on my Mac running macOS Mojave.

Everything seems to work up till the deal.ii compiling where it tells me that it can't find the lapack libraries.
I've tried installing lapack through brew and from the website, but the installations can't seem to find the lapack libraries.
 
Can you verify where brew installed your lapack library? I'm not familiar with macOS, but at least you can query which files have been installed by a package via linux repository managers. I assume you can do something similar with brew as well.

--   LAPACK_LIBRARIES: *** Required variable "_lapack_libraries" empty ***


I assume the "_lapack_libraries" variable should have been set by candi at some stage?
 

  Could not find the lapack library!


  Please ensure that a suitable lapack library is installed on your computer.


  If the library is not at a default location, either provide some hints for

  autodetection,


      $ LAPACK_DIR="..." cmake <...>

      $ cmake -DLAPACK_DIR="..." <...>


  or set the relevant variables by hand in ccmake.

 
I'm not using candi either, but maybe there is a way to tell candi where lapack is installed. Probably in a similar way as Wolfgang proposed.

Hope this helps...

Marc

David Ryan

unread,
Oct 14, 2019, 1:55:56 PM10/14/19
to deal.II User Group
Hi Marc,

Brew installs Lapack into /usr/local/Cellar/lapack/3.8.0_2.

If tried adding either the LAPCK_DIR, or the -DLAPACK_DIR to the deal_confopts, that didn't work though,

#Choose configuration and components of deal.II
DEAL_CONFOPTS="-DLAPACK_DIR=/usr/local/Cellar/lapack/3.8.0_2"

I tried adding it lower in the cfg file which also didn't work.

# Do you want to use MKL?
MKL=OFF
# MKL_DIR=
# BLAS_DIR=
# LAPACK_DIR=

Thank you for your input. I really appreciate it.

Bye!

David

David Ryan

unread,
Oct 14, 2019, 4:08:09 PM10/14/19
to deal.II User Group
Line 676 of the Candi.sh lets you skip packages.

This didn't help for me. I deleted cake and reinstalled it through brew and that fixed the problem for me.

However, Now I've run into another problem. Would anybody know why it's giving me this error?

Include /Users/davidryan/deal.ii-candi/tmp/unpack/deal.II-v9.1.1/cmake/setup_finalize.cmake

CMake Error at cmake/setup_finalize.cmake:137 (MESSAGE):

  


    Configuration error: Cannot compile a test program with the final set of

    compiler and linker flags:

      CXX flags (DEBUG): -pedantic -fPIC -Wall -Wextra -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wswitch -Wsynth -Wwrite-strings -Wno-deprecated-declarations -Wfloat-conversion -Qunused-arguments -Wno-unsupported-friend -Wno-undefined-var-template -openmp-simd -std=c++17 -std=c++17 -ftemplate-depth=1024 -Wno-unused-local-typedefs -Og -ggdb -Wa,--compress-debug-sections

      LD flags  (DEBUG): -lgfortran /usr/lib/libm.dylib -ggdb

      LIBRARIES (DEBUG): LOTS OF .DYLIB FILES

Uwe Köcher

unread,
Oct 15, 2019, 4:12:27 AM10/15/19
to deal.II User Group
Dear David,

sorry, macOS Mojave (and further Catalina) do not have candi support - there is something strange happening
in the recent past with the base compilers and homebrew installed mpi compilers.

(I had a similar problem as you reported)

Currently I recommend to install the deal.II toolchain in a virtual linux environment under macOS.

Best
  Uwe


On Monday, 14 October 2019 22:08:09 UTC+2, David Ryan wrote:
Line 676 of the Candi.sh lets you skip packages.

Indeed, but one should not go directly there, use "skip:" in front of a package
in the configuration file to simply touch it.

David Ryan

unread,
Oct 15, 2019, 11:12:14 AM10/15/19
to dea...@googlegroups.com
Hi,

That's unfortunate.

Thank you for the reply

Bye!

David

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/6d5b807a-afcc-48b6-8e59-54f87a7d4f82%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages