Skip to content

I'm stuck with backporting your patchset to rustc-1.49.0-src for armv7a #31

@stefson

Description

@stefson

hey there, I saw the in tree rust ebuilds allow to build for amd64-musl and aarch64-musl, upstream seems to push out stage3 archives for a while now. Sadly, that is not the case for armv7a. There is only a rust-std for armv7-unknown-linux-musleabihf, that is not enough to bootstrap a full rustc compiler.

In an effort to bootstrap my way up slowly to at least rust-1.51.0 for proper firefox91-esr support, I tried to rebase your rustc-1.47.0 patchset, and I almost succeeded. Only one patch gives me a big headache, that is the 0030-libc-linkage.patch: https://github.com/smaeul/portage-overlay/blob/master/dev-lang/rust/files/0030-libc-linkage.patch#L7

this is my backport, just switching the dir name:

--- rustc-1.48.0-src/vendor/libc/src/lib.rs
+++ rustc-1.48.0-src/vendor/libc/src/lib.rs
@@ -27,6 +27,7 @@
 #![deny(missing_copy_implementations, safe_packed_borrows)]
 #![no_std]
 #![cfg_attr(feature = "rustc-dep-of-std", no_core)]
+#![cfg_attr(target_env = "musl", feature(static_nobundle))]
 #![cfg_attr(target_os = "redox", feature(static_nobundle))]
 #![cfg_attr(libc_const_extern_fn, feature(const_extern_fn))]

which fails with this error:

error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /var/tmp/portage/dev-lang/rust-1.48.0/work/rustc-1.48.0-src/vendor/libc/src/lib.rs:30:34
   |
30 | #![cfg_attr(target_env = "musl", feature(static_nobundle))]
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^

only solution for this problem I was able to find is to use a nightly compiler, that is not an option in this case it seems to me. All other patches were rather easy, but this one I don't get it what to do to fix it. Can you please help me to find a solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions