Make download fails on qosify

Hi, I am trying to compile OpenWRT to add V2.0 support for the Cudy WR1300 but it always fails me at the same point:

make[1]: [package/Makefile:115: package/network/config/qosify/download] Error 2 (ignored)
make[2]: Entering directory '/home/ogarcia/openwrt/package/network/config/qosify'
bash: line 1: /home/ogarcia/openwrt/staging_dir/host/llvm-bpf/bin/clang: No such file or directory
bash: line 1: [: : integer expression expected
/home/ogarcia/openwrt/include/bpf.mk:70: *** ERROR: LLVM/clang version too old. Minimum required: 12, found: .  Stop.
make[2]: Leaving directory '/home/ogarcia/openwrt/package/network/config/qosify'
time: package/network/config/qosify/download#0.29#0.08#0.37
    ERROR: package/network/config/qosify failed to build.
make[1]: *** [package/Makefile:116: package/network/config/qosify/download] Error 1
make[1]: Leaving directory '/home/ogarcia/openwrt'
make[1]: Entering directory '/home/ogarcia/openwrt'
cd "/home/ogarcia/openwrt"; git log --format=%h -1 toolchain > /home/ogarcia/openwrt/tmp/.ver_check
cmp -s /home/ogarcia/openwrt/tmp/.ver_check /home/ogarcia/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.3.0_musl/stamp/.ver_check || { \
	rm -rf /home/ogarcia/openwrt/build_dir/target-mipsel_24kc_musl /home/ogarcia/openwrt/staging_dir/target-mipsel_24kc_musl /home/ogarcia/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.3.0_musl /home/ogarcia/openwrt/build_dir/toolchain-mipsel_24kc_gcc-11.3.0_musl; \
	mkdir -p /home/ogarcia/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.3.0_musl/stamp; \
	mv /home/ogarcia/openwrt/tmp/.ver_check /home/ogarcia/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.3.0_musl/stamp/.ver_check; \
}

The dependency (clang) is perfectly installed, but just to avoid errors I am using a virtual machine with Debian as detailed in the Quick image building guide.

Any ideas?

Install clang and llvm. They are different packages

Both are installed:

$ dpkg -l clang llvm
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Architecture Description
+++-==============-==============-============-==========================================================
ii  clang          1:11.0-51+nmu5 amd64        C, C++ and Objective-C compiler (LLVM based), clang binary
ii  llvm           1:11.0-51+nmu5 amd64        Low-Level Virtual Machine (LLVM)

The error is clear though, right from your paste:

/home/ogarcia/openwrt/include/bpf.mk:70: *** ERROR: LLVM/clang version too old. Minimum required: 12, found: .  Stop.

See:

1 Like