meta-raspberrypi: Building core-image-x11 for raspberrypi3-64 on master currently failing

In conf/machine/include/rpi-base.inc we define XSERVER to contain xserver-xorg-extension-glx if MACHINE_FEATURES contains vc4graphics. This is picked up as the dependencies for packagegroup-core-x11-xserver.

However, xserver-xorg-extension-glx is only built if the PACKAGECONFIG for xserver-xorg contains glx. In our xserver-xorg_%.bbappend file we gate this on the presence of opengl in DISTRO_FEATURES.

So by default trying to install packagegroup-core-x11-xserver fails:

pbarker@eng01 ~/projects/oe-nodistro/build $ MACHINE=raspberrypi3-64 bitbake core-image-x11
Loading cache: 100% |###########################################################################################################################################################| Time: 0:00:00
Loaded 2950 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.37.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-16.04"
TARGET_SYS           = "aarch64-oe-linux-musl"
MACHINE              = "raspberrypi3-64"
DISTRO               = "nodistro"
DISTRO_VERSION       = "nodistro.0"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""
meta                 = "HEAD:1f53140528d79c38d4f3a82cd0a03bd0ddc87275"
meta-oe
meta-multimedia
meta-networking
meta-python          = "HEAD:f0a664f2b7ac42fa8832ecc016ddf8b6260ee50e"
meta-raspberrypi     = "master:3175e7f3e2066ef34897013742ab95341c3ebaae"

Initialising tasks: 100% |######################################################################################################################################################| Time: 0:00:03
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-x11-1.0-r0 do_rootfs: Unable to install packages. Command '/home/pbarker/projects/oe-nodistro/build/tmp/work/raspberrypi3_64-oe-linux-musl/core-image-x11/1.0-r0/recipe-sysro
ot-native/usr/bin/opkg --volatile-cache -f /home/pbarker/projects/oe-nodistro/build/tmp/work/raspberrypi3_64-oe-linux-musl/core-image-x11/1.0-r0/opkg.conf -t /home/pbarker/projects/oe-nodistr
o/build/tmp/work/raspberrypi3_64-oe-linux-musl/core-image-x11/1.0-r0/temp/ipktemp/ -o /home/pbarker/projects/oe-nodistro/build/tmp/work/raspberrypi3_64-oe-linux-musl/core-image-x11/1.0-r0/roo
tfs  --force_postinstall --prefer-arch-to-version   install opkg packagegroup-base-extended packagegroup-core-boot packagegroup-core-x11-base psplash-raspberrypi run-postinsts' returned 1:
Collected errors:
 * Solver encountered 1 problem(s):
 * Problem 1/1:
 *   - nothing provides xserver-xorg-extension-glx needed by packagegroup-core-x11-xserver-1.0-r40.raspberrypi3_64
 *
 * Solution 1:
 *   - do not ask to install a package providing packagegroup-core-x11-base

 * opkg_finalize_intercepts: Failed to open dir /home/pbarker/projects/oe-nodistro/build/tmp/work/raspberrypi3_64-oe-linux-musl/core-image-x11/1.0-r0/temp/ipktemp//opkg-AhNgIa/opkg-intercept-
rgrYhG: No such file or directory.
 * rm_r: Failed to open dir /home/pbarker/projects/oe-nodistro/build/tmp/work/raspberrypi3_64-oe-linux-musl/core-image-x11/1.0-r0/temp/ipktemp//opkg-AhNgIa/opkg-intercept-rgrYhG: No such file
 or directory.
 * rm_r: Failed to open dir /home/pbarker/projects/oe-nodistro/build/tmp/work/raspberrypi3_64-oe-linux-musl/core-image-x11/1.0-r0/temp/ipktemp//opkg-AhNgIa: No such file or directory.


ERROR: core-image-x11-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/pbarker/projects/oe-nodistro/build/tmp/work/raspberrypi3_64-oe-linux-musl/core-image-x11/1.0-r0/temp/log.do_rootfs.13345
ERROR: Task (/home/pbarker/projects/oe-nodistro/openembedded-core/meta/recipes-graphics/images/core-image-x11.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5237 tasks of which 4236 didn't need to be rerun and 1 failed.

I’ve made minimal changes to local.conf which shouldn’t break things:

LICENSE_FLAGS_WHITELIST = "commercial"
TCLIBC = "musl"
TCLIBCAPPEND = ""
ROOT_HOME = "/root"
COPY_LIC_MANIFEST = "1"
COPY_LIC_DIRS = "1"
BB_GENERATE_MIRROR_TARBALLS = "1"
INHERIT += "rm_work"
RPI_USE_U_BOOT = "1"

Otherwise this is a pretty much out-of-the-box build.

There’s two ways we can go to fix this:

  1. Add opengl to REQUIRED_DISTRO_FEATURES for xserver-xorg when MACHINE_FEATURES contains vc4graphics.

  2. Drop xserver-xorg-extension-glx from XSERVER unless DISTRO_FEATURES contains opengl.

Both approaches seem to work but as I’m not using xorg extensively I’m probably not the best person to make the decision. Is opengl a requirement for a basic x11 or sato image on raspberrypi3-64?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (2 by maintainers)

Most upvoted comments

now build (core-image-x11) is successful but x11 not launching (but launching with the same config with MACHINE = “raspberrypi3” instead of MACHINE = “raspberrypi3-64”), in this case, Xorg said (EE) no screens found(EE) Some advices ? Thanks

I’d totally forgot about this due to a few changes with work, I’ll put it back onto the todo list!

Apologies, have been pretty busy lately. This is still on my list though and I’m aiming to send PRs for master & sumo when I get chance to look at this.