[kea-dev] Boost 1.89 build woes
Philip Prindeville
philipp_subx at redfish-solutions.com
Tue Sep 30 15:30:20 UTC 2025
3.1.2 also fails to build:
make[2]: Entering directory '/home/philipp/lede/feeds/packages/net/kea'
rm -f /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/.configured_*
rm -f /home/philipp/lede/staging_dir/target-x86_64_musl/stamp/.kea_installed
(cd /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2; rm -f aclocal.m4; if [ -f ./configure.ac ] || [ -f ./configure.in ]; then [ -d ./autom4te.cache ] && rm -rf ./autom4te.cache; [ -e ./config.rpath ] || ln -s /home/philipp/lede/scripts/config.rpath ./config.rpath; touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; AUTOM4TE=/home/philipp/lede/staging_dir/host/bin/autom4te AUTOCONF=/home/philipp/lede/staging_dir/host/bin/autoconf AUTOMAKE=/home/philipp/lede/staging_dir/host/bin/automake ACLOCAL=/home/philipp/lede/staging_dir/host/bin/aclocal AUTOHEADER=/home/philipp/lede/staging_dir/host/bin/autoheader LIBTOOLIZE=/home/philipp/lede/staging_dir/host/bin/libtoolize LIBTOOL=/home/philipp/lede/staging_dir/host/bin/libtool M4=/home/philipp/lede/staging_dir/host/bin/m4 AUTOPOINT=true GTKDOCIZE=true LIBTOOLIZE='/home/philipp/lede/staging_dir/host/bin/libtoolize --install' /home/philipp/lede/staging_dir/host/bin/autoreconf -v -f -i -B /home/philipp/lede/staging_dir/host/share/aclocal -I /home/philipp/lede/staging_dir/target-x86_64_musl/host/share/aclocal -I /home/philipp/lede/staging_dir/hostpkg/share/aclocal -I /home/philipp/lede/staging_dir/target-x86_64_musl/usr/share/aclocal -I m4 -I . . || true; fi; );
/home/philipp/lede/staging_dir/host/bin/sed -e "s|@CC@|'/home/philipp/lede/staging_dir/host/bin/gcc',|" -e "s|@CXX@|'/home/philipp/lede/staging_dir/host/bin/g++',|" -e "s|@PKGCONFIG@|/home/philipp/lede/staging_dir/host/bin/pkg-config|" -e "s|@CMAKE@|/home/philipp/lede/staging_dir/host/bin/cmake|" -e "s|@PYTHON@|/home/philipp/lede/staging_dir/host/bin/python3|" -e "s|@CFLAGS@|'-O2', '-I/home/philipp/lede/staging_dir/host/include', '-I/home/philipp/lede/staging_dir/hostpkg/include', '-I/home/philipp/lede/staging_dir/target-x86_64_musl/host/include', '-I/home/philipp/lede/staging_dir/host/include', '-I/home/philipp/lede/staging_dir/hostpkg/include', '-I/home/philipp/lede/staging_dir/target-x86_64_musl/host/include',|" -e "s|@CXXFLAGS@|'-O2', '-I/home/philipp/lede/staging_dir/host/include', '-I/home/philipp/lede/staging_dir/hostpkg/include', '-I/home/philipp/lede/staging_dir/target-x86_64_musl/host/include', '-I/home/philipp/lede/staging_dir/host/include', '-I/home/philipp/lede/staging_dir/hostpkg/include', '-I/home/philipp/lede/staging_dir/target-x86_64_musl/host/include',|" -e "s|@LDFLAGS@|'-L/home/philipp/lede/staging_dir/host/lib', '-L/home/philipp/lede/staging_dir/hostpkg/lib', '-L/home/philipp/lede/staging_dir/target-x86_64_musl/host/lib',|" -e "s|@PREFIX@||" < /home/philipp/lede/staging_dir/host/lib/meson/openwrt-native.txt.in > /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/openwrt-native.txt
/home/philipp/lede/staging_dir/host/bin/sed -e "s|@CC@|'x86_64-openwrt-linux-musl-gcc',|" -e "s|@CXX@|'x86_64-openwrt-linux-musl-g++',|" -e "s|@LD@|'bfd',|" -e "s|@AR@|x86_64-openwrt-linux-musl-gcc-ar|" -e "s|@STRIP@|x86_64-openwrt-linux-musl-strip|" -e "s|@NM@|x86_64-openwrt-linux-musl-gcc-nm|" -e "s|@PKGCONFIG@|/home/philipp/lede/staging_dir/host/bin/pkg-config|" -e "s|@CMAKE@|/home/philipp/lede/staging_dir/host/bin/cmake|" -e "s|@PYTHON@|/home/philipp/lede/staging_dir/host/bin/python3|" -e "s|@CFLAGS@|'-Os', '-pipe', '-g3', '-fno-caller-saves', '-fno-plt', '-fhonour-copts', '-fmacro-prefix-map=/home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2=kea-3.1.2', '-ffunction-sections', '-fdata-sections', '-Wformat', '-Werror=format-security', '-fstack-protector', '-D_FORTIFY_SOURCE=1', '-Wl,-z,now', '-Wl,-z,relro', '-I/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.3.0_musl/usr/include', '-I/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.3.0_musl/include', '-I/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.3.0_musl/include/fortify',|" -e "s|@CXXFLAGS@|'-Os', '-pipe', '-g3', '-fno-caller-saves', '-fno-plt', '-fhonour-copts', '-fmacro-prefix-map=/home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2=kea-3.1.2', '-ffunction-sections', '-fdata-sections', '-Wformat', '-Werror=format-security', '-fstack-protector', '-D_FORTIFY_SOURCE=1', '-Wl,-z,now', '-Wl,-z,relro', '-ffunction-sections', '-fdata-sections', '-DPIC', '-fpic', '-std=c++17', '-I/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.3.0_musl/usr/include', '-I/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.3.0_musl/include', '-I/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.3.0_musl/include/fortify',|" -e "s|@LDFLAGS@|'-L/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.3.0_musl/usr/lib', '-L/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.3.0_musl/lib', '-fuse-ld=bfd', '-Wl,--gc-sections', '-znow', '-zrelro', '-Wl,--as-needed',|" -e "s|@ARCH@|"x86_64"|" -e "s|@CPU@|"generic"|" -e "s|@ENDIAN@|little|" < /home/philipp/lede/staging_dir/host/lib/meson/openwrt-cross.txt.in > /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/openwrt-cross.txt
/home/philipp/lede/staging_dir/host/bin/python3 /home/philipp/lede/staging_dir/host/bin/meson.py setup --buildtype debug --native-file /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/openwrt-native.txt --cross-file /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/openwrt-cross.txt -Ddefault_library=both -Dtests=disabled /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/openwrt-build /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/openwrt-build/..
The Meson build system
Version: 1.6.1
Source dir: /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2
Build dir: /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/openwrt-build
Build type: cross build
Project name: kea
Project version: 3.1.2
C++ compiler for the host machine: x86_64-openwrt-linux-musl-g++ (gcc 14.3.0 "x86_64-openwrt-linux-musl-g++ (OpenWrt GCC 14.3.0 r30067-69dce4f298) 14.3.0")
C++ linker for the host machine: x86_64-openwrt-linux-musl-g++ ld.bfd 2.42
C++ compiler for the build machine: /home/philipp/lede/staging_dir/host/bin/g++ (gcc 13.3.0 "g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0")
C++ linker for the build machine: /home/philipp/lede/staging_dir/host/bin/g++ ld.bfd 2.42
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: generic
Target machine cpu family: x86_64
Target machine cpu: generic
Program cppcheck found: NO
Program cppcheck-htmlreport found: NO
Program git found: YES (/home/philipp/lede/staging_dir/host/bin/git)
Program valgrind found: YES (/usr/bin/valgrind)
Program gawk found: YES (/usr/bin/gawk)
Program bison found: YES 3.8.2 3.8.2 (/home/philipp/lede/staging_dir/host/bin/bison)
Program doxygen found: NO
Program flex found: YES 2.6.4 2.6.4 (/home/philipp/lede/staging_dir/host/bin/flex)
Program install found: YES (/home/philipp/lede/staging_dir/host/bin/install)
Program pdflatex found: NO
Program pip-compile found: YES (/home/philipp/.local/bin/pip-compile)
Program plantuml found: NO
Program python found: YES
Program sphinx-build sphinx-build-3 found: NO
Program sudo found: YES (/usr/bin/sudo)
Program xmllint found: NO
Program /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/scripts/cd-and-run.sh found: YES (/home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/scripts/cd-and-run.sh)
Program /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/scripts/env.sh found: YES (/home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/scripts/env.sh)
Program /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/scripts/grabber.py found: YES (/home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/scripts/grabber.py)
Message: Detected system "linux".
Found pkg-config: YES (/home/philipp/lede/staging_dir/host/bin/pkg-config) 2.5.1
Run-time dependency Boost found: YES 1.89.0 (/home/philipp/lede/staging_dir/target-x86_64_musl/usr)
Run-time dependency dl found: YES
Run-time dependency threads found: YES
Has header "boost/asio.hpp" with dependency boost: YES Has header "boost/asio/coroutine.hpp" with dependency boost: YES Has header "boost/asio/io_context.hpp" with dependency boost: YES Has header "boost/asio/ip/address.hpp" with dependency boost: YES Has header "boost/asio/deadline_timer.hpp" with dependency boost: YES Has header "boost/asio/signal_set.hpp" with dependency boost: YES Has header "boost/circular_buffer.hpp" with dependency boost: YES Has header "boost/date_time/posix_time/posix_time_types.hpp" with dependency boost: YES Has header "boost/foreach.hpp" with dependency boost: YES Has header "boost/functional/hash.hpp" with dependency boost: YES Has header "boost/integer/common_factor.hpp" with dependency boost: YES Has header "boost/interprocess/sync/interprocess_upgradable_mutex.hpp" with dependency boost: YES Has header "boost/multiprecision/cpp_int.hpp" with dependency boost: YES Has header "boost/shared_ptr.hpp" with dependency boost: YES Has header "boost/system/error_code.hpp" with dependency boost: YES Run-time dependency log4cplus found: YES 2.1.1
Found CMake: /home/philipp/lede/staging_dir/host/bin/cmake (3.31.5)
Run-time dependency botan-3 found: NO (tried pkgconfig and cmake)
Run-time dependency botan found: NO (tried pkgconfig and cmake)
Run-time dependency openssl found: YES 3.5.1
Run-time dependency krb5-gssapi found: YES 1.21.3
Has header "gssapi/gssapi.h" with dependency krb5-gssapi: YES Has header "gssapi/gssapi_krb5.h" with dependency krb5-gssapi: YES Run-time dependency mariadb found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency mariadb
Executing subproject mysql
mysql| Project name: mysql
mysql| Project version: undefined
mysql| Run-time dependency mysql found: NO (tried pkgconfig and cmake)
mysql| Program mariadb_config found: NO
mysql| Program mysql_config found: YES (/home/philipp/lede/staging_dir/target-x86_64_musl/host/bin/mysql_config)
mysql| Build targets in project: 0
mysql| Subproject mysql finished.
Dependency mariadb from subproject subprojects/mysql found: YES 10.8.8
Run-time dependency libpq found: YES 17.5
Run-time dependency yang found: NO (tried pkgconfig and cmake)
Run-time dependency libyang found: NO (tried pkgconfig and cmake)
Run-time dependency GTest found: NO (tried pkgconfig and system)
Looking for a fallback subproject for the dependency gtest
Downloading gtest source from https://github.com/google/googletest/archive/refs/tags/v1.15.2.tar.gz
Download size: 872667
Downloading: ..........
Downloading gtest patch from https://wrapdb.mesonbuild.com/v2/gtest_1.15.2-4/get_patch
Download size: 2817
Downloading: ..........
Executing subproject gtest
gtest| Project name: gtest
gtest| Project version: 1.15.2
gtest| C++ compiler for the host machine: x86_64-openwrt-linux-musl-g++ (gcc 14.3.0 "x86_64-openwrt-linux-musl-g++ (OpenWrt GCC 14.3.0 r30067-69dce4f298) 14.3.0")
gtest| C++ linker for the host machine: x86_64-openwrt-linux-musl-g++ ld.bfd 2.42
gtest| C++ compiler for the build machine: /home/philipp/lede/staging_dir/host/bin/g++ (gcc 13.3.0 "g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0")
gtest| C++ linker for the build machine: /home/philipp/lede/staging_dir/host/bin/g++ ld.bfd 2.42
gtest| Dependency threads found: YES unknown (cached)
gtest| Build targets in project: 8
gtest| Subproject gtest finished.
Dependency gtest from subproject subprojects/googletest-1.15.2 found: YES 1.15.2
Has header "boost/asio/ssl.hpp" with dependency boost: YES Message: Using OpenSSL.
Program python3 found: YES (/home/philipp/lede/staging_dir/host/bin/python3)
../../../../build_dir/target-x86_64_musl/kea-3.1.2/meson.build:371:13: ERROR: Can not run test applications in this cross environment.
A full log can be found at /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/openwrt-build/meson-logs/meson-log.txt
make[2]: *** [Makefile:295: /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[2]: Leaving directory '/home/philipp/lede/feeds/packages/net/kea'
time: package/feeds/packages/kea/compile#3.23#0.63#5.63
ERROR: package/feeds/packages/kea failed to build.
make[1]: *** [package/Makefile:183: package/feeds/packages/kea/compile] Error 1
make[1]: Leaving directory '/home/philipp/lede'
make: *** [/home/philipp/lede/include/toplevel.mk:233: package/kea/compile] Error 2
I’d suggest two things to change:
(1) make OpenWRT a supported platform for Kea so that the CI/CD attempts to build it;
(2) that cross builds don’t attempt to run tests.
The defaults for tests and fuzz is “disabled”, and looking at meson.build I see:
# Google Test
GTEST_DEP = dependency(
'gtest',
fallback: ['gtest', 'gtest_dep'],
required: FUZZ_OPT.enabled() or TESTS_OPT.enabled(),
)
so the tests shouldn’t run by default, correct? But it seems like it’s trying to anyway.
What am I missing?
> On Sep 30, 2025, at 3:34 AM, Francis Dupont <fdupont at isc.org> wrote:
>
> Does #3982 help with cross-compile? It comes with a patch.
> If it is the case I'll return it to triage so it should be fixed in a next
> release and eventually backported to 3.0.
>
> Thanks
>
> Francis Dupont <fdupont at isc.org>
More information about the kea-dev
mailing list