[jdk17u-dev] RFR: 8312511: GHA: Bump cross-compile runner to Ubuntu 22.04

Feilong Jiang fjiang at openjdk.org
Fri Jul 21 13:58:11 UTC 2023


Hi, recently RISC-V cross-compile GHA always failed with sysroot creation. Turns out that there are some issues with 20.04 runner when setting up systemd package:


Setting up systemd (254~rc2-3) ...
Created symlink /etc/systemd/system/getty.target.wants/getty at tty1.service -> /lib/systemd/system/getty at .service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target -> /lib/systemd/system/remote-fs.target.
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-pstore.service -> /lib/systemd/system/systemd-pstore.service.
Initializing machine ID from random generator.
Failed to take /etc/passwd lock: Invalid argument
dpkg: error processing package systemd (--install):
installed systemd package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.37-6) ...
Errors were encountered while processing:
systemd


While jdk mainline RISC-V cross-compiling was not affected, so I tried to bump the cross-compiling GHA runner to Ubuntu 22.04 and the error was gone. So maybe we could upgrade the cross-compiling runner to make RISC-V cross-builds work again.
And sorry for the annoying RISC-V cross-build failure warnings.

-------------

Commit messages:
 - Upgrade all corss-compile GHA runners

Changes: https://git.openjdk.org/jdk17u-dev/pull/1613/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1613&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8312511
  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/1613.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/1613/head:pull/1613

PR: https://git.openjdk.org/jdk17u-dev/pull/1613


More information about the jdk-updates-dev mailing list