firmware icon indicating copy to clipboard operation
firmware copied to clipboard

libevent build fail

Open cronyx opened this issue 3 years ago • 3 comments

libevent build fails after pull #320

local build t31 firmware:

--         ---( Libevent 2.2.0-alpha-dev )---
-- 
-- Available event backends: 
-- CMAKE_BINARY_DIR:         /home/cronyx/openipc/libevent/build
-- CMAKE_CURRENT_BINARY_DIR: /home/cronyx/openipc/libevent/build
-- CMAKE_SOURCE_DIR:         /home/cronyx/openipc/libevent
-- CMAKE_CURRENT_SOURCE_DIR: /home/cronyx/openipc/libevent
-- PROJECT_BINARY_DIR:       /home/cronyx/openipc/libevent/build
-- PROJECT_SOURCE_DIR:       /home/cronyx/openipc/libevent
-- CMAKE_MODULE_PATH:        /home/cronyx/openipc/libevent/cmake/
-- CMAKE_COMMAND:            /usr/bin/cmake
-- CMAKE_ROOT:               /usr/share/cmake-3.16
-- CMAKE_SYSTEM:             Linux-5.15.0-41-generic
-- CMAKE_SYSTEM_NAME:        Linux
-- CMAKE_SYSTEM_VERSION:     5.15.0-41-generic
-- CMAKE_SYSTEM_PROCESSOR:   x86_64
-- CMAKE_SKIP_RPATH:         NO
-- CMAKE_SKIP_INSTALL_RPATH: ON
-- CMAKE_INSTALL_RPATH:      /home/cronyx/openipc/libevent/install/lib
-- CMAKE_VERBOSE_MAKEFILE:   FALSE
-- CMAKE_C_FLAGS:             -Wall -Wextra -Wno-unused-parameter -Wstrict-aliasing -Wstrict-prototypes -Wundef -fno-strict-aliasing -Wmissing-prototypes -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement -Waddress -Wnormalized=id -Woverride-init -Wlogical-op -Wwrite-strings -Wno-unused-function
-- CMAKE_BUILD_TYPE:         Debug
-- CMAKE_C_COMPILER:         /usr/bin/cc (id GNU, clang 0, GNUC 1, version 9.4.0)
-- CMAKE_AR:                 /usr/bin/ar
-- CMAKE_RANLIB:             /usr/bin/ranlib
-- CMAKE_INSTALL_PREFIX:     /home/cronyx/openipc/libevent/install
-- 
-- Configuring incomplete, errors occurred!
See also "/home/cronyx/openipc/libevent/build/CMakeFiles/CMakeOutput.log".
See also "/home/cronyx/openipc/libevent/build/CMakeFiles/CMakeError.log".

try to build latest libevent source:

cmake -H. -Bbuild -DCMAKE_INSTALL_PREFIX=$(pwd)/install -DCMAKE_BUILD_TYPE=Debug -DEVENT__DISABLE_OPENSSL=ON -DEVENT__DISABLE_MBEDTLS=OFF -~E_BENCHMARK=ON -DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_TESTS=ON  -DEVENT__DISABLE_MBEDTLS=ON -DCMAKE_INSTALL_RPATH=$(pwd)/install/lib

get the same error.

cronyx avatar Aug 09 '22 07:08 cronyx

cmake version issue:

ubuntu 20.04 - (from packages) v3.16.x - not ok
ubuntu 21.10 - (from packages) v3.18.x - not ok
ubuntu 20.04 - (from source) v3.24.x - ok

cronyx avatar Aug 09 '22 10:08 cronyx

Opened issue in libevent repo. As for temporary workaround pip install cmake will mitigate issue on local build machine

widgetii avatar Aug 09 '22 10:08 widgetii

upgrading cmake from sources to version 3.24.0 has worked for me.

leonelhs avatar Aug 12 '22 19:08 leonelhs