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

Feilong Jiang fjiang at openjdk.org
Tue Jul 25 00:57:57 UTC 2023


On Mon, 24 Jul 2023 08:04:59 GMT, Fei Yang <fyang 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.
>
> Hi, Thanks for proposing this change. As we discussed with @GoeLin offline, this should also improve GHA testing, as now both ubuntu-20.04 and ubuntu-22.04 will be used at the end. So personally I am OK with this, but I am not a JDK-Update Reviewer.

@RealFYang @shipilev @GoeLin -- Thanks!

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/1613#issuecomment-1648812068


More information about the jdk-updates-dev mailing list