ERROR: package/feeds/packages/node [host] failed to build (WSL)

I'm running Ubuntu WSL on Windows x64 trying to build snapshot image for RPi4.
Selected packages:

base-files
bcm27xx-gpu-fw
busybox
ca-bundle
cypress-firmware-43455-sdio
cypress-nvram-43455-sdio-rpi-4b
dnsmasq
dropbear
e2fsprogs
firewall4
fstools
iwinfo
kmod-brcmfmac
kmod-fs-vfat
kmod-nft-offload
kmod-nls-cp437
kmod-nls-iso8859-1
kmod-sound-arm-bcm2835
kmod-sound-core
kmod-usb-hid
kmod-usb-net-lan78xx
libc
libgcc
libustream-wolfssl
logd
mkf2fs
mtd
netifd
nftables
odhcp6c
odhcpd-ipv6only
opkg
partx-utils
ppp
ppp-mod-pppoe
procd
procd-seccomp
procd-ujail
uci
uclient-fetch
urandom-seed
wpad-basic-wolfssl
kmod-usb-net-rtl8152
kmod-usb-net-asix
kmod-usb-net-asix-ax88179
luci-ssl
luci-app-upnp
tcpdump
iputils-ping
coreutils-date
coreutils-sleep
kmod-crypto-md5
kmod-netem
adguardhome
luci-app-aria2
webui-aria2
luci-app-samba4
qosify
kmod-sched
kmod-tcp-bbr
bash
curl
luci-proto-relay
ca-certificates

If I remove "adguardhome" from the selected list. Image successfully builds.
But with adguardhome selected I receive following error:

make[3]: Leaving directory '/home/alan/openwrt/master/openwrt/feeds/luci/collections/luci-ssl'
time: package/feeds/luci/luci-ssl/compile#0.15#1.03#1.19
  LD_LIBRARY_PATH=/home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/lib.host:/home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p /home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/obj/gen; "/home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/mkcodecache" "/home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/obj/gen/node_code_cache.cc"
  LD_LIBRARY_PATH=/home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/lib.host:/home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p /home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/obj/gen; "/home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/node_mksnapshot" "/home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/obj/gen/node_snapshot.cc"
/bin/sh: 1: /home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/mkcodecache: Exec format error
make[5]: *** [node.target.mk:13: /home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/obj/gen/node_code_cache.cc] Error 126
make[5]: *** Waiting for unfinished jobs....
/bin/sh: 1: /home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/node_mksnapshot: Exec format error
make[5]: *** [node.target.mk:26: /home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/out/Release/obj/gen/node_snapshot.cc] Error 126
rm ee0e72d7668a1dfd372a954c9ddca6af31242648.intermediate 8cefe46848ce61c7f73c245befb4a7ca354ee7a9.intermediate 5fb80d479fa5ffacff84507252f43ed02d568d37.intermediate bf305a78d2272bfd5d9795001d4c8b927c40105d.intermediate
make[4]: *** [Makefile:113: node] Error 2
make[4]: Leaving directory '/home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1'
make[3]: *** [Makefile:163: /home/alan/openwrt/master/openwrt/build_dir/hostpkg/node-v16.17.1/.built] Error 2
make[3]: Leaving directory '/home/alan/openwrt/master/openwrt/feeds/packages/lang/node'
time: package/feeds/packages/node/host-compile#26.40#18.12#49.70
    ERROR: package/feeds/packages/node [host] failed to build.
make[2]: *** [package/Makefile:114: package/feeds/packages/node/host/compile] Error 1
make[2]: Leaving directory '/home/alan/openwrt/master/openwrt'
make[1]: *** [package/Makefile:110: /home/alan/openwrt/master/openwrt/staging_dir/target-aarch64_cortex-a72_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/alan/openwrt/master/openwrt'
make: *** [/home/alan/openwrt/master/openwrt/include/toplevel.mk:231: world] Error 2

Is anyone aware with this issue?

I ended up changing wsl version from 1 to 2 by wsl --set-default-version 2 in powershell and started everything all over again. Build completed successfully.

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