Imagebuilder fails to build for ERX on 21.02-rc2

I'm trying to run the 21.02-rc2 imagebuilder with a matching profile for the Ubiquiti ERX, and even with the most basic setup without any additional packages, I'm getting fatal build errors.

This is my build script:

#/bin/bash

RELEASE="21.02.0-rc2"
BUILDER_PREFIX="openwrt-imagebuilder-${RELEASE}-ramips-mt7621.Linux-x86_64"
BUILDER_FILENAME="${BUILDER_PREFIX}.tar.xz"

PROFILE="ubnt_edgerouter-x"

wget https://downloads.openwrt.org/releases/${RELEASE}/targets/ramips/mt7621/${BUILDER_FILENAME}

tar xvf ${BUILDER_FILENAME}
cd ${BUILDER_PREFIX}

make image PROFILE="${PROFILE}"

These are the collected errors at the end of the build:

Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for netifd found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for jsonfilter found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for usign found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for ubox found, but incompatible with the architectures configured
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for base-files:
 * 	libuci20130104
 * 	libnl-tiny1
 * 	libubus20210603
 * 	ubus
 * 	ubusd
 * 	jshn
 * 	libubox20210516
 * 	libjson-c5
 * 	libubox20210516
 * 	ubusd
 * 	ubus
 * 	libubus20210603
 * 	libuci20130104
 * opkg_install_cmd: Cannot install package base-files.
 * pkg_hash_fetch_best_installation_candidate: Packages for dnsmasq found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package dnsmasq.
 * pkg_hash_fetch_best_installation_candidate: Packages for firewall found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package firewall.
 * pkg_hash_fetch_best_installation_candidate: Packages for libustream-wolfssl found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package libustream-wolfssl.
 * pkg_hash_fetch_best_installation_candidate: Packages for logd found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package logd.
 * pkg_hash_fetch_best_installation_candidate: Packages for mtd found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package mtd.
 * pkg_hash_fetch_best_installation_candidate: Packages for odhcp6c found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package odhcp6c.
 * pkg_hash_fetch_best_installation_candidate: Packages for odhcpd-ipv6only found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package odhcpd-ipv6only.
 * pkg_hash_fetch_best_installation_candidate: Packages for libuclient20201210 found, but incompatible with the architectures configured
 * pkg_hash_fetch_best_installation_candidate: Packages for opkg found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package opkg.
 * pkg_hash_fetch_best_installation_candidate: Packages for procd found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package procd.
 * opkg_install_cmd: Cannot install package uci.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for uclient-fetch:
 * 	libubox20210516
 * opkg_install_cmd: Cannot install package uclient-fetch.
 * pkg_hash_fetch_best_installation_candidate: Packages for urngd found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package urngd.
make[2]: *** [Makefile:167: package_install] Error 255
make[1]: *** [Makefile:122: _call_image] Error 2
make: *** [Makefile:240: image] Error 2

Any idea what the problem might be?

Have you tried with RC3 instead?
RC2 is a discontinued RC.

1 Like

Libubus version update after rc2.

That revealed problems in dependency chains.
To prevent similar things happening in future, also some other packages were marked "nonshared". You are seeing effects of that fix.

Use rc3

1 Like

Thanks, I didn't realize rc3 is out.

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