# Problem while building mt76 package

**URL:** <https://forum.openwrt.org/t/problem-while-building-mt76-package/248387>\
**Category:** For Developers\
**Created:** [March 29, 2026, 12:30pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387 "2026-03-29T12:30:38Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![RolandoMagico](https://forum.openwrt.org/user_avatar/forum.openwrt.org/rolandomagico/32/52518_2.png) [@RolandoMagico](https://forum.openwrt.org/u/RolandoMagico)\
**Post date:** [March 29, 2026, 12:30pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/1 "2026-03-29T12:30:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dante](https://forum.openwrt.org/user_avatar/forum.openwrt.org/dante/32/118611_2.png) [@Dante](https://forum.openwrt.org/u/Dante)\
**Post date:** [March 29, 2026, 12:33pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/2 "2026-03-29T12:33:36Z")

</div>

What are the commands that you're running?

---

<div class="post-metadata">

**Author:** ![RolandoMagico](https://forum.openwrt.org/user_avatar/forum.openwrt.org/rolandomagico/32/52518_2.png) [@RolandoMagico](https://forum.openwrt.org/u/RolandoMagico)\
**Post date:** [March 29, 2026, 12:37pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/3 "2026-03-29T12:37:19Z")

</div>

I clone [https://github.com/RolandoMagico/openwrt/tree/E30](https://github.com/RolandoMagico/openwrt/tree/E30) and then run:

```plaintext
./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`

---

<div class="post-metadata">

**Author:** ![slh](https://forum.openwrt.org/user_avatar/forum.openwrt.org/slh/32/113591_2.png) [@slh](https://forum.openwrt.org/u/slh)\
**Post date:** [March 29, 2026, 1:03pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/4 "2026-03-29T13:03:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RolandoMagico](https://forum.openwrt.org/user_avatar/forum.openwrt.org/rolandomagico/32/52518_2.png) [@RolandoMagico](https://forum.openwrt.org/u/RolandoMagico)\
**Post date:** [March 29, 2026, 1:39pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/5 "2026-03-29T13:39:19Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Dante](https://forum.openwrt.org/user_avatar/forum.openwrt.org/dante/32/118611_2.png) [@Dante](https://forum.openwrt.org/u/Dante)\
**Post date:** [March 29, 2026, 1:40pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/6 "2026-03-29T13:40:03Z")

</div>

Can you post the full log somewhere?

---

<div class="post-metadata">

**Author:** ![RolandoMagico](https://forum.openwrt.org/user_avatar/forum.openwrt.org/rolandomagico/32/52518_2.png) [@RolandoMagico](https://forum.openwrt.org/u/RolandoMagico)\
**Post date:** [March 29, 2026, 1:55pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/7 "2026-03-29T13:55:25Z")

</div>

Do you have access to it?

> <https://gist.github.com/RolandoMagico/331f8349c36bae958804198aeaa3f16e>

This is the full log of the runner

---

<div class="post-metadata">

**Author:** ![slh](https://forum.openwrt.org/user_avatar/forum.openwrt.org/slh/32/113591_2.png) [@slh](https://forum.openwrt.org/u/slh)\
**Post date:** [March 29, 2026, 1:57pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/8 "2026-03-29T13:57:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RolandoMagico](https://forum.openwrt.org/user_avatar/forum.openwrt.org/rolandomagico/32/52518_2.png) [@RolandoMagico](https://forum.openwrt.org/u/RolandoMagico)\
**Post date:** [March 29, 2026, 2:00pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/9 "2026-03-29T14:00:41Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![slh](https://forum.openwrt.org/user_avatar/forum.openwrt.org/slh/32/113591_2.png) [@slh](https://forum.openwrt.org/u/slh)\
**Post date:** [March 29, 2026, 2:08pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/10 "2026-03-29T14:08:34Z")

</div>

Your original error is:

```plaintext
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.

---

<div class="post-metadata">

**Author:** ![Dante](https://forum.openwrt.org/user_avatar/forum.openwrt.org/dante/32/118611_2.png) [@Dante](https://forum.openwrt.org/u/Dante)\
**Post date:** [March 29, 2026, 2:09pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/11 "2026-03-29T14:09:42Z")

</div>

> [@slh](#):
>
> Your verbose call doesn't even reach/ attempt mt76.

It's there if you look further.

---

<div class="post-metadata">

**Author:** ![Dante](https://forum.openwrt.org/user_avatar/forum.openwrt.org/dante/32/118611_2.png) [@Dante](https://forum.openwrt.org/u/Dante)\
**Post date:** [March 29, 2026, 2:10pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/12 "2026-03-29T14:10:42Z")

</div>

What does your config look like?

---

<div class="post-metadata">

**Author:** ![RolandoMagico](https://forum.openwrt.org/user_avatar/forum.openwrt.org/rolandomagico/32/52518_2.png) [@RolandoMagico](https://forum.openwrt.org/u/RolandoMagico)\
**Post date:** [March 29, 2026, 2:14pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/13 "2026-03-29T14:14:18Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![RolandoMagico](https://forum.openwrt.org/user_avatar/forum.openwrt.org/rolandomagico/32/52518_2.png) [@RolandoMagico](https://forum.openwrt.org/u/RolandoMagico)\
**Post date:** [March 29, 2026, 5:13pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/14 "2026-03-29T17:13:21Z")

</div>

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:

> <https://gist.github.com/RolandoMagico/74eeccabe7999a119fe44da7a056a312>

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 |
| |

---

<div class="post-metadata">

**Author:** ![RolandoMagico](https://forum.openwrt.org/user_avatar/forum.openwrt.org/rolandomagico/32/52518_2.png) [@RolandoMagico](https://forum.openwrt.org/u/RolandoMagico)\
**Post date:** [March 31, 2026, 2:33pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/15 "2026-03-31T14:33:20Z")

</div>

Maybe related to this issue?

> <https://github.com/openwrt/backports/issues/1>
>
> \## Summary
> The mac80211/backports package builds successfully on kernel 6.18 but… fails to generate Module.symvers, causing all dependent modules (mt76, etc.) to fail with undefined symbol errors.
> 
> \## Environment
> \- OpenWrt target: x86\_64
> \- Kernel version: 6.18.2 (testing)
> \- Package: kmod-mac80211 (backports-6.18)
> \- Working kernel: 6.12.62
> 
> \## Problem
> When building mt76 against kernel 6.18, modpost fails with undefined symbols:
> \`\`\`
> ERROR: modpost: "ieee80211\_sta\_register\_airtime" \[mt76.ko\] undefined!
> ERROR: modpost: "\_\_ieee80211\_schedule\_txq" \[mt76.ko\] undefined!
> ERROR: modpost: "ieee80211\_free\_hw" \[mt76.ko\] undefined!
> \[... 67+ more undefined symbols\]
> \`\`\`
> 
> \## Root Cause
> The backports build process fails to invoke modpost for kernel 6.18, resulting in an empty Module.symvers file:
> 
> \*\*Kernel 6.12 (working):\*\*
> \`\`\`
> $ wc -l build\_dir/.../linux-x86\_64/symvers/mac80211.symvers
> 321 mac80211.symvers
> \`\`\`
> 
> \*\*Kernel 6.18 (broken):\*\*
> \`\`\`
> $ wc -l build\_dir/.../linux-x86\_64/symvers/mac80211.symvers
> 0 mac80211.symvers
> \`\`\`
> 
> Both builds use the same backports-6.18 source tree, but:
> \- mac80211.ko is built successfully in both cases
> \- Module.symvers is generated only for kernel 6.12
> \- No Module.symvers files exist anywhere in the backports-6.18 build tree for kernel 6.18
> 
> \## Analysis
> The backports build aggregates Module.symvers using:
> \`\`\`bash
> grep -F \<path\> backports-6.18/./Module.symvers \>\> Module.symvers.tmp
> \`\`\`
> 
> However, individual module directories never generate Module.symvers because modpost is not being invoked during the kernel 6.18 build.
> 
> Investigation shows:
> \- \`modpost\` binary exists at \`linux-6.18.2/scripts/mod/modpost\`
> \- No \`.cmd\` files in backports show modpost being invoked for individual modules
> \- The backports Makefile contains no references to modpost/MODPOST
> 
> \## Conclusion
> Kernel 6.18 changed the module build system in a way that breaks the backports package's integration with the kernel build process. The backports Makefile or OpenWrt's patches need updating for kernel 6.18 compatibility.
> 
> \## Reproduction
> 1. Configure OpenWrt for kernel 6.18 (testing)
> 2. Build kmod-mac80211
> 3. Attempt to build kmod-mt76
> 4. Observe undefined symbol errors
> 5. Check \`build\_dir/.../linux-x86\_64/symvers/mac80211.symvers\` - it will be empty
> 
> \## Expected Behavior
> Module.symvers should be generated during the mac80211 build, containing exported symbols like \`ieee80211\_tx\_status\_ext\`, allowing dependent modules to link successfully.

---

<div class="post-metadata">

**Author:** ![slh](https://forum.openwrt.org/user_avatar/forum.openwrt.org/slh/32/113591_2.png) [@slh](https://forum.openwrt.org/u/slh)\
**Post date:** [March 31, 2026, 4:14pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/16 "2026-03-31T16:14:55Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![RolandoMagico](https://forum.openwrt.org/user_avatar/forum.openwrt.org/rolandomagico/32/52518_2.png) [@RolandoMagico](https://forum.openwrt.org/u/RolandoMagico)\
**Post date:** [April 2, 2026, 4:49pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/17 "2026-04-02T16:49:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://forum.openwrt.org/uploads/default/original/3X/7/4/740520c71f00039bbf001045c682f0ecb25e905a.png) [@system](https://forum.openwrt.org/u/system)\
**Post date:** [April 12, 2026, 4:49pm UTC](https://forum.openwrt.org/t/problem-while-building-mt76-package/248387/18 "2026-04-12T16:49:40Z")

</div>

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