Skip to content

Cross compile to ppc fails #98134

Open
Open
@TuxThePenguin0

Description

@TuxThePenguin0

I have been trying to get rust to cross-compile from an x86 system to a ppc32 host/target but the build process errors out in the stage1 phase.
My experience is fairly limited but it looks like it might be trying to use x86 headers for a ppc compile?

Meta

Version being built is 1.60.0 through the Alpine Linux aports repo and using abuild

Error

Copying stage1 std from stage1 (i586-alpine-linux-musl -> i586-alpine-linux-musl / i586-alpine-linux-musl)
Building stage1 compiler artifacts (i586-alpine-linux-musl -> powerpc-alpine-linux-musl)
   Compiling libc v0.2.116
   Compiling proc-macro2 v1.0.30
   ...
   Compiling gimli v0.26.1
   Compiling tracing v0.1.29
error: Error relocating /home/tux/aports/community/rust/src/rustc-1.60.0-src/build/i586-alpine-linux-musl/stage1-rustc/release/deps/libtracing_attributes-a36eb84df63ddcba.so: __mulodi4: symbol not found
   --> /home/tux/aports/community/rust/src/rustc-1.60.0-src/vendor/tracing-0.1.29/src/lib.rs:913:9
    |
913 | pub use tracing_attributes::instrument;
    |         ^^^^^^^^^^^^^^^^^^

error: could not compile `tracing` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-crossArea: Cross compilationA-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.O-PowerPCTarget: PowerPC processorsO-x32x32 ABIO-x86_32Target: x86 processors, 32 bit (like i686-*) (IA-32)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions