I'd like to build Webkit 2.10.4 on my openSuSE 13.2 / x86_64 machine, but CMake always keeps complaining about a wrong GCC version. So far it has been 4.8.7 (which appeared to be too old), but even after updating to 5.2.1 I still get this error message: jacek@veteran:~/bin/webkitgtk-2.10.4 $ cmake -DPORT=GTK -- Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY RUBY_CONFIG_INCLUDE_DIR) (found suitable version "2.1.0", minimum required is "1.8.7") CMake Warning at Source/cmake/OptionsCommon.cmake:81 (message): GNU gold linker isn't available, using the default system linker. Call Stack (most recent call first): CMakeLists.txt:156 (include) CMake Error at Source/cmake/OptionsGTK.cmake:12 (message): GCC 4.9.0 is required to build WebKitGTK+, use a newer GCC version or clang Call Stack (most recent call first): CMakeLists.txt:164 (include) -- Configuring incomplete, errors occurred! See also "/home/jacek/bin/webkitgtk-2.10.4/CMakeFiles/CMakeOutput.log". GCC itself, however, says this: jacek@veteran:~/Downloads $ gcc --version gcc (SUSE Linux) 5.2.1 20151130 [gcc-5-branch revision 231058] Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. What really puzzles me, are these two lines in the logfile: gcc version 4.8.3 20140627 [gcc-4_8-branch revision 212064] (SUSE Linux) COMPILER_PATH=/usr/lib64/gcc/x86_64-suse-linux/4.8/:/usr/lib64/gcc/x86_64-suse-linux/4.8/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/4.8/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ Does the configure script ignore the V5 GCC installed on my system? The directory in question looks like this: jacek@veteran:/usr/lib64/gcc/x86_64-suse-linux $ ls -al insgesamt 16 drwxr-xr-x 4 root root 4096 30. Nov 14:29 . drwxr-xr-x 3 root root 4096 30. Nov 14:29 .. drwxr-xr-x 5 root root 4096 30. Dez 2014 4.8 drwxr-xr-x 6 root root 4096 23. Dez 17:56 5 What is going on here? Thank you for any useful hints!
It seems as if the CMake version was the problem: The official openSuSE 13.2 dirsto uses 3.0.2. After upgrading to 3.4.1 from a repo filled with "unstable" SW, GCC 5 is apparently recognised. To prevent this, however, you really should add some CMake version constraint as errors like this are *very* hard to debug.