Skip to content

Instantly share code, notes, and snippets.

@kkristof
Last active December 16, 2015 12:19
Show Gist options
  • Save kkristof/5434119 to your computer and use it in GitHub Desktop.
Save kkristof/5434119 to your computer and use it in GitHub Desktop.
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE):
The C++ compiler "/usr/bin/c++" is not able to compile a simple test
program.
It fails with the following output:
Change Dir: /home/kosztyo/WebKit_Nix/WebKitBuild/Release/__cmake_systeminformation/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory
`/home/kosztyo/WebKit_Nix/WebKitBuild/Release/__cmake_systeminformation/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/home/kosztyo/WebKit_Nix/WebKitBuild/Release/__cmake_systeminformation/CMakeFiles/CMakeTmp/CMakeFiles
1
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -mthumb -mthumb-interwork -o
CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
/home/kosztyo/WebKit_Nix/WebKitBuild/Release/__cmake_systeminformation/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
cc1plus: error: unrecognized command line option ‘-mthumb’
cc1plus: error: unrecognized command line option ‘-mthumb-interwork’
make[1]: Leaving directory
`/home/kosztyo/WebKit_Nix/WebKitBuild/Release/__cmake_systeminformation/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o] Error
1
make: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:16 (PROJECT)
Error: --system-information failed on internal CMake!
Not searching for unused variables given on the command line.
Re-run cmake no build system arguments
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/icecc/bin-arm/arm-none-linux-gnueabi-gcc
-- Check for working C compiler: /usr/lib/icecc/bin-arm/arm-none-linux-gnueabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/icecc/bin-arm/arm-none-linux-gnueabi-g++
-- Check for working CXX compiler: /usr/lib/icecc/bin-arm/arm-none-linux-gnueabi-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found BISON: /usr/bin/bison (found suitable version "2.5", required is "2.4.1")
-- Found FLEX: /usr/bin/flex (found suitable version "2.5.35", required is "2.5.34")
-- Found Gperf: /usr/bin/gperf (Required is at least version "3.0.1")
-- Found Perl: /usr/bin/perl (Required is at least version "5.10.0")
-- Found PythonInterp: /usr/bin/python (found suitable version "2.7.3", required is "2.6.0")
-- Could NOT find Ruby (missing: RUBY_INCLUDE_DIR RUBY_LIBRARY) (found suitable version "1.8.7", required is "1.8.7")
-- checking for module 'cairo'
-- found cairo, version 1.12.8
-- Found Cairo: /home/rgabor/nix/webkitnix/WebKitBuild/Dependencies/Root/include/cairo (Required is at least version "1.10")
-- checking for module 'fontconfig'
-- found fontconfig, version 2.8.0
-- Found Fontconfig: /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libfontconfig.so (Required is at least version "2.8.0")
-- Found Freetype: /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libfreetype.so
-- Found GLIB: /home/rgabor/nix/webkitnix/WebKitBuild/Dependencies/Root/include/glib-2.0;/mnt/store/chroots/ubuntu-pangolin-ARMHF/home/kosztyo/WebKit_Nix/WebKitBuild/Dependencies/Root/lib64/glib-2.0/include (found suitable version "2.36.0", required is "2.31.8")
-- checking for module 'harfbuzz>=0.9.7'
-- package 'harfbuzz>=0.9.7' not found
-- Could NOT find HarfBuzz (missing: HARFBUZZ_INCLUDE_DIRS HARFBUZZ_LIBRARIES)
-- Found ICU header files in /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/include
-- Found ICU libraries: /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/libicuuc.so
-- Found JPEG: /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libjpeg.so
-- Found LibSoup: /home/rgabor/nix/webkitnix/WebKitBuild/Dependencies/Root/include/libsoup-2.4 (found suitable version "2.42.0", required is "2.39.4.1")
-- Found LibXml2: /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libxml2.so (Required is at least version "2.6")
-- Found LibXslt: /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libxslt.so (Required is at least version "1.1.7")
-- Found ZLIB: /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.3.4")
-- Found PNG: /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libpng.so
-- checking for module 'sqlite3'
-- found sqlite3, version 3.7.9
-- Found Sqlite: /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/include
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for XOpenDisplay in /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libX11.so;/mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libXext.so
-- Looking for XOpenDisplay in /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libX11.so;/mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libX11.so
-- Found OpenGL: /mnt/store/chroots/ubuntu-pangolin-ARMHF/usr/lib/arm-linux-gnueabihf/libGL.so
-- Enabled features:
-- ENABLE_3D_RENDERING ............. ON
-- ENABLE_ACCELERATED_2D_CANVAS OFF
-- ENABLE_API_TESTS ................ ON
-- ENABLE_BLOB ON
-- ENABLE_CHANNEL_MESSAGING ........ ON
-- ENABLE_CONTEXT_MENUS ON
-- ENABLE_CSS3_TEXT ................ ON
-- ENABLE_CSS_BOX_DECORATION_BREAK ON
-- ENABLE_CSS_EXCLUSIONS ........... ON
-- ENABLE_CSS_FILTERS ON
-- ENABLE_CSS_IMAGE_ORIENTATION .... ON
-- ENABLE_CSS_IMAGE_RESOLUTION ON
-- ENABLE_CSS_IMAGE_SET ............ ON
-- ENABLE_CSS_REGIONS ON
-- ENABLE_CSS_SHADERS .............. ON
-- ENABLE_CSS_VARIABLES ON
-- ENABLE_DETAILS_ELEMENT .......... ON
-- ENABLE_DRAG_SUPPORT OFF
-- ENABLE_FAST_MOBILE_SCROLLING .... ON
-- ENABLE_FILTERS ON
-- ENABLE_FTPDIR ................... ON
-- ENABLE_FULLSCREEN_API ON
-- ENABLE_GAMEPAD .................. ON
-- ENABLE_GESTURE_EVENTS ON
-- ENABLE_ICONDATABASE ............. ON
-- ENABLE_IFRAME_SEAMLESS ON
-- ENABLE_INDEXED_DATABASE ......... ON
-- ENABLE_INSPECTOR ON
-- ENABLE_INSPECTOR_SERVER ......... ON
-- ENABLE_JAVASCRIPT_DEBUGGER ON
-- ENABLE_JIT ...................... ON
-- ENABLE_LEGACY_VENDOR_PREFIXES OFF
-- ENABLE_LEGACY_VIEWPORT_ADAPTION . ON
-- ENABLE_LEGACY_WEB_AUDIO ON
-- ENABLE_LLINT .................... ON
-- ENABLE_MATHML ON
-- ENABLE_METER_ELEMENT ............ ON
-- ENABLE_MICRODATA ON
-- ENABLE_NAVIGATOR_CONTENT_UTILS .. ON
-- ENABLE_NETSCAPE_PLUGIN_API OFF
-- ENABLE_NETWORK_INFO ............. ON
-- ENABLE_POPUP_MENUS ON
-- ENABLE_PROGRESS_ELEMENT ......... ON
-- ENABLE_REQUEST_ANIMATION_FRAME ON
-- ENABLE_SHARED_WORKERS ........... ON
-- ENABLE_SQL_DATABASE ON
-- ENABLE_SVG ...................... ON
-- ENABLE_SVG_FONTS ON
-- ENABLE_TOUCH_ADJUSTMENT ......... ON
-- ENABLE_TOUCH_EVENTS ON
-- ENABLE_UNDO_MANAGER ............. OFF
-- ENABLE_VIDEO OFF
-- ENABLE_VIEW_MODE_CSS_MEDIA ...... ON
-- ENABLE_WEB_AUDIO ON
-- ENABLE_WEBGL .................... ON
-- ENABLE_WEB_SOCKETS ON
-- ENABLE_WEB_TIMING ............... ON
-- ENABLE_WORKERS ON
-- ENABLE_XHR_RESPONSE_BLOB ........ ON
-- ENABLE_XSLT ON
-- WTF_USE_EGL ..................... OFF
-- WTF_USE_HARFBUZZ ON
-- WTF_USE_LEVELDB ................. ON
-- WTF_USE_OPENGL_ES_2 OFF
-- Creating cmakeconfig.h
-- Using platform-specific CMakeLists: /home/kosztyo/WebKit_Nix/Source/WTF/wtf/PlatformNix.cmake
-- Using platform-specific CMakeLists: /home/kosztyo/WebKit_Nix/Source/JavaScriptCore/PlatformNix.cmake
-- Using platform-specific CMakeLists: /home/kosztyo/WebKit_Nix/Source/JavaScriptCore/shell/PlatformNix.cmake
-- Using platform-specific CMakeLists: /home/kosztyo/WebKit_Nix/Source/Platform/PlatformNix.cmake
-- Using platform-specific CMakeLists: /home/kosztyo/WebKit_Nix/Source/WebCore/PlatformNix.cmake
-- Checking to see if CXX compiler accepts flag -dumpversion
-- Checking to see if CXX compiler accepts flag -dumpversion - yes
-- Using platform-specific CMakeLists: /home/kosztyo/WebKit_Nix/Source/WebKit2/PlatformNix.cmake
-- Platform-specific CMakeLists not found: /home/kosztyo/WebKit_Nix/Source/PlatformNix.cmake
-- Using platform-specific CMakeLists: /home/kosztyo/WebKit_Nix/Tools/WebKitTestRunner/PlatformNix.cmake
-- Using platform-specific CMakeLists: /home/kosztyo/WebKit_Nix/Tools/TestWebKitAPI/PlatformNix.cmake
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
HARFBUZZ_INCLUDE_DIRS
used as include directory in directory /home/kosztyo/WebKit_Nix/Source/WebCore
used as include directory in directory /home/kosztyo/WebKit_Nix/Source/WebKit2
HARFBUZZ_LIBRARIES
linked by target "webcore_nix" in directory /home/kosztyo/WebKit_Nix/Source/WebCore
-- Configuring incomplete, errors occurred!
(64bit)kosztyo@cute4:~$ ./build_nix.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment