xtensor-stack / xtensor-benchmark

Easy to use benchmarks for linear algebra frameworks
BSD 3-Clause "New" or "Revised" License
24 stars 8 forks source link

when do cmake,it will accur following error results #13

Open binbinmeng opened 5 years ago

binbinmeng commented 5 years ago

CMake Error at CMakeLists.txt:73 (find_package): By not providing "Findbenchmark.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "benchmark", but CMake did not find one.

binbinmeng commented 5 years ago

Maybe it is caused by the missing of benchmark lib of google. Try to install the lib firstly.

wolfv commented 5 years ago

did it help?

fschlimb commented 4 years ago

I had a similar issue. I added -DBUILD_EXTERNAL_GOOGLEBENCHMARK=1 and it checked out the google stuff. However, I am now getting

CMake Error at .../xtensor-benchmark/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Blitz (missing: BLITZ_INCLUDES BLITZ_LIBRARIES)
Call Stack (most recent call first):
 .../xtensor-benchmark/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  modules/FindBlitz.cmake:37 (find_package_handle_standard_args)
  CMakeLists.txt:123 (find_package)

Any idea?

fschlimb commented 4 years ago

I guess your conda env-file is incomplete, it should add libblitz from conda-forge.

fschlimb commented 4 years ago

conda-forge also provides pythran, so the env-file wouldn't need to use pip at all.

breznak commented 4 years ago

I'm on standard Ubuntu 20.04 with fairly new g++-9.3 or clang-9. Fixed some dependencies in conda in #14, but I still cannot configure and build this project. Notable errors:

Please see below, thank you

- Performing Test HAS_CPP14_FLAG - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Blitz: /home/mmm/.conda/envs/xtensor-benchmark/include  
-- Found Armadillo: /home/mmm/.conda/envs/xtensor-benchmark/lib/libarmadillo.so (found version "9.200.7") 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found version "3.8.2") 
CMake Warning at CMakeLists.txt:123 (find_package):
By not providing "FindNumPy.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "NumPy", but
CMake did not find one.

Could not find a package configuration file provided by "NumPy" with any of
the following names:

NumPyConfig.cmake
numpy-config.cmake

Add the installation prefix of "NumPy" to CMAKE_PREFIX_PATH or set
"NumPy_DIR" to a directory containing one of the above files.  If "NumPy"
provides a separate development package or SDK, be sure it has been
installed.

-- Found PythonInterp: /usr/bin/python3.8 (found version "3.8.2") 
CMake Error at modules/FindPythran.cmake:43 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:44 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:45 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:46 (list):
list GET given empty list
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:49 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:52 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:56 (string):
string sub-command REGEX, mode MATCH regex "[0-9]*" matched an empty
string.
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

CMake Error at modules/FindPythran.cmake:57 (math):
math cannot parse the expression: "(NOTFOUND * 10000) + (NOTFOUND * 100) +
NOTFOUND": syntax error, unexpected exp_TIMES (11).
Call Stack (most recent call first):
CMakeLists.txt:124 (find_package)

COMPILING WITH
======================================

COMPILER        : /usr/bin/c++
FLAGS           :  -Ofast -ffast-math -march=native -pthread

Found xtensor   : /home/mmm/.conda/envs/xtensor-benchmark/include
Found xsimd     : /home/mmm/.conda/envs/xtensor-benchmark/include

Found eigen     : /home/mmm/.conda/envs/xtensor-benchmark/include/eigen3
Found Blitz     : /home/mmm/.conda/envs/xtensor-benchmark/include | /home/mmm/.conda/envs/xtensor-benchmark/lib/libblitz.so
Found Armadillo : /home/mmm/.conda/envs/xtensor-benchmark/include | /home/mmm/.conda/envs/xtensor-benchmark/lib/libarmadillo.so
Found Pythran   :
Using benchmark :  | benchmark::benchmark_main
-- Configuring incomplete, errors occurred!
See also "/home/mmm/devel/xtensor-benchmark/build/CMakeFiles/CMakeOutput.log".
See also "/home/mmm/devel/xtensor-benchmark/build/CMakeFiles/CMakeError.log".