I have installed the dependencies especially libunwind8 but cmake complains:
-- Looking for unw_backtrace_skip in /usr/lib/x86_64-linux-gnu/libunwind.so
-- Looking for unw_backtrace_skip in /usr/lib/x86_64-linux-gnu/libunwind.so - not found
However that file does exist.
which is a link
libunwind.so -> libunwind.so.8.0.1
Is there a workaround?
Full output is
CMakeError.logCMakeOutput.log
Galaxy-Book-12:~/code/vogl/build$ cmake ..
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- 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
-- Found TinyXML: /usr/lib/x86_64-linux-gnu/libtinyxml.so
cmake options:
-DCMAKE_BUILD_TYPE='': Build debug or release. (Debug|Release)
-DVOGLTEST_LOAD_LIBVOGLTRACE='': glitest will load libvogltrace.so manually (don't implictly link against libgl.so). (On|Off)
-DVOGLTRACE_NO_PUBLIC_EXPORTS='': Don't define any public GL exports in libvogltrace.so. (On|Off)
-DVOGL_ENABLE_ASSERTS='': Enable assertions in all voglcore builds (including release). (On|Off)
-DCMAKE_VERBOSE='': Spew cmake project options. (On|Off)
-DBUILD_X64='': Build 32 or 64-bit. (On|Off)
-DWITH_ASAN='': Build with Address sanitizer. (On|Off)
-DUSE_TELEMETRY='': Build with Telemetry. (On|Off)
-DUSE_MALLOC='': Use system malloc (not STB Malloc). (On|Off)
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/voglcore/CMakeLists.txt:6 (include)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not 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
Not forcing assertions to be enabled (VOGL_ENABLE_ASSERTS=FALSE)
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/voglgen/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/voglcommon/CMakeLists.txt:4 (include)
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for one of the modules 'sdl2'
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/voglreplay/CMakeLists.txt:4 (include)
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/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: /usr/lib/x86_64-linux-gnu/libX11.so
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/voglbench/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/vogltrace/CMakeLists.txt:6 (include)
libvogltrace.so will define GL/GLX public exports
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/vogltest/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/glxspheres/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/vogleditor/CMakeLists.txt:4 (include)
CMake Deprecation Warning at src/vogleditor/CMakeLists.txt:11 (cmake_policy):
The OLD behavior for policy CMP0020 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/extlib/pxfmt/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/ktxtool/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/libbacktrace/CMakeLists.txt:36 (include)
-- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so - found
-- Found LibLZMA: /usr/include (found version "5.2.2")
-- Performing Test FLAG_UNWIND_TABLES
-- Performing Test FLAG_UNWIND_TABLES - Success
-- Performing Test HAVE_SYNC_FUNCTIONS
-- Performing Test HAVE_SYNC_FUNCTIONS - Success
-- Looking for mmap
-- Looking for mmap - found
-- Looking for MAP_ANONYMOUS
-- Looking for MAP_ANONYMOUS - found
-- Looking for MAP_ANON
-- Looking for MAP_ANON - found
-- Looking for dl_iterate_phdr
-- Looking for dl_iterate_phdr - found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for strnlen
-- Looking for strnlen - found
-- Looking for getexecname
-- Looking for getexecname - not found
-- Looking for unw_backtrace_skip in /usr/lib/x86_64-linux-gnu/libunwind.so
-- Looking for unw_backtrace_skip in /usr/lib/x86_64-linux-gnu/libunwind.so - not found
CMake Error at src/build_options.cmake:242 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
src/libbacktrace_test/CMakeLists.txt:4 (include)
-- Configuring incomplete, errors occurred!
See also "/home/natty/code/vogl/build/CMakeFiles/CMakeOutput.log".
See also "/home/natty/code/vogl/build/CMakeFiles/CMakeError.log".
I have installed the dependencies especially libunwind8 but cmake complains:
-- Looking for unw_backtrace_skip in /usr/lib/x86_64-linux-gnu/libunwind.so -- Looking for unw_backtrace_skip in /usr/lib/x86_64-linux-gnu/libunwind.so - not found
However that file does exist. which is a link libunwind.so -> libunwind.so.8.0.1
Is there a workaround?
Full output is
CMakeError.log CMakeOutput.log Galaxy-Book-12:~/code/vogl/build$ cmake .. -- The C compiler identification is GNU 7.3.0 -- The CXX compiler identification is GNU 7.3.0 -- 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 -- Found TinyXML: /usr/lib/x86_64-linux-gnu/libtinyxml.so
cmake options: -DCMAKE_BUILD_TYPE='': Build debug or release. (Debug|Release) -DVOGLTEST_LOAD_LIBVOGLTRACE='': glitest will load libvogltrace.so manually (don't implictly link against libgl.so). (On|Off) -DVOGLTRACE_NO_PUBLIC_EXPORTS='': Don't define any public GL exports in libvogltrace.so. (On|Off) -DVOGL_ENABLE_ASSERTS='': Enable assertions in all voglcore builds (including release). (On|Off) -DCMAKE_VERBOSE='': Spew cmake project options. (On|Off) -DBUILD_X64='': Build 32 or 64-bit. (On|Off) -DWITH_ASAN='': Build with Address sanitizer. (On|Off) -DUSE_TELEMETRY='': Build with Telemetry. (On|Off) -DUSE_MALLOC='': Use system malloc (not STB Malloc). (On|Off)
CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/voglcore/CMakeLists.txt:6 (include)
-- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not 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
Not forcing assertions to be enabled (VOGL_ENABLE_ASSERTS=FALSE) CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/voglgen/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/voglcommon/CMakeLists.txt:4 (include)
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Checking for one of the modules 'sdl2' CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/voglreplay/CMakeLists.txt:4 (include)
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/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: /usr/lib/x86_64-linux-gnu/libX11.so CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/voglbench/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/vogltrace/CMakeLists.txt:6 (include)
libvogltrace.so will define GL/GLX public exports CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/vogltest/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/glxspheres/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/vogleditor/CMakeLists.txt:4 (include)
CMake Deprecation Warning at src/vogleditor/CMakeLists.txt:11 (cmake_policy): The OLD behavior for policy CMP0020 will be removed from a future version of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.
CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/extlib/pxfmt/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/ktxtool/CMakeLists.txt:4 (include)
CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/libbacktrace/CMakeLists.txt:36 (include)
-- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so -- Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found -- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so -- Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found -- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so -- Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so - found -- Found LibLZMA: /usr/include (found version "5.2.2") -- Performing Test FLAG_UNWIND_TABLES -- Performing Test FLAG_UNWIND_TABLES - Success -- Performing Test HAVE_SYNC_FUNCTIONS -- Performing Test HAVE_SYNC_FUNCTIONS - Success -- Looking for mmap -- Looking for mmap - found -- Looking for MAP_ANONYMOUS -- Looking for MAP_ANONYMOUS - found -- Looking for MAP_ANON -- Looking for MAP_ANON - found -- Looking for dl_iterate_phdr -- Looking for dl_iterate_phdr - found -- Looking for fcntl -- Looking for fcntl - found -- Looking for strnlen -- Looking for strnlen - found -- Looking for getexecname -- Looking for getexecname - not found -- Looking for unw_backtrace_skip in /usr/lib/x86_64-linux-gnu/libunwind.so -- Looking for unw_backtrace_skip in /usr/lib/x86_64-linux-gnu/libunwind.so - not found CMake Error at src/build_options.cmake:242 (list): list index: 1 out of range (-1, 0) Call Stack (most recent call first): src/libbacktrace_test/CMakeLists.txt:4 (include)
-- Configuring incomplete, errors occurred! See also "/home/natty/code/vogl/build/CMakeFiles/CMakeOutput.log". See also "/home/natty/code/vogl/build/CMakeFiles/CMakeError.log".
I've attached the log files.