[CMake] False.lib error while linking

AMARNATH, Balachandar BALACHANDAR.AMARNATH at airbus.com
Wed Jun 1 06:11:20 EDT 2011


Dear Bill,

When i did cmake --trace, I could see at some places BLAS_LIBRARIES are set to FALSE. Particularly, here in below lines
*******************************
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(322):  if(WIN32 )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(323):  if(BLA_F95 )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(335):  if(NOT BLAS_LIBRARIES )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(336):  check_fortran_libraries(BLAS_LIBRARIES BLAS SGEMM  mkl_c_dll;mkl_intel_thread_dll;mkl_core_dll;libguide40  )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(61):  set(_libraries_work TRUE )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(62):  set(BLAS_LIBRARIES )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(63):  set(_combined_name )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(64):  foreach(_library mkl_c_dll;mkl_intel_thread_dll;mkl_core_dll;libguide40 )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(65):  set(_combined_name ${_combined_name}_${_library} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(67):  if(_libraries_work )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(68):  if(WIN32 )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(69):  if(BLA_STATIC )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(72):  find_library(BLAS_${_library}_LIBRARY NAMES ${_library} PATHS ENV LIB )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(78):  if(APPLE )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(88):  if(BLA_STATIC )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(91):  find_library(BLAS_${_library}_LIBRARY NAMES ${_library} PATHS /usr/local/lib /usr/lib /usr/local/lib64 /usr/lib64 ENV LD_LIBRARY_PATH )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(96):  mark_as_advanced(BLAS_${_library}_LIBRARY )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(97):  set(BLAS_LIBRARIES ${BLAS_LIBRARIES} ${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(98):  set(_libraries_work ${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(65):  set(_combined_name ${_combined_name}_${_library} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(67):  if(_libraries_work )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(68):  if(WIN32 )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(69):  if(BLA_STATIC )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(72):  find_library(BLAS_${_library}_LIBRARY NAMES ${_library} PATHS ENV LIB )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(78):  if(APPLE )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(88):  if(BLA_STATIC )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(91):  find_library(BLAS_${_library}_LIBRARY NAMES ${_library} PATHS /usr/local/lib /usr/lib /usr/local/lib64 /usr/lib64 ENV LD_LIBRARY_PATH )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(96):  mark_as_advanced(BLAS_${_library}_LIBRARY )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(97):  set(BLAS_LIBRARIES ${BLAS_LIBRARIES} ${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(98):  set(_libraries_work ${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(65):  set(_combined_name ${_combined_name}_${_library} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(67):  if(_libraries_work )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(68):  if(WIN32 )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(69):  if(BLA_STATIC )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(72):  find_library(BLAS_${_library}_LIBRARY NAMES ${_library} PATHS ENV LIB )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(78):  if(APPLE )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(88):  if(BLA_STATIC )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(91):  find_library(BLAS_${_library}_LIBRARY NAMES ${_library} PATHS /usr/local/lib /usr/lib /usr/local/lib64 /usr/lib64 ENV LD_LIBRARY_PATH )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(96):  mark_as_advanced(BLAS_${_library}_LIBRARY )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(97):  set(BLAS_LIBRARIES ${BLAS_LIBRARIES} ${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(98):  set(_libraries_work ${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(65):  set(_combined_name ${_combined_name}_${_library} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(67):  if(_libraries_work )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(68):  if(WIN32 )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(69):  if(BLA_STATIC )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(72):  find_library(BLAS_${_library}_LIBRARY NAMES ${_library} PATHS ENV LIB )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(78):  if(APPLE )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(88):  if(BLA_STATIC )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(91):  find_library(BLAS_${_library}_LIBRARY NAMES ${_library} PATHS /usr/local/lib /usr/lib /usr/local/lib64 /usr/lib64 ENV LD_LIBRARY_PATH )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(96):  mark_as_advanced(BLAS_${_library}_LIBRARY )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(97):  set(BLAS_LIBRARIES ${BLAS_LIBRARIES} ${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(98):  set(_libraries_work ${BLAS_${_library}_LIBRARY} )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(101):  if(_libraries_work )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(114):  if(NOT _libraries_work )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(115):  set(BLAS_LIBRARIES FALSE )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(401):  if(NOT BLAS_LIBRARIES )
c:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/FindBLAS.cmake(402):  check_fortran_libraries(BLAS_LIBRARIES BLAS sgemm  mkl;guide ${CMAKE_THREAD_LIBS_INIT};${LM} )

**********************************************************

 This, I believe, due to missing of libguide40 library which is required by FindBLAS.cmake module. Because of this, LAPACK_LIBRARIES are also set to FALSE. They are linked to 'mpf' library through target_link_libraries(${LAPACK_LIBRARIES} ${BLAS_LIBRARIES} ...). By the way, i use Intel MKL for blas and lapack libraries.

Regards
Balachandar


-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Bill Hoffman
Sent: 31 May 2011 22:03
To: cmake at cmake.org
Subject: Re: [CMake] False.lib error while linking

On 5/31/2011 7:04 AM, AMARNATH, Balachandar wrote:
> Hi,
> When i compile MPF package using CMAKE/NMAKE with Intel C and fortran as
> Compilers (in windows) , also with Intel MPI and MKL library, i get an
> error while linking,
> *****************
> -LIBPATH:C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build
> FALSE.lib
> "C:\Program Files\Intel\MPI\4.0.2.005\ia32\lib\impi.lib"
> user32.lib
> /MANIFEST
> LINK : fatal error LNK1181: cannot open input file 'FALSE.lib'
> LINK failed. with 1181
> ********************
> Any clue about this? Further, Intel MKL library does not contain
> libguide40 library which is required by FindBLAS.cmake module. Any clue
> on how to tackle this?
> Many thanks
> Balachandar

Sounds like there is FALSE in some library name used.  I would check
your CMakeCache.txt.  Another thing you can do is run cmake --trace and
see where FALSE shows up in an add_library.
>
> The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
> If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
> Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
> All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
>
>
You realize this is going to a public archived mailing list right?

-Bill
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.




The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110601/5796fa9a/attachment-0001.htm>


More information about the CMake mailing list