Menu

#229 Can not find LAPACK library in non-root mode

release_4.3.x
accepted
None
1
2014-12-19
2013-07-26
Xiaobo Zhou
No

In the non-root mode, cmake complains that the library LAPACK can not be found, even if the external libraries have already been installed corrected. I found there is something wrong in the file 'itpp-4.3.1/cmake/Modules/FindLAPACK.cmake'.

On line 214, it is

set(_flags "gfortran;m")#needed by itpp-external

if we change it to

set(_flags "gfortran")#needed by itpp-external

then this problem can be solved.

Discussion

  • Bogdan Cristea

    Bogdan Cristea - 2013-07-26

    Please provide more details about your platform.

     
    • Xiaobo Zhou

      Xiaobo Zhou - 2013-07-27

      Hi Bogdan,

      I have tested on three different platforms, my laptop and two servers. The details for the three platforms are as follow:

      A. (Laptop) Linux version 2.6.38-8-generic (buildd@vernadsky) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu3) )

      B. (Server 1) Linux version 2.6.18-164.11.1.el5_lustre.1.8.2 (lbuild@x86-build-0) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46))

      C. (Server 2) Linux version 2.6.32.59-0.7-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) )

      There is no LAPACK, BLAS or FFTW libraries pre-installed on A, B, and C. The cmake version is 2.8.11.2. The installations are carried out with the following step:

      1. Compile and install the external libs as static libs:

      % cd $HOME/itpp-external-3.2.0
      % make distclean
      % ./configure --prefix=$HOME/it++external-3.2.0 --enable-static --disable-shared
      % make && make install

      1. Compile and install IT++ library as static library:

      % cd $HOME/itpp-4.3.1
      % mkdir build && cd build
      % $HOME/cmake-2.8.11.2-Linux-i386/bin/cmake .. -DCMAKE_INCLUDE_PATH=$HOME/it++external-3.2.0/include -DCMAKE_LIBRARY_PATH=$HOME/it++external-3.2.0/lib -DCMAKE_INSTALL_PREFIX=$HOME/it++4.3.1 -DBLA_STATIC=on -DITPP_SHARED_LIB=off
      % make && make install

      Step 1 is successful, but in Step 2, I got the warning message with cmake:

      CMake Warning at CMakeLists.txt:196 (message):
      LAPACK library not found.

      CMake Warning at CMakeLists.txt:204 (message):
      You can still compile IT++ but the functionality will be reduced.

      With the changes noted in FindLAPACK.cmake, this problem is solved on these three platforms.

      Of course, if there is LAPACK library installed before, this warning message will not appear.

      Thanks,
      Xiaobo

       

      Last edit: Xiaobo Zhou 2013-07-27
      • Yunhong Xu

        Yunhong Xu - 2015-08-26

        Sounds good. I edited it as you said, it worked, but I don't know whether other factors contibute to it.

         
  • Bogdan Cristea

    Bogdan Cristea - 2013-08-03

    Could you show the relevant part of your CMakeError.log file please ? I have checked on my system, openSUSE 12.3 and I didn't notice this behavior.

     
  • Bogdan Cristea

    Bogdan Cristea - 2013-09-15

    changes committed into master branch

     
  • Bogdan Cristea

    Bogdan Cristea - 2013-09-15
    • status: open --> accepted
     

Log in to post a comment.