1

Temat: Nie mogę zbudować mastera OpenWRT

Potrzebuje pomocy po trochę nie kumam czemu nagle kompilacja przestała mi działać.

Otóż ściągnąłem sobie mastera. Wykonałem komendy:

$ make distclean
$ mv diffconfig .config
$ ./scripts/feeds update -a && ./scripts/feeds install -a
$ make -j$(($(nproc)+1)) defconfig download world

i mam błąd:

make[7]: Entering directory '/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/src/linux'
aarch64-openwrt-linux-musl-gcc -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6=coova-chilli-1.6 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fPIC -Wno-error  -fPIC -O2 -Wall -D_INIT=libxt_coova_init -c -o libxt_coova.o libxt_coova.c;
libxt_coova.c: In function 'coova_print':
libxt_coova.c:77:12: warning: the comparison will always evaluate as 'true' for the address of 'name' will never be NULL [-Waddress]
   77 |         if(info->name)
      |            ^~~~
In file included from libxt_coova.c:11:
xt_coova.h:14:14: note: 'name' declared here
   14 |         char name[XT_COOVA_NAME_LEN];
      |              ^~~~
libxt_coova.c: In function 'coova_save':
libxt_coova.c:90:12: warning: the comparison will always evaluate as 'true' for the address of 'name' will never be NULL [-Waddress]
   90 |         if(info->name)
      |            ^~~~
xt_coova.h:14:14: note: 'name' declared here
   14 |         char name[XT_COOVA_NAME_LEN];
      |              ^~~~
aarch64-openwrt-linux-musl-gcc -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6=coova-chilli-1.6 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fPIC -Wno-error  -shared -o libxt_coova.so libxt_coova.o;
make -C /home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.34 M=$PWD;
make[8]: Entering directory '/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.34'
  CC [M]  /home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/src/linux/xt_coova.o
/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/src/linux/xt_coova.c: In function 'coova_seq_open':
/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/src/linux/xt_coova.c:474:21: error: implicit declaration of function 'PDE_DATA'; did you mean 'NODE_DATA'? [-Werror=implicit-function-declaration]
  474 |         st->table = PDE_DATA(inode);
      |                     ^~~~~~~~
      |                     NODE_DATA
/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/src/linux/xt_coova.c:474:19: error: assignment to 'const struct coova_table *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
  474 |         st->table = PDE_DATA(inode);
      |                   ^
/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/src/linux/xt_coova.c: In function 'coova_mt_proc_write':
/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/src/linux/xt_coova.c:486:33: error: initialization of 'struct coova_table *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
  486 |         struct coova_table *t = PDE_DATA(file_inode(file));
      |                                 ^~~~~~~~
cc1: all warnings being treated as errors
make[9]: *** [scripts/Makefile.build:250: /home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/src/linux/xt_coova.o] Error 1
make[8]: *** [Makefile:2012: /home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/src/linux] Error 2
make[8]: Leaving directory '/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/linux-6.1.34'
make[7]: *** [Makefile:7: all] Error 2
rm libxt_coova.o
make[7]: Leaving directory '/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/src/linux'
make[6]: *** [Makefile:1013: all-recursive] Error 1
make[6]: Leaving directory '/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/src'
make[5]: *** [Makefile:413: all-re
make[3]: Leaving directory '/home/kw/openwrt-master/feeds/packages/net/coova-chilli'
time: package/feeds/packages/coova-chilli/compile#18.56#0.76#19.95
    ERROR: package/feeds/packages/coova-chilli failed to build.
make[2]: *** [package/Makefile:120: package/feeds/packages/coova-chilli/compile] Error 1
make[2]: Leaving directory '/home/kw/openwrt-master'
make[1]: *** [package/Makefile:114: /home/kw/openwrt-master/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/kw/openwrt-master'cursive] Error 1
make[5]: Leaving directory '/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6'
make[4]: *** [Makefile:345: all] Error 2
make[4]: Leaving directory '/home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6'
make[3]: *** [Makefile:150: /home/kw/openwrt-master/build_dir/target-aarch64_cortex-a53_musl/coova-chilli-1.6/.built] Error 2
make: *** [/home/kw/openwrt-master/include/toplevel.mk:232: world] Error 2

Tylko problem jest taki że ja nie wybrałem paczki coova-chilli nigdzie, ani jak szukam nie jest niczyją zależnością (chyba że źle szukam)

Co z tym można zrobić?

Na wszelki jeszcze diffconfig

CONFIG_TARGET_qualcommax=y
CONFIG_TARGET_qualcommax_ipq807x=y
CONFIG_TARGET_qualcommax_ipq807x_DEVICE_xiaomi_ax3600=y
CONFIG_ALL_KMODS=y
CONFIG_ALL_NONSHARED=y
CONFIG_DEVEL=y
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_AUTOREMOVE=y
CONFIG_BPF_TOOLCHAIN_BUILD_LLVM=y
# CONFIG_BPF_TOOLCHAIN_NONE is not set
CONFIG_BUILDBOT=y
CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVEHISTORY=y
CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y
CONFIG_BUSYBOX_CONFIG_FEATURE_REVERSE_SEARCH=y
CONFIG_COLLECT_KERNEL_DEBUG=y
CONFIG_GETDNS_ENABLE_STUB_ONLY=y
CONFIG_HAS_BPF_TOOLCHAIN=y
CONFIG_KERNEL_BUILD_DOMAIN="buildhost"
CONFIG_KERNEL_BUILD_USER="builder"
CONFIG_LIBCURL_COOKIES=y
CONFIG_LIBCURL_FILE=y
CONFIG_LIBCURL_FTP=y
CONFIG_LIBCURL_HTTP=y
CONFIG_LIBCURL_MBEDTLS=y
CONFIG_LIBCURL_NGHTTP2=y
CONFIG_LIBCURL_NO_SMB="!"
CONFIG_LIBCURL_PROXY=y
CONFIG_LIBCURL_UNIX_SOCKETS=y
CONFIG_MAKE_TOOLCHAIN=y
CONFIG_OPENSSL_ENGINE=y
CONFIG_OPENSSL_WITH_ASM=y
CONFIG_OPENSSL_WITH_CHACHA_POLY1305=y
CONFIG_OPENSSL_WITH_CMS=y
CONFIG_OPENSSL_WITH_DEPRECATED=y
CONFIG_OPENSSL_WITH_ERROR_MESSAGES=y
CONFIG_OPENSSL_WITH_IDEA=y
CONFIG_OPENSSL_WITH_MDC2=y
CONFIG_OPENSSL_WITH_PSK=y
CONFIG_OPENSSL_WITH_SEED=y
CONFIG_OPENSSL_WITH_SRP=y
CONFIG_OPENSSL_WITH_TLS13=y
CONFIG_OPENSSL_WITH_WHIRLPOOL=y
CONFIG_PACKAGE_attendedsysupgrade-common=y
CONFIG_PACKAGE_cgi-io=y
CONFIG_PACKAGE_collectd=y
CONFIG_PACKAGE_collectd-mod-cpu=y
CONFIG_PACKAGE_collectd-mod-interface=y
CONFIG_PACKAGE_collectd-mod-iwinfo=y
CONFIG_PACKAGE_collectd-mod-load=y
CONFIG_PACKAGE_collectd-mod-memory=y
CONFIG_PACKAGE_collectd-mod-network=y
CONFIG_PACKAGE_collectd-mod-rrdtool=y
# CONFIG_PACKAGE_dnsmasq is not set
CONFIG_PACKAGE_dnsmasq-full=y
CONFIG_PACKAGE_dnsmasq_full_auth=y
CONFIG_PACKAGE_dnsmasq_full_conntrack=y
CONFIG_PACKAGE_dnsmasq_full_dhcp=y
CONFIG_PACKAGE_dnsmasq_full_dhcpv6=y
CONFIG_PACKAGE_dnsmasq_full_dnssec=y
CONFIG_PACKAGE_dnsmasq_full_nftset=y
CONFIG_PACKAGE_dnsmasq_full_noid=y
CONFIG_PACKAGE_dnsmasq_full_tftp=y
CONFIG_PACKAGE_getdns=y
CONFIG_PACKAGE_htop=y
CONFIG_PACKAGE_iperf3=y
CONFIG_PACKAGE_irqbalance=y
CONFIG_PACKAGE_kmod-nf-conntrack-netlink=y
CONFIG_PACKAGE_kmod-nft-dup-inet=y
CONFIG_PACKAGE_libbpf=m
CONFIG_PACKAGE_libcurl=y
CONFIG_PACKAGE_libelf=m
CONFIG_PACKAGE_libgmp=y
CONFIG_PACKAGE_libiperf3=y
CONFIG_PACKAGE_libltdl=y
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblucihttp=y
CONFIG_PACKAGE_liblucihttp-lua=y
CONFIG_PACKAGE_liblucihttp-ucode=y
CONFIG_PACKAGE_libncurses=y
CONFIG_PACKAGE_libnetfilter-conntrack=y
CONFIG_PACKAGE_libnettle=y
CONFIG_PACKAGE_libnfnetlink=y
CONFIG_PACKAGE_libnghttp2=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_PACKAGE_libpcap=y
CONFIG_PACKAGE_librrd1=y
CONFIG_PACKAGE_libspeedtestcpp=y
CONFIG_PACKAGE_libstdcpp=y
CONFIG_PACKAGE_libubus-lua=y
CONFIG_PACKAGE_libxdp=m
CONFIG_PACKAGE_libyaml=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-app-attendedsysupgrade=y
CONFIG_PACKAGE_luci-app-firewall=y
CONFIG_PACKAGE_luci-app-opkg=y
CONFIG_PACKAGE_luci-app-statistics=y
CONFIG_PACKAGE_luci-app-uhttpd=y
CONFIG_PACKAGE_luci-base=y
CONFIG_PACKAGE_luci-compat=y
CONFIG_PACKAGE_luci-lib-base=y
CONFIG_PACKAGE_luci-lib-ip=y
CONFIG_PACKAGE_luci-lib-jsonc=y
CONFIG_PACKAGE_luci-lib-nixio=y
CONFIG_PACKAGE_luci-light=y
CONFIG_PACKAGE_luci-lua-runtime=y
CONFIG_PACKAGE_luci-mod-admin-full=y
CONFIG_PACKAGE_luci-mod-dashboard=y
CONFIG_PACKAGE_luci-mod-network=y
CONFIG_PACKAGE_luci-mod-status=y
CONFIG_PACKAGE_luci-mod-system=y
CONFIG_PACKAGE_luci-proto-ipv6=y
CONFIG_PACKAGE_luci-proto-ppp=y
CONFIG_PACKAGE_luci-ssl=y
CONFIG_PACKAGE_luci-theme-bootstrap=y
CONFIG_PACKAGE_nano=y
CONFIG_PACKAGE_px5g-mbedtls=y
CONFIG_PACKAGE_qosify=m
CONFIG_PACKAGE_rpcd=y
CONFIG_PACKAGE_rpcd-mod-file=y
CONFIG_PACKAGE_rpcd-mod-iwinfo=y
CONFIG_PACKAGE_rpcd-mod-luci=y
CONFIG_PACKAGE_rpcd-mod-rpcsys=y
CONFIG_PACKAGE_rpcd-mod-rrdns=y
CONFIG_PACKAGE_rpcd-mod-ucode=y
CONFIG_PACKAGE_rrdtool1=y
CONFIG_PACKAGE_speedtestcpp=y
CONFIG_PACKAGE_stubby=y
CONFIG_PACKAGE_sysinfo=y
CONFIG_PACKAGE_tc-tiny=m
CONFIG_PACKAGE_tcpdump-mini=y
CONFIG_PACKAGE_terminfo=y
CONFIG_PACKAGE_ucode-mod-html=y
CONFIG_PACKAGE_ucode-mod-lua=y
CONFIG_PACKAGE_ucode-mod-math=y
CONFIG_PACKAGE_uhttpd=y
CONFIG_PACKAGE_uhttpd-mod-ubus=y
CONFIG_PACKAGE_xdp-filter=m
CONFIG_PACKAGE_xdp-loader=m
CONFIG_PACKAGE_xdpdump=m
CONFIG_PACKAGE_zlib=y
CONFIG_REPRODUCIBLE_DEBUG_INFO=y
CONFIG_SDK_LLVM_BPF=y
CONFIG_USE_LLVM_BUILD=y
# CONFIG_IB is not set
# CONFIG_SDK is not set

2

Odp: Nie mogę zbudować mastera OpenWRT

Poczekać. master jest wersją rozwojową, niekoniecznie musi działać i kompilować się za każdym razem.

Akurat coovę i jej moduł możesz odznaczyć - zaznaczyłeś wszystkie moduły (CONFIG_ALL_KMODS), a że coova działa tylko z iptables to i tak Ci jest zbędna.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Nie mogę zbudować mastera OpenWRT

Im się kompiluje więc zakładam że mi też powinna smile dzięki za tą flagę, przetestuje i poczytam bo z nazwy to mi wyglądała że odpowiada za kompilacje modułów kernela a coova nim nie jest.

4

Odp: Nie mogę zbudować mastera OpenWRT

Coova dostarcza także swój moduł (jak kilka innych pakietów), jak zaznaczyłeś kompilacje wszystkich modułów to i moduł z niej się kompiluje.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.