Cannot build OpenWRT snapshot

Just yesterday everything compiled perfectly, but today I get this error:

> mediatek_filogic/symvers/mac80211.symvers
> ERROR: modpost: "relay_reset" [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/mt7996/mt7996e.ko] undefined!
> ERROR: modpost: "relay_open" [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/mt7996/mt7996e.ko] undefined!
> ERROR: modpost: "relay_switch_subbuf" [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/mt7996/mt7996e.ko] undefined!
> ERROR: modpost: "relay_flush" [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/mt7996/mt7996e.ko] undefined!
> ERROR: modpost: "relay_file_operations" [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/mt7996/mt7996e.ko] undefined!
> make[6]: *** [scripts/Makefile.modpost:145: /home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/Module.symvers] Error 1
> make[5]: *** [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.32/Makefile:1865: modpost] Error 2
> make[4]: *** [Makefile:234: __sub-make] Error 2
> make[4]: Leaving directory '/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.32'
> make[3]: *** [Makefile:643: /home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/.built] Error 2
> make[3]: Leaving directory '/home/red/openwrt/package/kernel/mt76'
> time: package/kernel/mt76/compile#16.18#1.99#18.17
>     ERROR: package/kernel/mt76 failed to build.
> make[2]: *** [package/Makefile:173: package/kernel/mt76/compile] Error 1
> make[2]: Leaving directory '/home/red/openwrt'
> make[1]: *** [package/Makefile:167: /home/red/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
> make[1]: Leaving directory '/home/red/openwrt'
> make: *** [/home/red/openwrt/include/toplevel.mk:233: world] Error 2

Now I can’t compile anything. Reinstalling the system or a clean installation from Github does not give anything. Help me please. Thank you in advance!

Ubuntu 20.4 Ubuntu 23 LMDE 5 LMDE 6

Same problem with fresh install

running debian trixie, i was able to compile 6e51b363e918ae3ecc88497badc87406a6f08f1f

just to be sure: did u git pull --rebase && ./scripts/feeds update -a && ./scripts/feeds install -a && make dirclean? did you modify anything? what does git status say?

I’ll try and write here

red@red:~/openwrt$ git pull --rebase && ./scripts/feeds update -a && ./scripts/feeds install -a && make dirclean
Already up to date.
Updating feed 'packages' from 'https://git.openwrt.org/feed/packages.git' ...
Already up to date.
Updating feed 'luci' from 'https://git.openwrt.org/project/luci.git' ...
Already up to date.
Updating feed 'routing' from 'https://git.openwrt.org/feed/routing.git' ...
Already up to date.
Updating feed 'telephony' from 'https://git.openwrt.org/feed/telephony.git' ...
Already up to date.
Create index file './feeds/packages.index' 
Create index file './feeds/luci.index' 
Create index file './feeds/routing.index' 
Create index file './feeds/telephony.index' 
WARNING: Makefile 'package/feeds/telephony/freeswitch/Makefile' has a dependency on 'libpcre', which does not exist
Installing all packages from feed packages.
Installing all packages from feed luci.
Installing all packages from feed routing.
Installing all packages from feed telephony.
WARNING: Makefile 'package/feeds/telephony/freeswitch/Makefile' has a dependency on 'libpcre',

which does not exist

RROR: modpost: "relay_reset" [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/mt7996/mt7996e.ko] undefined!
ERROR: modpost: "relay_open" [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/mt7996/mt7996e.ko] undefined!
ERROR: modpost: "relay_switch_subbuf" [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/mt7996/mt7996e.ko] undefined!
ERROR: modpost: "relay_flush" [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/mt7996/mt7996e.ko] undefined!
ERROR: modpost: "relay_file_operations" [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/mt7996/mt7996e.ko] undefined!
make[6]: *** [scripts/Makefile.modpost:145: /home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/Module.symvers] Error 1
make[5]: *** [/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.32/Makefile:1865: modpost] Error 2
make[4]: *** [Makefile:234: __sub-make] Error 2
make[4]: Leaving directory '/home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.32'
make[3]: *** [Makefile:643: /home/red/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/mt76-2024.05.17~513c131c/.built] Error 2
make[3]: Leaving directory '/home/red/openwrt/package/kernel/mt76'
time: package/kernel/mt76/compile#26.93#4.05#6.81
    ERROR: package/kernel/mt76 failed to build.
make[2]: *** [package/Makefile:173: package/kernel/mt76/compile] Error 1
make[2]: Leaving directory '/home/red/openwrt'
make[1]: *** [package/Makefile:167: /home/red/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/red/openwrt'
make: *** [/home/red/openwrt/include/toplevel.mk:233: world] Error 2

git status? what does it say? can you pastebin the complete output of your build including everything?

red@red:~/openwrt$ git status On branch main Your branch is up to date with ‘origin/main’.

nothing to commit, working tree clean 111.txt (183,0 КБ)

i had to do a “make distclean” after “git pull” followed by the documented steps

# Update the feeds
./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig
#select "Target System (MediaTek Ralink ARM)" => "Subtarget (Filogic 8x0 (MT798x))" => "Target Profile (Bananapi BPi-R4)"
make -j$(nproc)

he said he deleted the directory and cloned it again, so i guess his approach is more like a make mrproper :wink:

i have no idea what else could cause that. it works on my machine, unfortunately all i can say to that

@Yurannich do you have your own .config or is this the official one? can you paste any difference if there is any?

Yes, I tried with my own config and a clean one, but nothing helped! I’ll try a few more options now and report back. And by the way, you guys are very helpful and supportive - thank you very much!

Hi all! Honestly, I don’t know what it was, but it’s some kind of magic - today I started the compilation again and everything worked. I note that while you two weren’t in the comments, nothing worked :)))