Wireless-regdb compilation error

The wireless-regdb package is failing to compile during make. Seems to be related to this recent commit:

27 hours ago Hauke Mehrtens wireless-regdb: Update to version 2020.11.20

Hash=94d1b2508c38e21a5d1a45a4d80db2905bf1537c

Haven’t seen anything on the devel mailing list or recent topics here since the commit yesterday. Just want to make it known to be able to fix it or revert the commit. :sunglasses:

What's the error?
I built it fine multiple times today

r7800 NSS build - building on fedora 33. Might be a NSS specific thing according to the log... if so I can transfer it to the NSS thread.

Diffconfig / build config:

Normal Make:

ERROR: package/firmware/wireless-regdb failed to build.
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/home/HTPC/OpenWRT/openwrt/include/toplevel.mk:242: world] Error 1

make V=s 2>&1 | tee build.log | grep -i -E "^make.*error|[12345]...Entering dir)"

SHELL= flock /home/HTPC/OpenWRT/openwrt/tmp/.wireless-regdb-2020.11.20.tar.xz.flock -c '  	/home/HTPC/OpenWRT/openwrt/scripts/download.pl "/home/HTPC/OpenWRT/openwrt/dl" "wireless-regdb-2020.11.20.tar.xz" "b4164490d82ff7b0086e812ac42ab27baf57be24324d4c0ee1c5dd6ba27f2a52" "" "@KERNEL/software/network/wireless-regdb/"    '
mkdir -p /home/HTPC/OpenWRT/openwrt/dl
arm-openwrt-linux-muslgnueabi-gcc  -I. -Iinclude -fPIC -pthread -Wa,--noexecstack -Wall -O3 -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/home/HTPC/OpenWRT/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/openssl-1.1.1i=openssl-1.1.1i -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fpic -ffunction-sections -fdata-sections -znow -zrelro -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib/engines-1.1\"" -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM -DOPENSSL_SMALL_FOOTPRINT -I/home/HTPC/OpenWRT/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/usr/include -I/home/HTPC/OpenWRT/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/include/fortify -I/home/HTPC/OpenWRT/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-8.4.0_musl_eabi/include -MMD -MF apps/apps.d.tmp -MT apps/apps.o -c -o apps/apps.o apps/apps.c
SHELL= flock /home/HTPC/OpenWRT/openwrt/tmp/.wolfssl-4.5.0-stable.tar.gz.flock -c '  	/home/HTPC/OpenWRT/openwrt/scripts/download.pl "/home/HTPC/OpenWRT/openwrt/dl" "wolfssl-4.5.0-stable.tar.gz" "7de62300ce14daa0051bfefc7c4d6302f96cabc768b6ae49eda77523b118250c" "" "https://github.com/wolfSSL/wolfssl/archive/v4.5.0-stable"    '
mkdir -p /home/HTPC/OpenWRT/openwrt/dl
SHELL= flock /home/HTPC/OpenWRT/openwrt/tmp/.qca-nss-gmac-9b74deef.tar.xz.flock -c '  	 	echo "Checking out files from the git repository..."; mkdir -p /home/HTPC/OpenWRT/openwrt/tmp/dl && cd /home/HTPC/OpenWRT/openwrt/tmp/dl && rm -rf qca-nss-gmac-9b74deef && [ \! -d qca-nss-gmac-9b74deef ] && git clone  https://source.codeaurora.org/quic/qsdk/oss/lklm/nss-gmac qca-nss-gmac-9b74deef && (cd qca-nss-gmac-9b74deef && git checkout 9b74deef2816d91e58926e6fab7a6ff931eb3b22 && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=`cd qca-nss-gmac-9b74deef && git log -1 --format='\''@%ct'\''` && rm -rf qca-nss-gmac-9b74deef/.git && 	tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c qca-nss-gmac-9b74deef | 	xz -zc -7e > /home/HTPC/OpenWRT/openwrt/tmp/dl/qca-nss-gmac-9b74deef.tar.xz && mv /home/HTPC/OpenWRT/openwrt/tmp/dl/qca-nss-gmac-9b74deef.tar.xz /home/HTPC/OpenWRT/openwrt/dl/ && rm -rf qca-nss-gmac-9b74deef;     '
Checking out files from the git repository...
Cloning into 'qca-nss-gmac-9b74deef'...
rm -f /home/HTPC/OpenWRT/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/wireless-regdb-2020.11.20/.built
touch /home/HTPC/OpenWRT/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/wireless-regdb-2020.11.20/.built_check
/home/HTPC/OpenWRT/openwrt/staging_dir/host/bin/python /home/HTPC/OpenWRT/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/wireless-regdb-2020.11.20/db2fw.py /home/HTPC/OpenWRT/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/wireless-regdb-2020.11.20/regulatory.db /home/HTPC/OpenWRT/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/wireless-regdb-2020.11.20/db.txt
bash: /home/HTPC/OpenWRT/openwrt/staging_dir/host/bin/python: No such file or directory
make[3]: *** [Makefile:35: /home/HTPC/OpenWRT/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/wireless-regdb-2020.11.20/.built] Error 127
make[3]: Leaving directory '/home/HTPC/OpenWRT/openwrt/package/firmware/wireless-regdb'
time: package/firmware/wireless-regdb/compile#0.51#0.31#1.24
    ERROR: package/firmware/wireless-regdb failed to build.
make[2]: *** [package/Makefile:114: package/firmware/wireless-regdb/compile] Error 1

How about reading the actual error message...

Regdb had trouble with python2 3 transition a few years ago, but I thought that it was already solved. No idea why that matter would now surface for you.

Right? I don’t know why the directory has gone “poof”.

Have you ensured that you have a working alias for "python" ?

I seem to have both python and python3 leading properly to host python3:

perus@ub2010:/Openwrt/r7800$ ls -l staging_dir/host/bin/py*
lrwxrwxrwx 1 perus perus 19 joulu  14 20:56 staging_dir/host/bin/python -> /usr/bin//python3.8
lrwxrwxrwx 1 perus perus 19 joulu  14 20:56 staging_dir/host/bin/python3 -> /usr/bin//python3.8

Did a make dirclean and started over. Making now. All the directories seem to be there so maybe just a fluke of my recent major overhaul of my build system (I lost one critical build package in the upgrade and it produced an error early on in the build process). Now my build system has everything it needs. :sunglasses:

[HTPC@localhost openwrt]$ ls -l staging_dir/host/bin/py*
lrwxrwxrwx. 1 HTPC HTPC 18 Dec 18 07:59 staging_dir/host/bin/python -> /usr/bin/python3.9
lrwxrwxrwx. 1 HTPC HTPC 18 Dec 18 07:59 staging_dir/host/bin/python3 -> /usr/bin/python3.9

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.