[jdk8u-dev] RFR: 8331730: [8u] GHA: update sysroot for cross builds to Debian bullseye
Zdenek Zambersky
zzambers at openjdk.org
Thu May 9 12:19:57 UTC 2024
On Mon, 6 May 2024 15:19:46 GMT, Zdenek Zambersky <zzambers at openjdk.org> wrote:
> Updates GHA to use Debian `bullseye` for cross build sysroot. Motivation for this are broken builds on s390x and ppc64le in recent test runs. This is due to disappearance of s390x and ppc64le arches in [repos](http://httpredir.debian.org/debian/dists/buster/main/) of `buster` (currently used Debian). Not sure why arches disappeared, but turns out that `buster` soon reaches end of LTS support ([2024-06-30](https://wiki.debian.org/LTS)).
>
> As Debian `bullseye` (next version) again has all aches in [its repos](http://httpredir.debian.org/debian/dists/bullseye/main/), update solves both issues. In newer JDKs, sysroot update to bullseye was included in [JDK-8293107](https://bugs.openjdk.org/browse/JDK-8293107) (GHA: Bump to Ubuntu 22.04). I have tried Ubuntu update in GHA as well, but it failed to build on some platforms (aarch64, ppc64le) with errors such as:
>
> /home/runner/work/jdk8u-dev/jdk8u-dev/jdk/hotspot/src/share/vm/adlc/arena.cpp:82:19: error: ISO C++17 does not allow ‘register’ storage class specifier [-Werror=register]
> 82 | register Chunk *k = _first;
> | ^
>
> Seems to be [JDK-8281096](https://bugs.openjdk.org/browse/JDK-8281096) (Flags introduced by configure script are not passed to ADLC build). So Ubuntu update is blocked by that (and there seem to be some complications there). That's why I would like to do this separately from Ubuntu upgrade.
> _Mailing list message from [Thorsten Glaser](mailto:t.glaser at qvest-digital.com) on [jdk8u-dev](mailto:jdk8u-dev at mail.openjdk.org):_
>
> On Tue, 7 May 2024, Zdenek Zambersky wrote:
>
> > > On Mon, 6 May 2024, Zdenek Zambersky wrote:
> > > > Not sure why arches disappeared, but
> > > > turns out that `buster` soon reaches end of LTS support
> > >
> > >
> > > LTS is not available for all architectures, ELTS for even less. (And
> > > backports are not even available for LTS.)
> >
> >
> > It is still strange that architectures were only removed from `buster`
> > repo recently. (It has been in LTS for a long time)
>
> buster went EOL on 2022-09-10 and entered LTS back then. LTS uses the same debian-security repos as normal security updates but is only available for a limited set of architectures; the others have stayed present but frozen, no longer updated.
>
> But with the bookworm release and the t64 transition in sid, mirrors ran out of disc space, so the frozen parts of buster (anything other than the debian-security part for LTS arches) have been copied to archive.d.o, then the buster parts for n?n-LTS arches have been removed from the main mirror tree, and shortly after 2024-06-30 when LTS will end, the remnants will be removed from the main tree.
>
> Unfortunately, this was a bit uncoordinated and the announcement, while present, was not as clear as it could have been and did not come sufficiently ahead of time. The relevant teams got sufficient responses from irritated users already, so I hope they?ll improve the next time ;-)
Thanks for detailed info. Removal of arches after running out of space is unfortunate. We could alternatively switch repo to `archive.debian.org`, but I like update to `bullseye` better. Hopefully history will not repeat itself with `bullseye`. :)
-------------
PR Comment: https://git.openjdk.org/jdk8u-dev/pull/491#issuecomment-2102554015
More information about the jdk8u-dev
mailing list