View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014320CMakeModulespublic2013-07-30 03:412016-06-10 14:31
Reporterycollet 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformIntel 64 bitsOSLinuxOS VersionLinux Mint
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0014320: FindLAPACK doesn't work if BLA_STATIC is set to ON
DescriptionFindLAPACK doesn't work if BLA_STATIC is set to ON.
Steps To ReproduceStart the attached CMakefiles.txt and change the line

set(BLA_STATIC OFF)

to ON.
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (521 bytes) 2013-07-30 03:41 [Show Content]

 Relationships
related to 0012912closedtgallagher FindLAPACK does not work when trying static linking 

  Notes
(0033629)
Brad King (manager)
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 (manager)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2013-07-30 03:41 ycollet New Issue
2013-07-30 03:41 ycollet File Added: CMakeLists.txt
2013-07-30 09:09 Brad King Relationship added related to 0012912
2013-07-30 09:12 Brad King Note Added: 0033629
2013-07-30 09:12 Brad King Status new => backlog
2013-07-30 09:13 Brad King Note Added: 0033630
2016-06-10 14:29 Kitware Robot Note Added: 0042330
2016-06-10 14:29 Kitware Robot Status backlog => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team