xtensor-benchmark
xtensor-benchmark copied to clipboard
when do cmake,it will accur following error results
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.
Maybe it is caused by the missing of benchmark lib of google. Try to install the lib firstly.
did it help?
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?
I guess your conda env-file is incomplete, it should add libblitz from conda-forge.
conda-forge also provides pythran, so the env-file wouldn't need to use pip at all.
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:
- [ ] cannot find numpy (even if installed conda, pip)
- [ ] cannot find
pthread
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".