New user self-registration is disabled due to spam. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!

Bug 851

Summary: Unable to make benchmark suite with relative path to source
Product: Eigen Reporter: Kevin locke <kevin>
Component: GeneralAssignee: Nobody <eigen.nobody>
Status: NEW ---    
Severity: Unknown CC: chtz, gael.guennebaud, jacob.benoit.1
Priority: Normal    
Version: 3.2   
Hardware: All   
OS: All   
Whiteboard:

Description Kevin locke 2014-08-06 05:32:01 UTC
Following the instructions from http://eigen.tuxfamily.org/index.php?title=How_to_run_the_benchmark_suite using the following commands:

wget http://bitbucket.org/eigen/eigen/get/3.2.2.tar.bz2
tar -xjf eigen-eigen-1306d75b4a21.tar.bz2
mkdir eigen-eigen-1306d75b4a21/build
cd eigen-eigen-1306d75b4a21/build
cmake .. -DCMAKE_BUILD_TYPE=Release -DEIGEN_BUILD_BTL=ON -DEIGEN3_INCLUDE_DIR=..

Results in the following error among the other cmake output:

CMake Error at cmake/FindEigen3.cmake:33 (file):
  file Internal CMake error when trying to open file:
  /tmp/eigen-eigen-1306d75b4a21/bench/btl/libs/eigen3/../Eigen/src/Core/util/Macros.h
  for reading.
Call Stack (most recent call first):
  cmake/FindEigen3.cmake:59 (_eigen3_check_version)
  bench/btl/libs/eigen3/CMakeLists.txt:8 (find_package)

And cmake fails without creating bench/btl/Makefile (and likely many other files) required for the next step.

Changing ".." to the absolute path (/tmp/eigen-eigen-1306d75b4a21 in the example) avoids the issue.

Thanks,
Kevin