owl icon indicating copy to clipboard operation
owl copied to clipboard

Build fails on Ubuntu 24.04

Open SamuraiDestroy opened this issue 1 year ago • 3 comments

When I run the command in README to build it, this happens. `Submodule 'googletest' (https://github.com/google/googletest.git) registered for path 'googletest' Submodule 'radiotap' (https://github.com/radiotap/radiotap-library.git) registered for path 'radiotap' Cloning into '/home/SamuraiDestroy/sources/owl/googletest'... Cloning into '/home/SamuraiDestroy/sources/owl/radiotap'... Submodule path 'googletest': checked out '703bd9caab50b139428cea1aaff9974ebee5742e' Submodule path 'radiotap': checked out '94984dd829a605a2d7af55241145c159607f3b30' CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 13.2.0 -- The CXX compiler identification is GNU 13.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Deprecation Warning at googletest/CMakeLists.txt:4 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at googletest/googlemock/CMakeLists.txt:45 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at googletest/googletest/CMakeLists.txt:56 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at googletest/googletest/cmake/internal_utils.cmake:243 (find_package): Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules are removed. Run "cmake --help-policy CMP0148" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first): googletest/googletest/CMakeLists.txt:91 (include) This warning is for project developers. Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/bin/python3.12 (found version "3.12.3") -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Configuring done (0.5s) -- Generating done (0.0s) -- Build files have been written to: /home/SamuraiDestroy/sources/owl/build [ 2%] Building C object CMakeFiles/radiotap.dir/radiotap/radiotap.c.o /home/SamuraiDestroy/sources/owl/radiotap/radiotap.c: In function ‘ieee80211_radiotap_iterator_init’: /home/SamuraiDestroy/sources/owl/radiotap/radiotap.c:113:34: warning: taking address of packed member of ‘struct ieee80211_radiotap_header’ may result in an unaligned pointer value [-Waddress-of-packed-member] 113 | iterator->_next_bitmap = &radiotap_header->it_present; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 5%] Linking C static library libradiotap.a [ 5%] Built target radiotap [ 8%] Building C object src/CMakeFiles/awdl.dir/log.c.o [ 10%] Building C object src/CMakeFiles/awdl.dir/state.c.o [ 13%] Building C object src/CMakeFiles/awdl.dir/election.c.o [ 16%] Building C object src/CMakeFiles/awdl.dir/sync.c.o [ 18%] Building C object src/CMakeFiles/awdl.dir/channel.c.o [ 21%] Building C object src/CMakeFiles/awdl.dir/schedule.c.o [ 24%] Building C object src/CMakeFiles/awdl.dir/tx.c.o [ 27%] Building C object src/CMakeFiles/awdl.dir/rx.c.o [ 29%] Building C object src/CMakeFiles/awdl.dir/frame.c.o [ 32%] Building C object src/CMakeFiles/awdl.dir/crc32.c.o [ 35%] Building C object src/CMakeFiles/awdl.dir/wire.c.o [ 37%] Building C object src/CMakeFiles/awdl.dir/peers.c.o [ 40%] Building C object src/CMakeFiles/awdl.dir/version.c.o [ 43%] Building C object src/CMakeFiles/awdl.dir/hashmap.c.o [ 45%] Building C object src/CMakeFiles/awdl.dir/siphash24.c.o [ 48%] Building C object src/CMakeFiles/awdl.dir/circular_buffer.c.o [ 51%] Linking C static library libawdl.a [ 51%] Built target awdl [ 54%] Building C object daemon/CMakeFiles/owl.dir/io.c.o [ 56%] Building C object daemon/CMakeFiles/owl.dir/core.c.o [ 59%] Building C object daemon/CMakeFiles/owl.dir/netutils.c.o [ 62%] Building C object daemon/CMakeFiles/owl.dir/owl.c.o [ 64%] Linking C executable owl [ 64%] Built target owl [ 67%] Building CXX object googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o In file included from /home/SamuraiDestroy/sources/owl/googletest/googletest/src/gtest-all.cc:42: /home/SamuraiDestroy/sources/owl/googletest/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’: /home/SamuraiDestroy/sources/owl/googletest/googletest/src/gtest-death-test.cc:1301:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized] 1301 | StackLowerThanAddress(&dummy, &result); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /home/SamuraiDestroy/sources/owl/googletest/googletest/src/gtest-death-test.cc:1290:13: note: by argument 1 of type ‘const void*’ to ‘void testing::internal::StackLowerThanAddress(const void*, bool*)’ declared here 1290 | static void StackLowerThanAddress(const void* ptr, bool* result) { | ^~~~~~~~~~~~~~~~~~~~~ /home/SamuraiDestroy/sources/owl/googletest/googletest/src/gtest-death-test.cc:1299:7: note: ‘dummy’ declared here 1299 | int dummy; | ^~~~~ cc1plus: all warnings being treated as errors make[2]: *** [googletest/googletest/CMakeFiles/gtest.dir/build.make:79: googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:382: googletest/googletest/CMakeFiles/gtest.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 [ 5%] Built target radiotap [ 51%] Built target awdl [ 64%] Built target owl [ 67%] Building CXX object googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o In file included from /home/SamuraiDestroy/sources/owl/googletest/googletest/src/gtest-all.cc:42: /home/SamuraiDestroy/sources/owl/googletest/googletest/src/gtest-death-test.cc: In function ‘bool testing::internal::StackGrowsDown()’: /home/SamuraiDestroy/sources/owl/googletest/googletest/src/gtest-death-test.cc:1301:24: error: ‘dummy’ may be used uninitialized [-Werror=maybe-uninitialized] 1301 | StackLowerThanAddress(&dummy, &result); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /home/SamuraiDestroy/sources/owl/googletest/googletest/src/gtest-death-test.cc:1290:13: note: by argument 1 of type ‘const void*’ to ‘void testing::internal::StackLowerThanAddress(const void*, bool*)’ declared here 1290 | static void StackLowerThanAddress(const void* ptr, bool* result) { | ^~~~~~~~~~~~~~~~~~~~~ /home/SamuraiDestroy/sources/owl/googletest/googletest/src/gtest-death-test.cc:1299:7: note: ‘dummy’ declared here 1299 | int dummy; | ^~~~~ cc1plus: all warnings being treated as errors make[2]: *** [googletest/googletest/CMakeFiles/gtest.dir/build.make:79: googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:382: googletest/googletest/CMakeFiles/gtest.dir/all] Error 2 make: *** [Makefile:136: all] Error 2`

SamuraiDestroy avatar Dec 02 '24 09:12 SamuraiDestroy

can confirm I get the same error

BobbyRaduloff avatar Dec 05 '24 10:12 BobbyRaduloff

Same error on Debian 12.

This helped:

git submodule update --remote --merge

See: https://github.com/seemoo-lab/owl/issues/84#issuecomment-1717136277

Michae1Weiss avatar Dec 05 '24 21:12 Michae1Weiss

It worked

SamuraiDestroy avatar Dec 06 '24 07:12 SamuraiDestroy