Errors when building OpenWRT-project from GitHub

Hello everyone.
I am building a project from a repository https://github.com/openwrt/openwrt.
After running all the commands ( ./scripts/feeds update -a, ./scripts/feeds install -a, make menuconfig, make), an error appears

> 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/user/openwrt-main/include/toplevel.mk:233: world] Error 1

After executing the command make -j1 V=s:

ERROR: 'base-files=' is not a valid world dependency, format is name(@tag)([<>~=]version)
make[2]: *** [package/Makefile:99: package/install] Error 99
make[2]: Leaving directory '/home/user/openwrt-main'
make[1]: *** [package/Makefile:184: /home/user/openwrt-main/staging_dir/target-mipsel_24kc_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/user/openwrt-main'
make: *** [/home/user/openwrt-main/include/toplevel.mk:233: world] Error 2

How to fix these errors?

What docs did you use to configure your buildroot.?

I find it somewhat odd that you are running your build from a ~/openwrt-main directory as the git clone https://git.openwrt.org/openwrt/openwrt.git command would typically populate into ~/openwrt.

Are you looking to build from Main-Snapshot images or a specific Release image.

Most of what you will need can be found in the wiki https://openwrt.org/docs/guide-developer/toolchain/start#toolchain

Particularly follow the Build System Setup and Build System Usage sections.

1 Like

I don't know if this applies, but if you are using Arch there is a note in Build System Setup/Prerequisites:

1 Like

The name of the top level directory of your git clone does not matter in the slightest (apart from avoiding whitespace or special characters).

1 Like

Yes. I was just trying to elicit a bit more info from the OP as a new forum user.
Many new builders to the build system just cut/paste from the first codebox in the Build Sytem Usage wiki as a first attempt (which will clone into ./openwrt) and remain ignorant of the following step-by-step further down that infers adding an optional argument to the clone command will clone the repo there.