Thank you too.
I didn't try that yet too.
Sorry, I can't provide binaries. You may build them yourself using provided script and docker on s390x machine.
No, sorry. I didn't look much into that bootstrapping route yet.
A bit updated bootstrapping script rust-s390x-bootstrap-v2.tar.gz
diff --git a/scripts/gentoo-prepare-crosscompiler.sh b/scripts/gentoo-prepare-crosscompiler.sh
index 2457117..afd3478 100755
--- a/scripts/gentoo-prepare-crosscompiler.sh
+++ b/scripts/gentoo-prepare-crosscompiler.sh
@@ -44,4 +44,4 @@ echo 'dev-lang/rust-bin rust-src rustfmt' >> /etc/portage/package.use/host-rust
emerge virtual/rust
# need similar to alpine's gcc versions:
-emerge sys-devel/gcc:10 cross-s390x-ibm-linux-musl/gcc:10
+emerge '=sys-devel/gcc-10.3.1*' '=cross-s390x-ibm-linux-musl/gcc-10.3.1*'
I was unable to compile it using upstream bootstrap.sh from x86_64 to s390x as well. That's why I've made a script to build it from s390x-glibc (gentoo) to s390x-musl (alpine).
@Cogitri, is there something still blocking this merge request from merging or something that should still be done from my side?
Thanks, patches are updated.
Aleksei Nikiforov (c399a668) at 08 Jun 11:04
community/rust: restore s390x support
Aleksei Nikiforov (8636dbbd) at 20 May 16:25
Aleksei Nikiforov (634072a9) at 20 May 12:43
community/rust: restore s390x support
Thank you for the feedback.
Yeah, this change is supposed to be temporary until libc crate is updated. Still, your approach looks better and I'll adopt it. But after that, our merge requests would conflict due to both adding _clear_vendor_checksums libc-0.2.116
to APKBUILD.
Edit: our merge requests have already conflicted in other parts of APKBUILD file, so it doesn't matter.
Aleksei Nikiforov (fb5502ba) at 17 May 08:46
main/vim: security upgrade to 8.2.4969
... and 16 more commits
Aleksei Nikiforov (92ce226e) at 17 May 08:35
community/rust: restore s390x support
... and 1036 more commits
Aleksei Nikiforov (f39ac4d8) at 17 May 08:35
main/binutils: fix static linking on s390x
... and 1036 more commits
Apply changes from upstream commits: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=82a5bb730a16f8c7962568030268e784b4fb42c8 https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=9a01457e02e7bb594ff9a9ac62a38c909e2e3083
This change improves rust support on s390x. Related: !34493
This merge request restores s390x support for rust on Alpine.
newsboat
application was built and launched to test if resulting rust is working.
build.sh
script from attached archive for s390x host with docker is used to bootstrap rust on s390x: rust-s390x-bootstrap.tar.gz
Related: tsc#44
Aleksei Nikiforov (eb15cb46) at 16 May 16:22
main/binutils: fix static linking on s390x
Aleksei Nikiforov (df72421b) at 16 May 16:22
community/rust: restore s390x support