We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi all.
OpenMS-2.1.0 configuration fails with CMake-3.7.2:
OpenMS-2.1.0
CMake-3.7.2
+ export 'LDFLAGS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,now -Wl,--as-needed' + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,now -Wl,--as-needed' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,now -Wl,--as-needed' + export LDFLAGS + /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -Wno-dev -DCMAKE_COLOR_MAKEFILE:BOOL=ON -DBUILD_TESTING:BOOL=ON -DBUILD_EXAMPLES:BOOL=ON -DENABLE_TOPP_TESTING:BOOL=ON -DENABLE_CLASS_TESTING:BOOL=ON '-DCMAKE_CXX_FLAGS_RELEASE:STRING=-Wno-cpp -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wl,-z,relro -Wl,-z,now' '-DCMAKE_C_FLAGS_RELEASE:STRING=-Wno-cpp -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wl,-z,relro -Wl,-z,now ' -DCMAKE_VERBOSE_MAKEFILE=TRUE -DCMAKE_PREFIX_PATH=/usr -DENABLE_SVN=OFF -DCMAKE_BUILD_TYPE=Release -DBOOST_USE_STATIC=OFF -DCMAKE_SKIP_RPATH:BOOL=TRUE -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES -DMT_ENABLE_OPENMP=ON -DENABLE_GCC_WERROR:BOOL=OFF -DFIDO_BINARY:FILEPATH=/usr/bin/Fido -DFIDOCHOOSEPARAMS_BINARY:FILEPATH=/usr/bin/FidoChooseParameters -DBOOST_USE_STATIC:BOOL=OFF -DBoost_INCLUDE_DIR:PATH=/usr/include -DBoost_IOSTREAMS_LIBRARY_RELEASE:FILEPATH=/usr/lib64/libboost_iostreams.so -DBoost_MATH_C99_LIBRARY_RELEASE:FILEPATH=/usr/lib64/libboost_math_c99.so -DBoost_REGEX_LIBRARY_RELEASE:FILEPATH=/usr/lib64/libboost_regex.so -DENABLE_TUTORIALS:BOOL=OFF -DENABLE_UNITYBUILD:BOOL=OFF -DHAS_XSERVER:BOOL=OFF -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_BIN_DIR:PATH=bin -DINSTALL_CMAKE_DIR:PATH=lib64/cmake/OpenMS -DINSTALL_DOC_DIR:PATH=share/doc/openms-doc -DINSTALL_INCLUDE_DIR:PATH=include -DINSTALL_LIB_DIR:PATH=lib64/OpenMS -DINSTALL_SHARE_DIR:PATH=share/OpenMS -DPACKAGE_TYPE:STRING=none -DWITH_GUI:BOOL=ON -DXercesC_INCLUDE_DIRS:PATH=/usr/include/xercesc -DXercesC_LIBRARY_RELEASE:FILEPATH=/usr/lib64/libxerces-c.so -DOPENMS_DISABLE_UPDATE_CHECK:BOOL=OFF -DENABLE_UPDATE_CHECK:BOOL=OFF -DGIT_TRACKING:BOOL=OFF -DOPENMS_64BIT_ARCHITECTURE:BOOL=ON -DPYOPENMS=OFF .. -- The C compiler identification is GNU 7.0.1 -- The CXX compiler identification is GNU 7.0.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building OpenMS 2.1.0 -- [CMake is not tracking Git commits and branching. To enable use '-D GIT_TRACKING=ON'.] -- Try OpenMP C flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Try OpenMP CXX flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Success -- Found OpenMP: -fopenmp -- OpenMP: ON -- Architecture: 64 bit CMake Error at cmake/compiler_flags.cmake:43 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): CMakeLists.txt:174 (include) CMake Error at cmake/compiler_flags.cmake:69 (if): if given arguments: "NOT" "OPENMS_64BIT_ARCHITECTURE" "AND" "7" "MATCHES" "4" "AND" "MATCHES" "3" Unknown arguments specified Call Stack (most recent call first): CMakeLists.txt:174 (include) -- Configuring incomplete, errors occurred! See also "/builddir/build/BUILD/openms-2.1.0/py2build/build/CMakeFiles/CMakeOutput.log".
The text was updated successfully, but these errors were encountered:
From the affected lines I would say that the -dumpversion option of GCC7 changed. Could you post the output of this command?
Sorry, something went wrong.
The GCC version used is gcc-7.0.1
gcc-7.0.1
CMakeOutput.log.txt
Can you try the changes from the PR? I do not have a Linux with GCC7 at hand.
I'm rebuilding bde813c adding the CMAKE_CXX_COMPILER_VERSION option, the code is correctly configured by CMake.
CMAKE_CXX_COMPILER_VERSION
CMake
I understand this is fixed?! --> closing ticket.
No branches or pull requests
Hi all.
OpenMS-2.1.0
configuration fails withCMake-3.7.2
:The text was updated successfully, but these errors were encountered: