New user self-registration is disabled due to spam. Please email eigen-core-team @ if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 777 - Error "don't know how to make 'blas\eigen_blas.lib'" with VC++ 2008 build of lapack
Summary: Error "don't know how to make 'blas\eigen_blas.lib'" with VC++ 2008 build of ...
Alias: None
Product: Eigen
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All Windows
: Normal Compilation Problem
Assignee: Nobody
Keywords: BuildSystem, JuniorJob
Depends on:
Blocks: 62
  Show dependency treegraph
Reported: 2014-03-30 11:34 UTC by Matthew Brett
Modified: 2014-07-24 22:10 UTC (History)
3 users (show)


Description Matthew Brett 2014-03-30 11:34:02 UTC
Building 3.2.1 Eigen using MS VC++ SDK in 64 bit mode.

Default configure / generate of nmake files works correctly in cmake.

nmake blas compiles without error
nmake lapack fails with the following error:

        "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin\amd64\nmake.e
xe" -f lapack\CMakeFiles\eigen_lapack.dir\build.make /nologo -L
NMAKE : fatal error U1073: don't know how to make 'blas\eigen_blas.lib'

The file "lapack\CMakeFiles\eigen_lapack.dir\build.make" has the line:

lapack\eigen_lapack.dll: blas\eigen_blas.lib

In fact blas\eigen_blas.dll exists, but blas\eigen_blas.lib does not.  Is it possible the build is making assumptions about the configuration that don't hold?
Comment 1 Gael Guennebaud 2014-04-01 11:56:21 UTC
hm, very strange . On our side we are simply doing:

target_link_libraries(eigen_lapack  eigen_blas)

so cmake should know that the eigen_blas target is a shared library... Perhaps the two subdirectories are not communicating well. What if you remove the first line of blas/CMakeList.txt and lapack/CMakeList.txt, i.e., remove the lines:

project(EigenBlas CXX)


project(EigenLapack CXX)

Or maybe we explicitly have to make the eigen_blas target visible from the parent scope...??
Comment 2 Matthew Brett 2014-04-01 19:57:23 UTC
I did:

* Commented out those lines
* Cleared cmake cache
* cmake configure
* cmake generate
* nmake blas lapack

and got the same error as above.
Comment 3 Christoph Hertzberg 2014-06-15 20:02:17 UTC
Does any cmake & MSVC expert have an idea for this?

Note You need to log in before you can comment on or make changes to this bug.