Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failure with gcc 15 #287

Open
sbwml opened this issue Feb 16, 2025 · 1 comment
Open

build failure with gcc 15 #287

sbwml opened this issue Feb 16, 2025 · 1 comment

Comments

@sbwml
Copy link

sbwml commented Feb 16, 2025

nethogs source: d8badf2
gcc version: 15.0.1 (GCC 15-20250209 Snapshot)

full logs:

make[2]: Entering directory '/home/sbwml/openwrt/package/new/nethogs'
touch /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/.prepared_b6c0fb52abfd324626b84d5ce2e53dd3_6664517399ebbbc92a37c5bb081b5c53_check
. /home/sbwml/openwrt/include/shell.sh; zstdcat /home/sbwml/openwrt/dl/nethogs-2025.01.26~d8badf28.tar.zst | tar -C /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28

Applying /home/sbwml/openwrt/package/new/nethogs/patches/100-build-skip-test.patch using plaintext: 
patching file Makefile
touch /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/.prepared_b6c0fb52abfd324626b84d5ce2e53dd3_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/.configured_*
rm -f /home/sbwml/openwrt/staging_dir/target-aarch64_generic_musl/stamp/.nethogs_installed
(cd /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/./; if [ -x ./configure ]; then find /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/ -name config.guess | xargs -r chmod u+w; find /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/ -name config.guess | xargs -r -n1 cp --remove-destination /home/sbwml/openwrt/scripts/config.guess; find /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/ -name config.sub | xargs -r chmod u+w; find /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/ -name config.sub | xargs -r -n1 cp --remove-destination /home/sbwml/openwrt/scripts/config.sub; AR="aarch64-openwrt-linux-musl-gcc-ar" AS="ccache aarch64-openwrt-linux-musl-gcc -c -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD="aarch64-openwrt-linux-musl-ld.bfd" NM="aarch64-openwrt-linux-musl-gcc-nm" CC="ccache aarch64-openwrt-linux-musl-gcc" GCC="ccache aarch64-openwrt-linux-musl-gcc" CXX="ccache aarch64-openwrt-linux-musl-g++" RANLIB="aarch64-openwrt-linux-musl-gcc-ranlib" STRIP=aarch64-openwrt-linux-musl-strip OBJCOPY=aarch64-openwrt-linux-musl-objcopy OBJDUMP=aarch64-openwrt-linux-musl-objdump SIZE=aarch64-openwrt-linux-musl-size CFLAGS="-O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections " CPPFLAGS="-I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify " LDFLAGS="-L/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/lib -L/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib -fuse-ld=bfd -Wl,--gc-sections -znow -zrelro "   ./configure --target=aarch64-openwrt-linux --host=aarch64-openwrt-linux --build=x86_64-pc-linux-gnu --disable-dependency-tracking --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  ; fi; )
touch /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/.built
touch /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/.built_check
CFLAGS="-O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify " CXXFLAGS="-O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify " LDFLAGS="-L/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/lib -L/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib -fuse-ld=bfd -Wl,--gc-sections -znow -zrelro " make  -C /home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/. AR="aarch64-openwrt-linux-musl-gcc-ar" AS="ccache aarch64-openwrt-linux-musl-gcc -c -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD="aarch64-openwrt-linux-musl-ld.bfd" NM="aarch64-openwrt-linux-musl-gcc-nm" CC="ccache aarch64-openwrt-linux-musl-gcc" GCC="ccache aarch64-openwrt-linux-musl-gcc" CXX="ccache aarch64-openwrt-linux-musl-g++" RANLIB="aarch64-openwrt-linux-musl-gcc-ranlib" STRIP=aarch64-openwrt-linux-musl-strip OBJCOPY=aarch64-openwrt-linux-musl-objcopy OBJDUMP=aarch64-openwrt-linux-musl-objdump SIZE=aarch64-openwrt-linux-musl-size CROSS="aarch64-openwrt-linux-musl-" ARCH="aarch64" ;
make[3]: Entering directory '/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28'
./determineVersion.sh: line 2: [: ==: unary operator expected
make -C src -f MakeApp.mk decpcap_test
make[4]: Entering directory '/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/src'
ccache aarch64-openwrt-linux-musl-gcc  -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify  -c decpcap.c
ccache aarch64-openwrt-linux-musl-g++  -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify  -L/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/lib -L/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib -fuse-ld=bfd -Wl,--gc-sections -znow -zrelro  decpcap_test.cpp decpcap.o -o decpcap_test -lpcap -lm
make[4]: Leaving directory '/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/src'
make -C src -f MakeApp.mk nethogs
make[4]: Entering directory '/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28/src'
ccache aarch64-openwrt-linux-musl-g++  -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify  -c packet.cpp
ccache aarch64-openwrt-linux-musl-g++  -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify  -c connection.cpp
ccache aarch64-openwrt-linux-musl-g++  -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify  -c process.cpp
ccache aarch64-openwrt-linux-musl-g++  -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify  -c cui.cpp -DVERSION=\"2025.01.26~d8badf28\"
ccache aarch64-openwrt-linux-musl-g++  -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify  -c inode2prog.cpp
ccache aarch64-openwrt-linux-musl-g++  -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify  -c conninode.cpp
ccache aarch64-openwrt-linux-musl-g++ -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify    -c -o devices.o devices.cpp
ccache aarch64-openwrt-linux-musl-g++  -O3 -Wl,--gc-sections -pipe -march=armv8-a+crc+crypto  -fhonour-copts -fmacro-prefix-map=/home/sbwml/openwrt/build_dir/target-aarch64_generic_musl/nethogs-2025.01.26~d8badf28=nethogs-2025.01.26~d8badf28 -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections  -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include -I/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/include/fortify  -L/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/usr/lib -L/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib -fuse-ld=bfd -Wl,--gc-sections -znow -zrelro  main.cpp packet.o connection.o process.o decpcap.o cui.o inode2prog.o conninode.o devices.o -o nethogs -lpcap -lm -lncurses -DVERSION=\"2025.01.26~d8badf28\"
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: process.o: in function `std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned long> > std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned long>, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned long> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned long> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, unsigned long> >, std::piecewise_construct_t const&, std::tuple<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&>&&, std::tuple<>&&) [clone .isra.0]':
process.cpp:(.text._ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJOS5_EESJ_IJEEEEESt17_Rb_tree_iteratorIS8_ESt23_Rb_tree_const_iteratorIS8_EDpOT_.isra.0+0x20c): undefined reference to `std::_Rb_tree_insert_and_rebalance(int, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: process.cpp:(.text._ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_mESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJOS5_EESJ_IJEEEEESt17_Rb_tree_iteratorIS8_ESt23_Rb_tree_const_iteratorIS8_EDpOT_.isra.0+0x434): undefined reference to `std::_Rb_tree_insert_and_rebalance(int, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
process.o: in function `getProcess(unsigned long, char const*)':
process.cpp:(.text._Z10getProcessmPKc+0x1c0): relocation truncated to fit: R_AARCH64_LDST32_ABS_LO12_NC against symbol `bughuntmode' defined in .bss.bughuntmode section in /home/sbwml/openwrt/tmp/ccl0WiAJ.o
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: process.cpp:(.text._Z10getProcessmPKc+0x1c0): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
process.o: in function `getProcess(Connection*, char const*, short)':
process.cpp:(.text._Z10getProcessP10ConnectionPKcs+0x184): relocation truncated to fit: R_AARCH64_LDST32_ABS_LO12_NC against symbol `bughuntmode' defined in .bss.bughuntmode section in /home/sbwml/openwrt/tmp/ccl0WiAJ.o
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: process.cpp:(.text._Z10getProcessP10ConnectionPKcs+0x184): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: process.cpp:(.text._Z10getProcessP10ConnectionPKcs+0x30c): undefined reference to `std::_Rb_tree_insert_and_rebalance(int, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
process.cpp:(.text._Z10getProcessP10ConnectionPKcs+0x3f0): relocation truncated to fit: R_AARCH64_LDST32_ABS_LO12_NC against symbol `bughuntmode' defined in .bss.bughuntmode section in /home/sbwml/openwrt/tmp/ccl0WiAJ.o
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: process.cpp:(.text._Z10getProcessP10ConnectionPKcs+0x3f0): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
process.cpp:(.text._Z10getProcessP10ConnectionPKcs+0x418): relocation truncated to fit: R_AARCH64_LDST32_ABS_LO12_NC against symbol `bughuntmode' defined in .bss.bughuntmode section in /home/sbwml/openwrt/tmp/ccl0WiAJ.o
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: process.cpp:(.text._Z10getProcessP10ConnectionPKcs+0x418): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
process.cpp:(.text._Z10getProcessP10ConnectionPKcs+0x558): relocation truncated to fit: R_AARCH64_LDST32_ABS_LO12_NC against symbol `bughuntmode' defined in .bss.bughuntmode section in /home/sbwml/openwrt/tmp/ccl0WiAJ.o
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: process.cpp:(.text._Z10getProcessP10ConnectionPKcs+0x558): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
process.cpp:(.text._Z10getProcessP10ConnectionPKcs+0x6d0): relocation truncated to fit: R_AARCH64_LDST32_ABS_LO12_NC against symbol `bughuntmode' defined in .bss.bughuntmode section in /home/sbwml/openwrt/tmp/ccl0WiAJ.o
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: process.cpp:(.text._Z10getProcessP10ConnectionPKcs+0x6d0): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
cui.o: in function `Line::log()':
cui.cpp:(.text._ZN4Line3logEv+0x44): relocation truncated to fit: R_AARCH64_LDST32_ABS_LO12_NC against symbol `showcommandline' defined in .bss.showcommandline section in /home/sbwml/openwrt/tmp/ccl0WiAJ.o
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: cui.cpp:(.text._ZN4Line3logEv+0x44): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
cui.o: in function `ui_tick()':
cui.cpp:(.text._Z7ui_tickv+0xc4): relocation truncated to fit: R_AARCH64_LDST32_ABS_LO12_NC against symbol `showcommandline' defined in .bss.showcommandline section in /home/sbwml/openwrt/tmp/ccl0WiAJ.o
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: cui.cpp:(.text._Z7ui_tickv+0xc4): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
cui.cpp:(.text._Z7ui_tickv+0xd0): relocation truncated to fit: R_AARCH64_LDST32_ABS_LO12_NC against symbol `showcommandline' defined in .bss.showcommandline section in /home/sbwml/openwrt/tmp/ccl0WiAJ.o
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: cui.cpp:(.text._Z7ui_tickv+0xd0): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
cui.o: in function `Line::show(int, unsigned int, unsigned int)':
cui.cpp:(.text._ZN4Line4showEijj+0x140): relocation truncated to fit: R_AARCH64_LDST32_ABS_LO12_NC against symbol `showcommandline' defined in .bss.showcommandline section in /home/sbwml/openwrt/tmp/ccl0WiAJ.o
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: cui.cpp:(.text._ZN4Line4showEijj+0x140): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
cui.cpp:(.text._ZN4Line4showEijj+0x2c8): additional relocation overflows omitted from the output
/home/sbwml/openwrt/staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/lib/gcc/aarch64-openwrt-linux-musl/15.0.1/../../../../aarch64-openwrt-linux-musl/bin/ld.bfd: cui.cpp:(.text._ZN4Line4showEijj+0x2c8): warning: one possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined
collect2: error: ld returned 1 exit status
make[4]: *** [MakeApp.mk:30: nethogs] Error 1
@sbwml
Copy link
Author

sbwml commented Feb 16, 2025

Currently, GCC 15 defaults to using C++17 and C23.

[sbwml@redhat openwrt]$ echo | ./staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/bin/aarch64-openwrt-linux-gcc -dM -E -x c++ - | grep __cplusplus
#define __cplusplus 201703L
[sbwml@redhat openwrt]$ echo | ./staging_dir/toolchain-aarch64_generic_gcc-15.0.1_musl/bin/aarch64-openwrt-linux-gcc -dM -E -x c - | grep __STDC_VERSION__
#define __STDC_VERSION__ 202311L
[sbwml@redhat openwrt]$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant