Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8312511

GHA: Bump cross-compile runner to Ubuntu 22.04

XMLWordPrintable

    • b01
    • riscv
    • linux

      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.

            fjiang Feilong Jiang
            fjiang Feilong Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: