CMake gcc version check is incorrect for SUSE linux #11195
Labels
Framework
Issues and pull requests related to components in the Framework
Low Priority
Things that you don't ever want to be done.
Milestone
From mailing list:
I've successfully compiled and installed Mantid from source code on a OpenSUSE 12.3 Linux system after carefully selecting and installing the necessary libraries and software and doing the following necessary adjustment.
In fact, I've found that the Build/CMake/GNUSetup.cmake script incorrectly extracts the GCC compiler version string on Linux systems. The original script fragment is:
But the typical output of a 'gcc --version' command is a 4-row string, like the following:
and by applying the 'cut -d " " -f 3' filter this ends up with a wrong-syntax CMakeCache.txt file, such as:
...
FIND_PACKAGE_MESSAGE_DETAILS_muparser:INTERNAL=[/usr/lib64/libmuparser.so][/usr/include][v()]
GCC_COMPILER_VERSION:INTERNAL=Linux)
2012
free
even
//ADVANCED property for variable: GIT_EXECUTABLE
GIT_EXECUTABLE-ADVANCED:INTERNAL=1
...
This causes errors in the compile/install process and, even when one corrects manually the error in the CMakeCache.txt file to bypass the problem, the error reappears after any cmake/make invocation.
Since we need to select the '4.7.2' string (or similar) on the first row, the following can be a good fix for the GNUSetup.cmake script:
Best regards.
Gianluca Frustagli
The text was updated successfully, but these errors were encountered: