My fault. I'm using Ubuntu 24.04.2 LTS running in WSL and everything works fine till I get to glib2 compile where it gets stuck and just ends up in an error.
vnz@KeepItLowkey:~/openwrt$ make -j$(nproc)
make[2]: Entering directory '/home/vnz/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/vnz/openwrt/scripts/config'
make[1] world
make[2] tools/compile
make[2] package/cleanup
make[3] -C tools/flock compile
make[3] -C tools/libdeflate compile
make[3] -C tools/zstd compile
make[3] -C tools/sed compile
make[3] -C tools/patch compile
make[3] -C tools/tar compile
make[3] -C tools/m4 compile
make[3] -C tools/autoconf-archive compile
make[3] -C tools/expat compile
make[3] -C tools/ninja compile
make[3] -C tools/xz compile
make[3] -C tools/gnulib compile
make[3] -C tools/zlib compile
make[3] -C tools/cpio compile
make[3] -C tools/lzma compile
make[3] -C tools/mtools compile
make[3] -C tools/patch-image compile
make[3] -C tools/sstrip compile
make[3] -C tools/zip compile
make[3] -C tools/make-ext4fs compile
make[3] -C tools/squashfs4 compile
make[3] -C tools/meson compile
make[3] -C tools/pkgconf compile
make[3] -C tools/libressl compile
make[3] -C tools/autoconf compile
make[3] -C tools/automake compile
make[3] -C tools/missing-macros compile
make[3] -C tools/cmake compile
make[3] -C tools/libtool compile
make[3] -C tools/dosfstools compile
make[3] -C tools/flex compile
make[3] -C tools/elfutils compile
make[3] -C tools/fakeroot compile
make[3] -C tools/gengetopt compile
make[3] -C tools/mklibs compile
make[3] -C tools/patchelf compile
make[3] -C tools/gmp compile
make[3] -C tools/bison compile
make[3] -C tools/mpfr compile
make[3] -C tools/bc compile
make[3] -C tools/util-linux compile
make[3] -C tools/findutils compile
make[3] -C tools/mkimage compile
make[3] -C tools/b43-tools compile
make[3] -C tools/mpc compile
make[3] -C tools/e2fsprogs compile
make[3] -C tools/mtd-utils compile
make[3] -C tools/padjffs2 compile
make[3] -C tools/quilt compile
make[3] -C tools/firmware-utils compile
make[3] -C tools/llvm-bpf compile
make[2] toolchain/compile
make[3] -C toolchain/gdb compile
make[3] -C toolchain/binutils compile
make[3] -C toolchain/fortify-headers compile
make[3] -C toolchain/gcc/initial compile
make[3] -C toolchain/kernel-headers compile
make[3] -C toolchain/musl compile
make[3] -C toolchain/gcc/final compile
make[2] target/compile
make[3] -C target/linux compile
make[2] buildinfo
make[2] package/compile
make[3] -C package/utils/lua host-compile
make[3] -C package/libs/ncurses host-compile
make[3] -C package/libs/libjson-c host-compile
make[3] -C package/system/fwtool host-compile
make[3] -C package/boot/arm-trusted-firmware-tools host-compile
make[3] -C package/system/usign host-compile
make[3] -C feeds/luci/modules/luci-base host-compile
make[3] diffconfig buildversion feedsversion
make[3] -C feeds/luci/contrib/package/csstidy host-compile
make[3] -C feeds/packages/libs/libffi host-compile
make[4] scripts/config/conf
make[3] -C package/utils/bzip2 host-compile
make[3] -C feeds/packages/lang/perl host-compile
make[3] -C package/devel/gperf host-compile
make[3] -C package/system/apk host-compile
make[3] -C package/libs/libubox host-compile
make[3] -C package/system/ucert host-compile
make[3] -C package/kernel/gpio-button-hotplug compile
make[3] -C feeds/packages/kernel/mdio-netlink compile
make[3] -C package/libs/toolchain compile
make[3] -C feeds/packages/kernel/mtd-rw compile
make[3] -C feeds/packages/net/siit compile
make[3] -C package/kernel/leds-gca230718 compile
make[3] -C package/kernel/leds-ws2812b compile
make[3] -C package/kernel/trelay compile
make[3] -C package/kernel/ubootenv-nvram compile
make[3] -C package/libs/libnfnetlink compile
make[3] -C package/kernel/bpf-headers compile
make[3] -C package/network/services/dropbear compile
make[3] -C package/network/utils/linux-atm compile
make[3] -C package/network/utils/resolveip compile
make[3] -C package/network/utils/wwan compile
make[3] -C package/libs/mbedtls compile
make[3] -C package/system/ca-certificates compile
make[3] -C package/utils/fitblk compile
make[3] -C package/libs/libnl-tiny compile
make[3] -C package/libs/libjson-c compile
make[3] -C package/utils/lua compile
make[3] -C package/libs/libmd compile
make[3] -C package/firmware/linux-firmware compile
make[3] -C package/libs/zlib compile
make[3] -C package/system/fwtool compile
make[3] -C package/libs/libsepol compile
make[3] -C package/libs/pcre2 compile
make[3] -C package/system/openwrt-keyring compile
make[3] -C package/libs/musl-fts compile
make[3] -C package/boot/arm-trusted-firmware-mediatek compile
make[3] -C package/libs/jansson compile
make[3] -C package/libs/libmnl compile
make[3] -C package/boot/arm-trusted-firmware-mediatek compile
make[3] -C package/boot/arm-trusted-firmware-mediatek compile
make[3] -C feeds/luci/protocols/luci-proto-ppp compile
make[3] -C feeds/luci/protocols/luci-proto-ipv6 compile
make[3] -C feeds/packages/utils/attr compile
make[3] -C package/boot/arm-trusted-firmware-mediatek compile
make[3] -C package/boot/arm-trusted-firmware-mediatek compile
make[3] -C feeds/packages/libs/libffi compile
make[3] -C package/libs/libnl compile
make[3] -C feeds/packages/libs/expat compile
make[3] -C feeds/packages/libs/gdbm compile
make[3] -C package/boot/arm-trusted-firmware-mediatek compile
make[3] -C feeds/packages/libs/libdaemon compile
make[3] -C feeds/packages/libs/libnatpmp compile
make[3] -C feeds/packages/net/miniupnpc compile
make[3] -C package/utils/bzip2 compile
make[3] -C package/boot/arm-trusted-firmware-mediatek compile
make[3] -C package/libs/argp-standalone compile
make[3] -C feeds/packages/utils/hwdata compile
make[3] -C package/network/utils/ethtool compile
make[3] -C feeds/packages/libs/libevdev compile
make[3] -C package/libs/libpcap compile
make[3] -C package/firmware/wireless-regdb compile
make[3] -C package/network/utils/iw compile
make[3] -C feeds/packages/net/mtkhnat_util compile
make[3] -C feeds/packages/admin/netatop compile
make[3] -C feeds/packages/utils/acl compile
make[3] -C package/libs/gmp compile
make[3] -C package/libs/libcap compile
make[3] -C package/libs/readline host-compile
make[3] -C package/libs/libunwind compile
make[3] -C package/libs/libusb compile
make[3] -C feeds/packages/net/wsdd2 compile
make[3] -C package/libs/libxml2 compile
make[3] -C feeds/routing/batctl compile
make[3] -C package/libs/libubox compile
make[3] -C package/libs/ncurses compile
make[3] -C package/libs/libselinux compile
make[3] -C package/system/usign compile
make[3] -C package/boot/uboot-mediatek compile
make[3] -C package/libs/libnftnl compile
make[3] -C feeds/packages/libs/glib2 compile
ERROR: package/boot/uboot-mediatek failed to build (build variant: mt7986_glinet_gl-mt6000).
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/vnz/openwrt/include/toplevel.mk:233: world] Error 1
vnz@KeepItLowkey:~/openwrt$