STORM-IRIT / Radium-Engine

Research 3D Engine for rendering, animation and processing

Home Page:https://storm-irit.github.io/Radium-Engine/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cmake Error when compiling Eigen dependency

nmellado opened this issue · comments

A cmake error occurred recently on MacOS with the following configuration:

  • cmake: 3.21.3_1
  • compiler: AppleClang 13.0.0.13000029

When running Radium-Engine/CMakeLists.txt (configure step) with automatic compilation of the externals, cmake fails (see detailed log below).
Note that

  • this error couldn't be reproduced on any other platform.
  • master compiles fine on the same platform.

The real problem seems to be that some options are not properly transmitted to the submodule, and might come from the changes operated on the release_candidate build chain.

Error log (duplicated errors and warnings have been removed, generated with --trace):

[ 87%] Performing configure step for 'Eigen3'
Not searching for unused variables given on the command line.
-- [Core] [External] --The C compiler identification is AppleClang 13.0.0.13000029
-- [Core] [External] --The CXX compiler identification is AppleClang 13.0.0.13000029
-- [Core] [External] --Detecting C compiler ABI info
-- [Core] [External] --Detecting C compiler ABI info - done
-- [Core] [External] --Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- [Core] [External] --Detecting C compile features
-- [Core] [External] --Detecting C compile features - done
-- [Core] [External] --Detecting CXX compiler ABI info
-- [Core] [External] --Detecting CXX compiler ABI info - done
-- [Core] [External] --Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- [Core] [External] --Detecting CXX compile features
-- [Core] [External] --Detecting CXX compile features - done
-- [Core] [External] --Performing Test EIGEN_COMPILER_SUPPORT_CPP11
-- [Core] [External] --Performing Test EIGEN_COMPILER_SUPPORT_CPP11 - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_std=cpp03
-- [Core] [External] --Performing Test COMPILER_SUPPORT_std=cpp03 - Success
-- [Core] [External] --Performing Test standard_math_library_linked_to_automatically
-- [Core] [External] --Performing Test standard_math_library_linked_to_automatically - Success
-- [Core] [External] --Standard libraries to link to explicitly: none
-- [Core] [External] --Performing Test COMPILER_SUPPORT_WERROR
-- [Core] [External] --Performing Test COMPILER_SUPPORT_WERROR - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_pedantic
-- [Core] [External] --Performing Test COMPILER_SUPPORT_pedantic - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wall
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wall - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wextra
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wextra - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wundef
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wundef - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wcastalign
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wcastalign - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wcharsubscripts
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wcharsubscripts - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wnonvirtualdtor
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wnonvirtualdtor - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wpointerarith
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wpointerarith - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wwritestrings
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wwritestrings - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wformatsecurity
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wformatsecurity - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wshorten64to32
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wshorten64to32 - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wlogicalop
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wlogicalop - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wenumconversion
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wenumconversion - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wcpp11extensions
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wcpp11extensions - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wdoublepromotion
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wdoublepromotion - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wshadow
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wshadow - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wnopsabi
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wnopsabi - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wnovariadicmacros
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wnovariadicmacros - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wnolonglong
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Wnolonglong - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_fnochecknew
-- [Core] [External] --Performing Test COMPILER_SUPPORT_fnochecknew - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_fnocommon
-- [Core] [External] --Performing Test COMPILER_SUPPORT_fnocommon - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_fstrictaliasing
-- [Core] [External] --Performing Test COMPILER_SUPPORT_fstrictaliasing - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_wd981
-- [Core] [External] --Performing Test COMPILER_SUPPORT_wd981 - Failed
-- [Core] [External] --Performing Test COMPILER_SUPPORT_wd2304
-- [Core] [External] --Performing Test COMPILER_SUPPORT_wd2304 - Failed
-- [Core] [External] --Performing Test COMPILER_SUPPORT_STRICTANSI
-- [Core] [External] --Performing Test COMPILER_SUPPORT_STRICTANSI - Failed
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Qunusedarguments
-- [Core] [External] --Performing Test COMPILER_SUPPORT_Qunusedarguments - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_ansi
-- [Core] [External] --Performing Test COMPILER_SUPPORT_ansi - Success
-- [Core] [External] --Performing Test COMPILER_SUPPORT_OPENMP
-- [Core] [External] --Performing Test COMPILER_SUPPORT_OPENMP - Failed
-- [Core] [External] --Found unsuitable Qt version "5.9.7" from /Users/XXXX/opt/anaconda3/bin/qmake
-- [Core] [External] --The Fortran compiler identification is GNU 11.2.0
-- [Core] [External] --Checking whether Fortran compiler has -isysroot
-- [Core] [External] --Checking whether Fortran compiler has -isysroot - yes
-- [Core] [External] --Checking whether Fortran compiler supports OSX deployment target flag
-- [Core] [External] --Checking whether Fortran compiler supports OSX deployment target flag - yes
-- [Core] [External] --Detecting Fortran compiler ABI info
-- [Core] [External] --Detecting Fortran compiler ABI info - done
-- [Core] [External] --Check for working Fortran compiler: /usr/local/bin/gfortran - skipped
-- [Core] [External] --Checking whether /usr/local/bin/gfortran supports Fortran 90
-- [Core] [External] --Checking whether /usr/local/bin/gfortran supports Fortran 90 - yes
-- [Core] [External] --Found unsuitable Qt version "5.9.7" from /Users/XXXX/opt/anaconda3/bin/qmake
-- [Core] [External] --Qt4 not found, so disabling the mandelbrot and opengl demos
-- [Core] [External] --Found CHOLMOD: /usr/local/include  
-- [Core] [External] --Found UMFPACK: /usr/local/include  
-- [Core] [External] --Could NOT find SUPERLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK) 
-- [Core] [External] --Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") 
-- [Core] [External] --Checking for one of the modules 'hwloc'
-- [Core] [External] --Could NOT find BLAS (missing: BLAS_LIBRARY_DIRS) 
-- [Core] [External] --Performing Test SCOTCH_Num_4
-- [Core] [External] --Performing Test SCOTCH_Num_4 - Failed
-- [Core] [External] --Performing Test SCOTCH_Num_8
-- [Core] [External] --Performing Test SCOTCH_Num_8 - Failed
-- [Core] [External] --Performing Test PTSCOTCH_Num_4
-- [Core] [External] --Performing Test PTSCOTCH_Num_4 - Failed
-- [Core] [External] --Performing Test PTSCOTCH_Num_8
-- [Core] [External] --Performing Test PTSCOTCH_Num_8 - Failed
-- [Core] [External] --Looking for METIS_NodeND
-- [Core] [External] --Looking for METIS_NodeND - found
-- [Core] [External] --A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend.
-- [Core] [External] --
-- [Core] [External] --Configured Eigen 3.3.90
-- [Core] [External] --
-- [Core] [External] --Some things you can do now:
-- [Core] [External] ----------------+--------------------------------------------------------------
-- [Core] [External] --Command       |   Description
-- [Core] [External] ----------------+--------------------------------------------------------------
-- [Core] [External] --make install  | Install Eigen. Headers will be installed to:
-- [Core] [External] --              |     <CMAKE_INSTALL_PREFIX>/<INCLUDE_INSTALL_DIR>
-- [Core] [External] --              |   Using the following values:
-- [Core] [External] --              |     CMAKE_INSTALL_PREFIX: /tmp/Radium-Engine-release-candidate/Bundle-AppleClang
-- [Core] [External] --              |     INCLUDE_INSTALL_DIR:  include/eigen3
-- [Core] [External] --              |   Change the install location of Eigen headers using:
-- [Core] [External] --              |     cmake . -DCMAKE_INSTALL_PREFIX=yourprefix
-- [Core] [External] --              |   Or:
-- [Core] [External] --              |     cmake . -DINCLUDE_INSTALL_DIR=yourdir
-- [Core] [External] --make doc      | Generate the API documentation, requires Doxygen & LaTeX
-- [Core] [External] --make blas     | Build BLAS library (not the same thing as Eigen)
-- [Core] [External] --make uninstall| Removes files installed by make install
-- [Core] [External] ----------------+--------------------------------------------------------------
-- [Core] [External] --
-- Configuring done
CMake Error at doc/examples/CMakeLists.txt:5 (add_executable):
  CXX_STANDARD is set to invalid value ''

CMake Error at doc/special_examples/CMakeLists.txt:23 (add_executable):
  CXX_STANDARD is set to invalid value ''

CMake Error at doc/snippets/CMakeLists.txt:13 (add_executable):
  CXX_STANDARD is set to invalid value ''

CMake Error at blas/CMakeLists.txt:32 (add_library):
  CXX_STANDARD is set to invalid value ''

CMake Error at blas/CMakeLists.txt:31 (add_library):
  CXX_STANDARD is set to invalid value ''


CMake Error at lapack/CMakeLists.txt:93 (add_library):
  CXX_STANDARD is set to invalid value ''


CMake Error at lapack/CMakeLists.txt:94 (add_library):
  CXX_STANDARD is set to invalid value ''


CMake Error at unsupported/doc/examples/CMakeLists.txt:9 (add_executable):
  CXX_STANDARD is set to invalid value ''


CMake Error at unsupported/doc/examples/CMakeLists.txt:9 (add_executable):
  CXX_STANDARD is set to invalid value ''


CMake Error at bench/spbench/CMakeLists.txt:83 (add_executable):
  CXX_STANDARD is set to invalid value ''


CMake Error at bench/spbench/CMakeLists.txt:79 (add_executable):
  CXX_STANDARD is set to invalid value ''


CMake Error at bench/spbench/CMakeLists.txt:76 (add_executable):
  CXX_STANDARD is set to invalid value ''


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
make[2]: *** [Eigen3-prefix/src/Eigen3-stamp/Eigen3-configure] Error 1
make[1]: *** [CMakeFiles/Eigen3.dir/all] Error 2
make: *** [all] Error 2
/tmp/Radium-Engine-release-candidate/cmake/ExternalFunc.cmake(80):  if(NOT ret EQUAL 0 )
/tmp/Radium-Engine-release-candidate/cmake/ExternalFunc.cmake(81):  message(FATAL_ERROR Cmake build step failed.  )
CMake Error at cmake/ExternalFunc.cmake:81 (message):
  Cmake build step failed.
Call Stack (most recent call first):
  src/Core/CMakeLists.txt:34 (add_external_folder)


-- Configuring incomplete, errors occurred!