Problem building custom image with local image builder

Can you help me understand if it is the same issue or something specific to my packages? I am getting a different "Impossible Package Selection" error:


Generate local signing keys...
WARNING: can't open config file: /builder/shared-workdir/build/staging_dir/host/etc/ssl/openssl.cnf
WARNING: can't open config file: /builder/shared-workdir/build/staging_dir/host/etc/ssl/openssl.cnf
read EC key
writing EC key
WARNING: opening /builder/packages/packages.adb: No such file or directory
Package list missing or not up-to-date, generating it.

Building package index...
ERROR: unable to select packages:
  f2fsck (no such package):
    required by: world[f2fsck]
  mkf2fs (no such package):
    required by: world[mkf2fs]
  ppp (no such package):
    required by: world[ppp]
  ppp-mod-pppoe (no such package):
    required by: world[ppp-mod-pppoe]
  nftables-json (no such package):
    required by: firewall4-2024.12.18~18fc0ead-r1[nftables-json]
  libnftnl11 (no such package):
    required by: xtables-nft-1.8.10-r1[libnftnl11]
  tc (no such package):
    required by: sqm-scripts-1.6.0-r1[tc]
  miniupnpd (no such package):
    required by: luci-app-upnp-25.049.66340~7fb534c[miniupnpd]
make[2]: *** [Makefile:226: package_install] Error 17
make[1]: *** [Makefile:167: _call_manifest] Error 2
make: *** [Makefile:344: manifest] Error 2

I've moved your post into a new thread because it appears you're using a local (i.e. on your computer) image builder, not the online image builder. If this is incorrect, please let me know.

That said...
I suspect these warnings are the pre-cursor to the error you're seeing later:

You probably should download the image builder again, or just try running it via the firmware selector.

…and keep in mind that none of these steps can be done as root/ using sudo, stick to your normal system user (only).

1 Like

I think something is going wrong with certain architecture package builds... I get a similar (but not the same as OP) list of "bad" packages when I try to build snapshot/ramips-mt7621:

Package list missing or not up-to-date, generating it.

Building package index...

Installing packages...
ERROR: unable to select packages:
  bmon (no such package):
    required by: world[bmon]
  ethtool-full (no such package):
    required by: world[ethtool-full]
  htop (no such package):
    required by: world[htop]
  nftables (no such package):
    required by: world[nftables]
  ppp (no such package):
    required by: world[ppp]
  ppp-mod-pppoe (no such package):
    required by: world[ppp-mod-pppoe]
  procps-ng-top (no such package):
    required by: world[procps-ng-top]
  procps-ng-watch (no such package):
    required by: world[procps-ng-watch]
  nftables-json (no such package):
    required by: firewall4-2024.12.18~18fc0ead-r1[nftables-json]
make[2]: *** [Makefile:226: package_install] Error 13
make[1]: *** [Makefile:157: _call_image] Error 2
make: *** [Makefile:332: image] Error 2

I get the same result with snapshot/mediatek-filogic.

Oddly though, I can generate a snapshot/rockchip image fine using the exact same host machine and process. However I do notice that the rockchip imagebuilder package isn't quite as new as the other two. Coincidence? Probably not...

Not to mention, this also seems pretty out there:

nftables (no such package)

Are you building your image with a locally downloaded image builder, or with the online one?

If you're doing the online builder, what is the recipe you're putting into the system?

This is being done locally, using the downloaded snapshot "imagebuilder-x86_64" package for each separate architecture.

Again, the current rockchip-armv8 snapshot imagebuilder pulled from downloads.openwrt.org/snapshots is building just fine on the same build host, while the other two (ramips-mt7621 and mediatek-filogic) are not.

Edit: Even doing a "make image PROFILE=blah" for ramips-mt7621 with NO image customizations results in this:

Package list missing or not up-to-date, generating it.

Building package index...

Installing packages...
ERROR: unable to select packages:
  nftables (no such package):
    required by: world[nftables]
  ppp (no such package):
    required by: world[ppp]
  ppp-mod-pppoe (no such package):
    required by: world[ppp-mod-pppoe]
  nftables-json (no such package):
    required by: firewall4-2024.12.18~18fc0ead-r1[nftables-json]
make[2]: *** [Makefile:226: package_install] Error 5
make[1]: *** [Makefile:157: _call_image] Error 2
make: *** [Makefile:332: image] Error 2

Downloaded official yesterday's snapshot imagebuilders for netgear gs308t, redmi ax6000, asus tuf ax6000 and gl.inet mt6000... the same error:

"Building package index...

Installing packages...
ERROR: unable to select packages:"

Have you tried the online image builder yet?

You mean like this? lol

Nope, I did it using the online ASU… same error all day long. I did not compile this by myself.

Have you tried a stable release build? Do you need snapshot?

I am currently in snapshot (before 24.10). Never tried going from snapshot to stable… can it be done while keeping packages? (asu gives me no option to stable, only to snapshot)

@aparcar @efahl
Same issue still, do you know the cause? Can it be fixed?

There is currently major trouble in main/master snapshot packages buildbot, due to a recent upgrade of toolchain components (autoconf, automake). That prevent hundreds of packages being built in the buildbot just now. And that prevents imagebuilder from finding them.

Proposed first fix, not yet merged:

5 Likes

@hnyman Thanks for letting us know!