[jdk17u-dev] RFR: 8312511: GHA: Bump cross-compile runner to Ubuntu 22.04
Aleksey Shipilev
shade at openjdk.org
Mon Jul 24 10:12:55 UTC 2023
On Fri, 21 Jul 2023 13:50:00 GMT, Feilong Jiang <fjiang at openjdk.org> wrote:
> Hi, recently RISC-V cross-compile GHA always failed with sysroot creation. Turns out that there are some issues with Ubuntu 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.
All right then. I am a bit uncomfortable with deviating from upstream state even further, but this looks okay.
-------------
Marked as reviewed by shade (Reviewer).
PR Review: https://git.openjdk.org/jdk17u-dev/pull/1613#pullrequestreview-1543140949
More information about the jdk-updates-dev
mailing list