Skip to content

Commit 9eb5aab

Browse files
authored
Merge pull request #4317 from tammela/ci-fixes
ci: Fixes for sparc and s390x
2 parents c9a05b4 + 1ae6552 commit 9eb5aab

File tree

5 files changed

+11
-17
lines changed

5 files changed

+11
-17
lines changed

ci/docker/sparc64-unknown-linux-gnu/Dockerfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
# FIXME(sparc): newer versions of Ubuntu get the following errors
2-
# ```
3-
# /prog: /lib/sparc64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /prog)
4-
# /prog: /lib/sparc64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by /prog)
5-
# ```
6-
# Not sure if this is a problem from rustc, our libc, or Ubuntu so we just
7-
# stick with an old LTS for now.
8-
FROM ubuntu:22.04
1+
FROM ubuntu:24.10
92

103
RUN apt-get update && apt-get install -y --no-install-recommends \
114
curl ca-certificates \

ci/linux-s390x.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ mkdir -m 777 /qemu
66
cd /qemu
77

88
curl --retry 5 -LO https://github.com/qemu/qemu/raw/HEAD/pc-bios/s390-ccw.img
9-
curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20230607/images/generic/kernel.debian
10-
curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20230607/images/generic/initrd.debian
9+
curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20241227/images/generic/kernel.debian
10+
curl --retry 5 -LO http://ftp.debian.org/debian/dists/testing/main/installer-s390x/20241227/images/generic/initrd.debian
1111

1212
mv kernel.debian kernel
1313
mv initrd.debian initrd.gz

ci/linux-sparc64.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ set -eux
55
mkdir -m 777 /qemu
66
cd /qemu
77

8-
curl --retry 5 -LO https://cdimage.debian.org/cdimage/ports/snapshots/2022-12-09/debian-11.0.0-sparc64-NETINST-1.iso
9-
7z e debian-11.0.0-sparc64-NETINST-1.iso install/initrd.gz
10-
7z e debian-11.0.0-sparc64-NETINST-1.iso install/vmlinux
8+
curl --retry 5 -LO https://cdimage.debian.org/cdimage/ports/snapshots/2024-12-24/debian-12.0.0-sparc64-NETINST-1.iso
9+
7z e debian-12.0.0-sparc64-NETINST-1.iso install/initrd.gz
10+
7z e debian-12.0.0-sparc64-NETINST-1.iso install/vmlinux
1111
mv vmlinux kernel
12-
rm debian-11.0.0-sparc64-NETINST-1.iso
12+
rm debian-12.0.0-sparc64-NETINST-1.iso
1313

1414
mkdir init
1515
cd init

ci/run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ test_flags="--skip check_style"
8787
case "$target" in
8888
# Only run `libc-test`
8989
# FIXME(android): unit tests fail to start on Android
90-
# FIXME(s390x): unit tests fail to locate glibc
9190
*android*) cmd="$cmd --manifest-path libc-test/Cargo.toml" ;;
9291
*s390x*) cmd="$cmd --manifest-path libc-test/Cargo.toml" ;;
9392
# For all other platforms, test everything in the workspace

src/unix/linux_like/linux/gnu/b64/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ s! {
7777
target_arch = "mips64r6",
7878
target_arch = "powerpc64",
7979
target_arch = "riscv64",
80-
target_arch = "sparc64"
80+
target_arch = "sparc64",
81+
target_arch = "s390x",
8182
)))]
8283
__reserved: crate::__syscall_ulong_t,
8384
pub sem_ctime: crate::time_t,
@@ -88,7 +89,8 @@ s! {
8889
target_arch = "mips64r6",
8990
target_arch = "powerpc64",
9091
target_arch = "riscv64",
91-
target_arch = "sparc64"
92+
target_arch = "sparc64",
93+
target_arch = "s390x",
9294
)))]
9395
__reserved2: crate::__syscall_ulong_t,
9496
pub sem_nsems: crate::__syscall_ulong_t,

0 commit comments

Comments
 (0)