Problem while building mt76 package

Hi,

I try to build OpenWrt for a new device and get an error during build:

make[3]: *** No rule to make target '/home/runner/work/openwrt-build/openwrt-build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/usr/include/mac80211-backport/backport/autoconf.h', needed by '/home/runner/work/openwrt-build/openwrt-build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2026.03.19~39c960c3/.configured_b1c6ae92f8e974e60b47b3e5ad3573cc'. Stop.

I tried main and openwrt-25.12, same result. I think it’s unlikely that both branches are currently not buildable. Is there something missing in the build environment?

I’m using ubuntu-latest GitHub runners for the build and installed all required packages according to the wiki instructions. But I see the same error also when building locally on Linux Mint.

Any help is appreciated.

Thanks

Roland

What are the commands that you're running?

I clone https://github.com/RolandoMagico/openwrt/tree/E30 and then run:

./scripts/feeds update -a

./scripts/feeds install -a

make menuconfig

There I select my device, additionally enable built-in Luci. Then I run:

make -j4

I've just successfully built main/HEAD (92c7feebd2647c482a6597e7d799109c5e4aee7d) with mt76 for filogic 830, x86_64/ mt7921au, ipq806x/ mt7921au and mt7621a/ mt7915.

So it’s working in general. I double checked that all packages are installed. Ubuntu latest in GitHub seems to be 24.04.

Do you know if you had to install any additional packages?

Can you post the full log somewhere?

Do you have access to it?

This is the full log of the runner

We'll never know, unless you build with -j1 V=s.

The pipeline normally runs make -j4 (until line 4249 in the log), but then make V=s if the previous command failed (after line 4249 in the log).

Your original error is:

2026-03-29T12:13:58.2774439Z  make[3] -C package/kernel/mt76 compile
2026-03-29T12:13:59.2816698Z     ERROR: package/kernel/mt76 failed to build.
2026-03-29T12:14:24.4330828Z 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

Your verbose call doesn't even reach/ attempt mt76.

Hint: compiling locally (with -j1 V=s) might make things considerably easier.

It's there if you look further.

What does your config look like?

Is the diffconfig sufficient?

CONFIG_TARGET_mediatek=y
CONFIG_TARGET_mediatek_filogic=y
CONFIG_TARGET_mediatek_filogic_DEVICE_dlink_aquila-pro-ai-e30-a1=y
CONFIG_PACKAGE_cgi-io=y
CONFIG_PACKAGE_libiwinfo=y
CONFIG_PACKAGE_libiwinfo-data=y
CONFIG_PACKAGE_liblucihttp=y
CONFIG_PACKAGE_liblucihttp-ucode=y
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-app-firewall=y
CONFIG_PACKAGE_luci-app-package-manager=y
CONFIG_PACKAGE_luci-base=y
CONFIG_PACKAGE_luci-lib-uqr=y
CONFIG_PACKAGE_luci-light=y
CONFIG_PACKAGE_luci-mod-admin-full=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-theme-bootstrap=y
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-rrdns=y
CONFIG_PACKAGE_rpcd-mod-ucode=y
CONFIG_PACKAGE_ucode-mod-html=y
CONFIG_PACKAGE_ucode-mod-log=y
CONFIG_PACKAGE_ucode-mod-math=y
CONFIG_PACKAGE_uhttpd=y
CONFIG_PACKAGE_uhttpd-mod-ubus=y

I did a local build with logging everything to a file. The file is about 13MB, so I cannot upload it to GitHub gist. I just pasted the last (722) lines:

Only strange thing I saw until now:

grep: /home/roland/openwrt/E30/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mac80211-regular/backports-6.18.7/./Module.symvers: No such file or directory

Maybe related to this issue?

Just test it locally with the appropriate logging, your suspicion is unlikely (filogic doesn't have kernel v6.18 yet, I successfully built mt76 for kernel v6.12 on filogic, mt7621, ipq806x and for kernel v6.18 on x86_64).

Checked the build with the default OpenWrt main repo, it’s working there.

I have to check which change in my branch causes the build to fail.

Thanks for the support.