Dependencies missing: build fails

I am trying to compile a custom image for a device. I did the usual git download of the current tree, git checkout v19.07.7, then updated and installed feeds, make menuconfig. All per the usual.

When I start the compilation, I get many warnings about missing dependencies. There are many pages in the terminal about these, here is a sample:

make -j1 V=sc
WARNING: Makefile 'package/feeds/packages/aircrack-ng/Makefile' has a dependency on 'libpcre', which does not exist
WARNING: Makefile 'package/feeds/packages/apache/Makefile' has a dependency on 'libpcre', which does not exist
WARNING: Makefile 'package/feeds/packages/apache/Makefile' has a dependency on 'jansson', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk-chan-dongle/Makefile' has a dependency on 'asterisk16', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk-chan-sccp/Makefile' has a dependency on 'asterisk16', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk-chan-sccp/Makefile' has a dependency on 'asterisk16-bridge-holding', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk-chan-sccp/Makefile' has a dependency on 'asterisk16-bridge-native-rtp', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk-chan-sccp/Makefile' has a dependency on 'asterisk16-bridge-simple', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk-chan-sccp/Makefile' has a dependency on 'asterisk16-bridge-softmix', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk-chan-sccp/Makefile' has a dependency on 'asterisk16-res-stasis-device-state', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk-chan-sccp/Makefile' has a dependency on 'asterisk16-voicemail', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk-g72x/Makefile' has a dependency on 'asterisk16', which does not exist
WARNING: Makefile 'package/feeds/telephony/asterisk-opus/Makefile' has a dependency on 'asterisk16', which does not exist
WARNING: Makefile 'package/feeds/packages/atftp/Makefile' has a dependency on 'libpcre', which does not exist
WARNING: Makefile 'package/feeds/packages/bandwidthd/Makefile' has a dependency on 'libpcre', which does not exist
WARNING: Makefile 'package/feeds/packages/bcrypt/Makefile' has a dependency on 'python', which does not exist
WARNING: Makefile 'package/feeds/packages/boost/Makefile' has a build dependency on 'python', which does not exist
WARNING: Makefile 'package/feeds/packages/chrony/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/feeds/packages/clamav/Makefile' has a dependency on 'musl-fts', which does not exist
WARNING: Makefile 'package/feeds/packages/clamav/Makefile' has a dependency on 'musl-fts', which does not exist
WARNING: Makefile 'package/feeds/packages/click/Makefile' has a build dependency on 'python', which does not exist
WARNING: Makefile 'package/feeds/packages/coreutils/Makefile' has a dependency on 'libcap', which does not exist

...and so on.
Here is a list of all the missing dependencies it complains about:

libpcre
jansson
asterisk16
asterisk16-bridge-holding
asterisk16-bridge-native-rtp
asterisk16-bridge-simple
asterisk16-bridge-softmix
asterisk16-res-stasis-device-state
asterisk16-voicemail
python
musl-fts
python-light
python-logging
ssmtp
libjpeg
python-setuptools
kmod-crypto-arc4
libudev-fbsd
kmod-pf-ring
libcap
python/host
libsrtp2
python-logging
python-openssl
python-enum34
python-ipaddress
python-codecs
python-xml
python-ctypes
python-egenix-mx-base
python-futures
python-decimal
python-mysql
python-django-constance
libzdb
python-base

And sure enough, later on the build fails due to missing one of those libraries:

configure: error: libcap library was not found or not usable
make[3]: *** [Makefile:155: /home/silviu/openwrt/opizero/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/coreutils-8.32/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[3]: Leaving directory '/home/silviu/openwrt/opizero/openwrt/feeds/packages/utils/coreutils'
time: package/feeds/packages/coreutils/compile#18.34#7.59#22.59
make[2]: *** [package/Makefile:113: package/feeds/packages/coreutils/compile] Error 2
make[2]: Leaving directory '/home/silviu/openwrt/opizero/openwrt'
make[1]: *** [package/Makefile:107: /home/silviu/openwrt/opizero/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/silviu/openwrt/opizero/openwrt'
make: *** [/home/silviu/openwrt/opizero/openwrt/include/toplevel.mk:227: world] Error 2

I have succesfully compiler OpenWRT in the past although not recently (last time was Chaos Calmer) without these kinds of errors.

What am I doing wrong? Those cannot be missing host dependencies, as many of the reported missing packages - I do have installed on the host machine: jansson, libpcre, libcap, python of course etc.

1 Like

Is it possible that feeds use "master" branch instead of 19.07.7. There were some migration between base repo and packages feed repo. Checking with feeds.conf should tell if this is the case.

Interestingly enough I don't have a feeds.conf, only a feeds.conf.default. It reads:

src-git packages https://git.openwrt.org/feed/packages.git^90af10d01579425369bd474051b6d3ddaf32a7e3
src-git luci https://git.openwrt.org/project/luci.git^34e0d656a41befd9720be35c4831c9f136a67c59
src-git routing https://git.openwrt.org/feed/routing.git^e26b4745209655976b7d124465b1dc53ade632f9
src-git telephony https://git.openwrt.org/feed/telephony.git^6e019c94d0fa7162548d528bf4ba060a61f8cb59
src-git freifunk https://github.com/freifunk/openwrt-packages.git^c621a4283870fe062489fe5e26a15deda7ef4ed7

Those seem to be correct for 19.07.7

hello there ,
am having the same issues with https://github.com/ip-default-ttl/openwrt, did you find a sollution for the issue ?