-
Enhancement
-
Resolution: Fixed
-
P4
-
17u-cpu
Recently RISC-V cross-compile GHA on jdk17u-dev failed when creating sysroot on Ubuntu 20.04 runner. I have also tried on my local Ubuntu 20.04 machine, and got the following error:
Setting up systemd (254~rc2-3) ...
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service -> /lib/systemd/system/getty@.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
But the JDK mainline GHA still looks good, so I tried to bump the cross-compiling runner to 22.04, and the error was gone.
Setting up systemd (254~rc2-3) ...
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service -> /lib/systemd/system/getty@.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
But the JDK mainline GHA still looks good, so I tried to bump the cross-compiling runner to 22.04, and the error was gone.
- relates to
-
JDK-8311871 GHA: Add RISC-V build config
- Resolved
-
JDK-8314658 [17u] GHA: Sync up debian-version for cross-builds
- Resolved