Skip to content

Fix build for powerpc64-unknown-linux-musl #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

Gelbpunkt
Copy link
Contributor

Currently, powerpc64-unknown-linux-musl matches both not(all(target_arch = "powerpc64", target_endian="little")) and all(target_arch = "powerpc64", target_endian = "big", target_env = "musl"), causing a duplicate definition of the elf module. powerpc64-unknown-linux-musl should use ELF v2, so fix the conditional logic to make it use only that.

Signed-off-by: Jens Reidel <adrian@travitia.xyz>
Gelbpunkt added a commit to Gelbpunkt/rust that referenced this pull request Mar 24, 2025
We intend to fix the outstanding issues on the target and eventually
promote it to tier 2. We have the capacity to maintain this target in
the future and already perform regular builds of rustc for this target.

Currently, all host tools except miri build fine, but I have a patch for
libffi-sys to make miri also compile fine for this target that is
pending review [1].

While at it, add an option for the musl root for this target.

[1]: tov/libffi-rs#100

Signed-off-by: Jens Reidel <adrian@travitia.xyz>
jhpratt added a commit to jhpratt/rust that referenced this pull request Mar 26, 2025
…musl-maintainer, r=compiler-errors

Add target maintainer information for powerpc64-unknown-linux-musl

We intend to fix the outstanding issues on the target and eventually promote it to tier 2. We have the capacity to maintain this target in the future and already perform regular builds of rustc for this target.

Currently, all host tools except miri build fine, but I have a patch for libffi-sys to make miri also compile fine for this target that is [pending review](tov/libffi-rs#100).

While at it, add an option for the musl root for this target.

I also added a kernel version requirement, which is rather arbitrarily chosen, but it matches our tier 2 powerpc64le-unknown-linux-musl target so I think it is a good fit.
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Mar 26, 2025
Rollup merge of rust-lang#138905 - Gelbpunkt:powerpc64-unknown-linux-musl-maintainer, r=compiler-errors

Add target maintainer information for powerpc64-unknown-linux-musl

We intend to fix the outstanding issues on the target and eventually promote it to tier 2. We have the capacity to maintain this target in the future and already perform regular builds of rustc for this target.

Currently, all host tools except miri build fine, but I have a patch for libffi-sys to make miri also compile fine for this target that is [pending review](tov/libffi-rs#100).

While at it, add an option for the musl root for this target.

I also added a kernel version requirement, which is rather arbitrarily chosen, but it matches our tier 2 powerpc64le-unknown-linux-musl target so I think it is a good fit.
@yorickpeterse yorickpeterse merged commit f9fb3ac into tov:master Apr 4, 2025
@yorickpeterse
Copy link
Collaborator

Thanks! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants