Hi,
I am preparing the computer lab machine for a course this summer
and I am running into a strange "ninja issue".
[tru@optiplex7020 ninja]$ cmake ../imp-2.6.1 -DCMAKE_BUILD_TYPE=Release -G Ninja -DIMP_MAX_CHECKS=NONE -DCMAKE_INSTALL_PREFIX=/isb2016/imp-2.6.1 -DCMAKE_INCLUDE_PATH="/isb2016/Python-2.7.11;/isb2016/Python-2.7.11/include" -DCMAKE_LIBRARY_PATH="/isb2016/libTAU-1.0.1/lib;/isb2016/Python-2.7.11/lib" -DPYTHON_LIBRARY=/isb2016/Python-2.7.11/lib -DPYTHON_INCLUDE_DIR="/isb2016/Python-2.7.11;/isb2016/Python-2.7.11/include/python2.7" -DLIBTAU_INCLUDE_DIR="/isb2016/libTAU-1.0.1"
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/home/tru/ISB2016/build/ninja/CMakeFiles/2.8.11/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/home/tru/ISB2016/build/ninja/CMakeFiles/2.8.11/CMakeCXXCompiler.cmake
-- Configuring incomplete, errors occurred!
[tru@optiplex7020 ninja]$ type ninja
ninja is /isb2016/ninja-1.7.1/ninja
ninja was built from source with "./configure.py --bootstrap".
I tried Ninja 1.7.1 1.6.0 and 1.5.3 without success (same error).
If I run the same command without the '-G Ninja', cmake completes properly and make -j8 completes without issue.
[tru@optiplex7020 fast]$ cmake ../imp-2.6.1 -DCMAKE_BUILD_TYPE=Release -DIMP_MAX_CHECKS=NONE -DCMAKE_INSTALL_PREFIX=/isb2016/imp-2.6.1 -DCMAKE_INCLUDE_PATH="/isb2016/Python-2.7.11;/isb2016/Python-2.7.11/include" -DCMAKE_LIBRARY_PATH="/isb2016/libTAU-1.0.1/lib;/isb2016/Python-2.7.11/lib" -DPYTHON_LIBRARY=/isb2016/Python-2.7.11/lib -DPYTHON_INCLUDE_DIR="/isb2016/Python-2.7.11;/isb2016/Python-2.7.11/include/python2.7" -DLIBTAU_INCLUDE_DIR="/isb2016/libTAU-1.0.1"
-- Running check_common_problems
-- Running clean_build_dir
-- Running setup_cmake -- GCC version: 4.8.5
-- Enabling g++ C++11 support
-- GCC version: 4.8.5
-- No conversion issue
-- Doxygen is /isb2016/doxygen-1.8.6/bin/doxygen, version 1.8.6
-- Running setup_doxygen
-- Python binary is /isb2016/Python-2.7.11/bin/python (version 2.7.11)
-- Found PythonLibs: /isb2016/Python-2.7.11/lib (Required is exact version "2.7.11")
-- Running setup
-- Running setup_all
-- Running making containers
-- Boost version: 1.53.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- thread
-- program_options
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
...
Configuring module integrative_docking ...yes
-- Running setup_swig_wrappers integrative_docking
-- Running IMP.integrative_docking making all header
-- Running setup_swig_dependencies
-- Creating thread pool with 16 threads
-- Running setup_imppy
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tru/ISB2016/build/fast
[tru@optiplex7020 fast]$ nice make -j8
Scanning dependencies of target IMP.kmeans-all-header
Scanning dependencies of target IMP.parallel-all-header
Scanning dependencies of target IMP.kernel-all-header
Scanning dependencies of target IMP.test-all-header
...
Best regards
Tru
--
Dr Tru Huynh | http://www.pasteur.fr/research/bis">mailto: | tel/fax +33 1 45 68 87 37/19
Institut Pasteur, 25-28 rue du Docteur Roux, 75724 Paris CEDEX 15 France