OpenWrt 19.07 toplevel.mk error

I run my custom config file with make menuconfig and save/exit. Then, *

$ make -j32

make: *** [/home/akbulutubntu/openwrt/include/toplevel.mk:227: 8] Error 1

This solution was given in another topic, but it didn't work for me.

set FORCE_UNSAFE_CONFIGURE=1

in toplevel.mk file

> %::
> 	@+$(PREP_MK) $(NO_TRACE_MAKE) -r -s prereq
> 	@( \
> 		cp .config tmp/.config; \
> 		./scripts/config/conf --defconfig=tmp/.config -w tmp/.config Config.in > /dev/null 2>&1; \
> 		if ./scripts/kconfig.pl '>' .config tmp/.config | grep -q CONFIG; then \
> 			printf "$(_R)WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!$(_N)\n" >&2; \
> 		fi \
> 	)

227.line -- >> cp .config tmp/.config; \

How can I solve this error.

First thing is to run with a single thread and more verbosity:

$ make -j1 V=s

Then check for errors in there. The 'Error 1' line you shared is the end of the output, it's a generic, final error message that could mean anything.

1 Like