MantisBT - CMake
View Issue Details
0014320CMakeModulespublic2013-07-30 03:412016-06-10 14:31
ycollet 
Kitware Robot 
normalminoralways
closedmoved 
Intel 64 bitsLinuxLinux Mint
CMake 2.8.9 
 
0014320: FindLAPACK doesn't work if BLA_STATIC is set to ON
FindLAPACK doesn't work if BLA_STATIC is set to ON.
Start the attached CMakefiles.txt and change the line

set(BLA_STATIC OFF)

to ON.
No tags attached.
related to 0012912closed tgallagher FindLAPACK does not work when trying static linking 
txt CMakeLists.txt (521) 2013-07-30 03:41
https://public.kitware.com/Bug/file/4829/CMakeLists.txt
Issue History
2013-07-30 03:41ycolletNew Issue
2013-07-30 03:41ycolletFile Added: CMakeLists.txt
2013-07-30 09:09Brad KingRelationship addedrelated to 0012912
2013-07-30 09:12Brad KingNote Added: 0033629
2013-07-30 09:12Brad KingStatusnew => backlog
2013-07-30 09:13Brad KingNote Added: 0033630
2016-06-10 14:29Kitware RobotNote Added: 0042330
2016-06-10 14:29Kitware RobotStatusbacklog => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0033629)
Brad King   
2013-07-30 09:12   
The CMake output in this case contains:

 -- Looking for Fortran cheev - not found

and the corresponding verbose information in CMakeFiles/CMakeError.log report that Fortran runtime symbols were not found at link time.

FindLAPACK tests the found libraries for usability before reporting success. When not using Fortran the static lapack/blas libraries cannot be used without manually bringing in the Fortran runtime libraries.
(0033630)
Brad King   
2013-07-30 09:13   
If I change the sample project to enable Fortran:

 project(test_lapack_blas Fortran C)

then I still get

 -- Looking for Fortran cheev - not found

but this time CMakeFiles/CMakeError.log contains

 /usr/lib/libblas.a(xerbla.o): In function `xerbla_': (.text+0x0): multiple definition of `xerbla_'
 /usr/lib/liblapack.a(xerbla.o):(.text+0x0): first defined here

which is the issue reported in 0012912.
(0042330)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.