Build fails due to m4 binary not found in staging_dir/host

I'm trying to build the latest snapshot in Ubuntu 24.10 (under WSL if that matters), and it fails while building target/linux with the following error, which never happened before.

flex: fatal internal error, exec of /home/user/openwrt/staging_dir/host/bin/m4 failed

The target is BananaPi BPI-R4. I've updated the build environment to the latest package versions and did make distclean to start fresh, none of which helped. Any ideas on what to try next are much appreciated.

Is it on linux filesystem like /home ?

Yes, not an NTFS shared folder.

Do a clean clone + feeds and try to capture any [eE]rror in build?

Thank you. After doing a fresh clone, staging_dir/host/bin/ is now populated with the correct symlinks. I guess, starting from scratch might be necessary every now and again.

Yes, when it starts throwing errors first is distclean, then fresh clone.

1 Like

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