Applying ./patches/010-openssl-deprecated.patch using plaintext: patching file src/dtls.c Applying ./patches/020-unused.patch using plaintext: patching file src/hnetd.h CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 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 12.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /builder/shared-workdir/build/sdk/staging_dir/toolchain-aarch64_cortex-a72_gcc-12.2.0_musl/bin/aarch64-openwrt-linux-musl-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found PkgConfig: /builder/shared-workdir/build/sdk/staging_dir/host/bin/pkg-config (found version "1.9.4") -- Checking for module 'json-c' -- Found json-c, version 0.16 fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). -- Configuring done (1.5s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_ASM_COMPILER CMAKE_ASM_COMPILER_LAUNCHER CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS_RELEASE CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_EXPORT_PACKAGE_REGISTRY CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY CMAKE_FIND_USE_PACKAGE_REGISTRY CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS DL_LIBRARY -- Build files have been written to: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661 ninja: Entering directory `/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661' [1/76] Building C object CMakeFiles/L_HT.dir/src/hnetd_time.c.o /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd_time.c: In function 'hnetd_time_timeout_remaining': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd_time.c:40:3: warning: 'uloop_timeout_remaining' is deprecated: use uloop_timeout_remaining64 [-Wdeprecated-declarations] 40 | return uloop_timeout_remaining(timeout); | ^~~~~~ In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd_time.h:21, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd_time.c:12: /builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a72_musl/usr/include/libubox/uloop.h:95:5: note: declared here 95 | int uloop_timeout_remaining(struct uloop_timeout *timeout) __attribute__((deprecated("use uloop_timeout_remaining64"))); | ^~~~~~~~~~~~~~~~~~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [2/76] Building C object CMakeFiles/L_PX.dir/src/prefix.c.o [3/76] Building C object CMakeFiles/L_BT.dir/src/btrie.c.o [4/76] Building C object CMakeFiles/L_BO.dir/src/bitops.c.o [5/76] Building C object CMakeFiles/L_PU.dir/src/prefix_utils.c.o [6/76] Building C object CMakeFiles/L_TLV.dir/src/tlv.c.o [7/76] Building C object CMakeFiles/L_DNCP_BASE.dir/src/dncp.c.o [8/76] Building C object CMakeFiles/L_DNCP_BASE.dir/src/dncp_notify.c.o [9/76] Building C object CMakeFiles/L_DNCP_BASE.dir/src/dncp_timeout.c.o [10/76] Building C object CMakeFiles/L_PA.dir/src/pa_core.c.o /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.c:691:70: warning: argument 2 of type 'const uint32_t[]' {aka 'const unsigned int[]'} with mismatched bound [-Warray-parameter=] 691 | void pa_core_set_node_id(struct pa_core *core, const PA_NODE_ID_TYPE node_id[]) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.c:8: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.h:208:39: note: previously declared as 'const uint32_t[1]' {aka 'const unsigned int[1]'} 208 | const PA_NODE_ID_TYPE id[PA_NODE_ID_LEN]); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [11/76] Building C object CMakeFiles/L_PA.dir/src/pa_filters.c.o [12/76] Building C object CMakeFiles/L_PA.dir/src/pa_rules.c.o In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_conf.h:147, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.h:43, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.h:16, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.c:7: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.h: In function 'pa_rule_random_override_match': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.h:67:5: warning: 'best_type' may be used uninitialized [-Wmaybe-uninitialized] 67 | hnetd_log(level, L_PREFIX __VA_ARGS__); \ | ^~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.c:188:17: note: 'best_type' was declared here 188 | uint8_t best_type; | ^~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.c:238:17: warning: 'best_plen' may be used uninitialized [-Wmaybe-uninitialized] 238 | bmemcpy_shift(&tentative, best_plen, &id, 32 - (desired_plen - best_plen), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 239 | desired_plen - best_plen); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.c:187:17: note: 'best_plen' was declared here 187 | pa_plen best_plen; | ^~~~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [13/76] Building C object CMakeFiles/L_PA.dir/src/pa_store.c.o [14/76] Building C object CMakeFiles/L_DNCP_PROTO.dir/src/dncp_proto.c.o /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/dncp_proto.c: In function '_push_tlv': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/dncp_proto.c:59:67: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 59 | if ((tlv_len(tb->head) + len + sizeof(struct tlv_attr)) > (1<' may result in an unaligned pointer value [-Waddress-of-packed-member] 1348 | &ra->address, 128, ra->ep_id, 0))) { | ^~~~~~~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [17/76] Building C object CMakeFiles/L_HNCP_GLUE.dir/src/hncp_sd.c.o /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c: In function 'hncp_sd_reconfigure_pcp': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:566:30: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 566 | a4 = &ra->address; | ^~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:568:30: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 568 | a6 = &ra->address; | ^~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c: In function '_set_router_name': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:641:36: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 641 | if (!iface_get_preferred_address(&rname->address, false, NULL)) | ^~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:645:36: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 645 | if (!iface_get_preferred_address(&rname->address, true, NULL)) | ^~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c: In function '_tlv_ddz_matches': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:673:20: warning: '%s' directive writing up to 1008 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 673 | sprintf(buf, "%s.%s", sd->router_name, sd->hncp->domain); | ^~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:673:3: note: 'sprintf' output between 2 and 1265 bytes into a destination of size 256 673 | sprintf(buf, "%s.%s", sd->router_name, sd->hncp->domain); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c: In function '_change_router_name': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:718:35: warning: '%d' directive writing between 1 and 11 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 718 | sprintf(sd->router_name, "%s%d", | ^~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:718:32: note: directive argument in the range [-2147483647, 2147483647] 718 | sprintf(sd->router_name, "%s%d", | ^~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:718:7: note: 'sprintf' output between 2 and 267 bytes into a destination of size 256 718 | sprintf(sd->router_name, "%s%d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 719 | sd->router_name_base, ++sd->router_name_iteration); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c: In function 'hncp_sd_reconfigure_ddz': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:421:36: warning: array subscript 4096 is outside array bounds of 'char[1009]' [-Warray-bounds] 421 | if (strlen(s) + 1 + c > (buf + ARGS_MAX_LEN)) \ | ~~~~~^~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:462:11: note: in expansion of macro 'PUSH_ARG' 462 | PUSH_ARG(buf); | ^~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:449:16: note: at offset 4096 into object 'buf' of size 1009 449 | char buf[DNS_MAX_ESCAPED_LEN]; | ^~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [18/76] Building C object CMakeFiles/L_HNCP_GLUE.dir/src/hncp_link.c.o [19/76] Building C object CMakeFiles/L_HNCP_GLUE.dir/src/exeq.c.o [20/76] Building C object CMakeFiles/L_HNCP_GLUE.dir/src/hncp_multicast.c.o /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_multicast.c: In function 'hm_bp_notify': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_multicast.c:167:61: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 167 | !addr_ntop(addr, INET6_ADDRSTRLEN, &p->addr) || | ^~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_multicast.c: In function 'hm_rpa_update': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_multicast.c:259:31: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 259 | hm_rpa_set(m, &((hncp_t_pim_rpa_candidate)found->data)->addr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [21/76] Building C object CMakeFiles/L_HNCP_IO.dir/src/hncp_io.c.o [22/76] Building C object CMakeFiles/L_HNCP_IO.dir/src/udp46.c.o [23/76] Building C object CMakeFiles/hnetd.dir/src/hncp_routing.c.o /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_routing.c: In function 'hncp_routing_exec': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_routing.c:174:85: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 174 | hn->bfs.next_hop4 = &ra->address; | ^~~~~~~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [24/76] Building C object CMakeFiles/hnetd.dir/src/hncp_dump.c.o [25/76] Building C object CMakeFiles/hnetd.dir/src/hnetd.c.o In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp.h:16, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_pa.h:18, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.c:23: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.c: In function 'main': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.h:66:6: warning: this statement may fall through [-Wimplicit-fallthrough=] 66 | if (hnetd_log && log_level >= level) \ | ^ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.h:71:20: note: in expansion of macro 'L_INTERNAL' 71 | #define L_ERR(...) L_INTERNAL(LOG_ERR, __VA_ARGS__) | ^~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.c:284:25: note: in expansion of macro 'L_ERR' 284 | L_ERR("Unrecognized option"); | ^~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.c:286:17: note: here 286 | case '?': | ^~~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [26/76] Building C object CMakeFiles/hnetd.dir/src/iface.c.o [27/76] Building C object CMakeFiles/hnetd.dir/src/pd.c.o [28/76] Building C object CMakeFiles/hnetd.dir/src/hncp_wifi.c.o [29/76] Building C object CMakeFiles/hnetd.dir/src/platform-openwrt.c.o [30/76] Building C object CMakeFiles/hnetd.dir/src/hncp_tunnel.c.o /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_tunnel.c: In function 'hncp_tunnel_is_private_v4': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_tunnel.c:163:60: warning: bitwise comparison always evaluates to false [-Wtautological-compare] 163 | (addr[0] == 172 && (addr[1] & 0xf) == 16) || | ^~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_tunnel.c: In function 'hncp_tunnel_discover': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_tunnel.c:240:75: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 240 | hncp_tunnel_is_private_v6(&negotiate.address.address))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [31/76] Linking C executable hnetd [32/76] Building C object CMakeFiles/dncp.dir/src/hnetd_time.c.o cc1: note: someone does not honour COPTS correctly, passed 2 times /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd_time.c: In function 'hnetd_time_timeout_remaining': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd_time.c:40:3: warning: 'uloop_timeout_remaining' is deprecated: use uloop_timeout_remaining64 [-Wdeprecated-declarations] 40 | return uloop_timeout_remaining(timeout); | ^~~~~~ In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd_time.h:21, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd_time.c:12: /builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a72_musl/usr/include/libubox/uloop.h:95:5: note: declared here 95 | int uloop_timeout_remaining(struct uloop_timeout *timeout) __attribute__((deprecated("use uloop_timeout_remaining64"))); | ^~~~~~~~~~~~~~~~~~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [33/76] Building C object CMakeFiles/dncp.dir/src/prefix.c.o cc1: note: someone does not honour COPTS correctly, passed 2 times [34/76] Building C object CMakeFiles/dncp.dir/src/tlv.c.o cc1: note: someone does not honour COPTS correctly, passed 2 times [35/76] Building C object CMakeFiles/dncp.dir/src/dncp.c.o cc1: note: someone does not honour COPTS correctly, passed 2 times [36/76] Building C object CMakeFiles/dncp.dir/src/dncp_notify.c.o cc1: note: someone does not honour COPTS correctly, passed 2 times [37/76] Building C object CMakeFiles/dncp.dir/src/dncp_timeout.c.o cc1: note: someone does not honour COPTS correctly, passed 2 times [38/76] Building C object CMakeFiles/dncp.dir/src/dncp_proto.c.o cc1: note: someone does not honour COPTS correctly, passed 2 times /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/dncp_proto.c: In function '_push_tlv': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/dncp_proto.c:59:67: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 59 | if ((tlv_len(tb->head) + len + sizeof(struct tlv_attr)) > (1<' may result in an unaligned pointer value [-Waddress-of-packed-member] 566 | a4 = &ra->address; | ^~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:568:30: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 568 | a6 = &ra->address; | ^~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c: In function '_set_router_name': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:641:36: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 641 | if (!iface_get_preferred_address(&rname->address, false, NULL)) | ^~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:645:36: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 645 | if (!iface_get_preferred_address(&rname->address, true, NULL)) | ^~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c: In function '_tlv_ddz_matches': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:673:20: warning: '%s' directive writing up to 1008 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 673 | sprintf(buf, "%s.%s", sd->router_name, sd->hncp->domain); | ^~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:673:3: note: 'sprintf' output between 2 and 1265 bytes into a destination of size 256 673 | sprintf(buf, "%s.%s", sd->router_name, sd->hncp->domain); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c: In function '_change_router_name': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:718:35: warning: '%d' directive writing between 1 and 11 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 718 | sprintf(sd->router_name, "%s%d", | ^~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:718:32: note: directive argument in the range [-2147483647, 2147483647] 718 | sprintf(sd->router_name, "%s%d", | ^~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:718:7: note: 'sprintf' output between 2 and 267 bytes into a destination of size 256 718 | sprintf(sd->router_name, "%s%d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 719 | sd->router_name_base, ++sd->router_name_iteration); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c: In function 'hncp_sd_reconfigure_ddz': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:421:36: warning: array subscript 4096 is outside array bounds of 'char[1009]' [-Warray-bounds] 421 | if (strlen(s) + 1 + c > (buf + ARGS_MAX_LEN)) \ | ~~~~~^~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:462:11: note: in expansion of macro 'PUSH_ARG' 462 | PUSH_ARG(buf); | ^~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hncp_sd.c:449:16: note: at offset 4096 into object 'buf' of size 1009 449 | char buf[DNS_MAX_ESCAPED_LEN]; | ^~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [56/76] Building C object CMakeFiles/test_hncp_sd.dir/src/hncp.c.o [57/76] Building C object CMakeFiles/test_hncp_sd.dir/src/hncp_link.c.o [58/76] Linking C executable test_hncp_sd [59/76] Building C object CMakeFiles/test_pa_core.dir/test/test_pa_core.c.o In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/test/test_pa_core.c:45: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.c:691:70: warning: argument 2 of type 'const uint32_t[]' {aka 'const unsigned int[]'} with mismatched bound [-Warray-parameter=] 691 | void pa_core_set_node_id(struct pa_core *core, const PA_NODE_ID_TYPE node_id[]) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.h:16, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/test/test_pa_core.c:42: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.h:208:39: note: previously declared as 'const uint32_t[1]' {aka 'const unsigned int[1]'} 208 | const PA_NODE_ID_TYPE id[PA_NODE_ID_LEN]); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/test/fake_uloop.h:40, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/test/test_pa_core.c:9: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/test/sput.h: In function 'pa_core_norule': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/test/sput.h:318:12: warning: 'ldp' may be used uninitialized [-Wmaybe-uninitialized] 318 | if (! (_cond)) \ | ^ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/test/test_pa_core.c:802:24: note: 'ldp' was declared here 802 | struct pa_ldp *ldp, *ldp2; | ^~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [60/76] Building C object CMakeFiles/test_pa_core.dir/src/pa_rules.c.o In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_conf.h:147, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.h:43, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.h:16, from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.c:7: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.h: In function 'pa_rule_random_override_match': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.h:67:5: warning: 'best_type' may be used uninitialized [-Wmaybe-uninitialized] 67 | hnetd_log(level, L_PREFIX __VA_ARGS__); \ | ^~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.c:188:17: note: 'best_type' was declared here 188 | uint8_t best_type; | ^~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.c:238:17: warning: 'best_plen' may be used uninitialized [-Wmaybe-uninitialized] 238 | bmemcpy_shift(&tentative, best_plen, &id, 32 - (desired_plen - best_plen), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 239 | desired_plen - best_plen); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.c:187:17: note: 'best_plen' was declared here 187 | pa_plen best_plen; | ^~~~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [61/76] Building C object CMakeFiles/test_pa_core.dir/src/pa_filters.c.o [62/76] Linking C executable test_pa_core [63/76] Building C object CMakeFiles/test_pa_filters.dir/test/test_pa_filters.c.o [64/76] Linking C executable test_pa_filters [65/76] Building C object CMakeFiles/test_pa_rules.dir/test/test_pa_rules.c.o In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/test/test_pa_rules.c:16: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.h: In function 'pa_rule_random_override_match': /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/hnetd.h:67:5: warning: 'best_type' may be used uninitialized [-Wmaybe-uninitialized] 67 | hnetd_log(level, L_PREFIX __VA_ARGS__); \ | ^~~~~~~~~ In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/test/test_pa_rules.c:63: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.c:188:17: note: 'best_type' was declared here 188 | uint8_t best_type; | ^~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.c:238:17: warning: 'best_plen' may be used uninitialized [-Wmaybe-uninitialized] 238 | bmemcpy_shift(&tentative, best_plen, &id, 32 - (desired_plen - best_plen), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 239 | desired_plen - best_plen); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_rules.c:187:17: note: 'best_plen' was declared here 187 | pa_plen best_plen; | ^~~~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [66/76] Building C object CMakeFiles/test_pa_rules.dir/src/pa_core.c.o /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.c:691:70: warning: argument 2 of type 'const uint32_t[]' {aka 'const unsigned int[]'} with mismatched bound [-Warray-parameter=] 691 | void pa_core_set_node_id(struct pa_core *core, const PA_NODE_ID_TYPE node_id[]) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.c:8: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.h:208:39: note: previously declared as 'const uint32_t[1]' {aka 'const unsigned int[1]'} 208 | const PA_NODE_ID_TYPE id[PA_NODE_ID_LEN]); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [67/76] Linking C executable test_pa_rules [68/76] Building C object CMakeFiles/test_pa_store.dir/test/test_pa_store.c.o In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/test/test_pa_store.c:12: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.c:691:70: warning: argument 2 of type 'const uint32_t[]' {aka 'const unsigned int[]'} with mismatched bound [-Warray-parameter=] 691 | void pa_core_set_node_id(struct pa_core *core, const PA_NODE_ID_TYPE node_id[]) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.c:8: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/src/pa_core.h:208:39: note: previously declared as 'const uint32_t[1]' {aka 'const unsigned int[1]'} 208 | const PA_NODE_ID_TYPE id[PA_NODE_ID_LEN]); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics [69/76] Linking C executable test_pa_store [70/76] Building C object CMakeFiles/test_iface.dir/test/test_iface.c.o [71/76] Linking C executable test_iface [72/76] Building C object CMakeFiles/test_btrie.dir/test/test_btrie.c.o [73/76] Linking C executable test_btrie [74/76] Building C object CMakeFiles/test_bitops.dir/test/test_bitops.c.o [75/76] Building C object CMakeFiles/test_bitops.dir/src/bitops.c.o [76/76] Linking C executable test_bitops ninja: Entering directory `/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661' [0/1] Install the project... -- Install configuration: "Release" -- Installing: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/ipkg-install/usr/sbin/hnetd rstrip.sh: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/ipkg-aarch64_cortex-a72/hnetd-nossl/usr/sbin/hnetd: executable Packaged contents of /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/ipkg-aarch64_cortex-a72/hnetd-nossl into /builder/shared-workdir/build/sdk/bin/packages/aarch64_cortex-a72/routing/hnetd-nossl_2018-12-21-c4376661-1_aarch64_cortex-a72.ipk Packaged contents of /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/ipkg-aarch64_cortex-a72/luci-app-hnet into /builder/shared-workdir/build/sdk/bin/packages/aarch64_cortex-a72/routing/luci-app-hnet_2018-12-21-c4376661-1_aarch64_cortex-a72.ipk Packaged contents of /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/ipkg-aarch64_cortex-a72/hnet-full into /builder/shared-workdir/build/sdk/bin/packages/aarch64_cortex-a72/routing/hnet-full_2018-12-21-c4376661-1_aarch64_cortex-a72.ipk Packaged contents of /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/ipkg-aarch64_cortex-a72/hnet-full-secure into /builder/shared-workdir/build/sdk/bin/packages/aarch64_cortex-a72/routing/hnet-full-secure_2018-12-21-c4376661-1_aarch64_cortex-a72.ipk Packaged contents of /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/hnetd-nossl/hnetd-2018-12-21-c4376661/ipkg-aarch64_cortex-a72/hnet-full-l2tp into /builder/shared-workdir/build/sdk/bin/packages/aarch64_cortex-a72/routing/hnet-full-l2tp_2018-12-21-c4376661-1_aarch64_cortex-a72.ipk time: package/feeds/routing/hnetd/nossl/compile#99.26#5.69#124.02