Skip to content

[Bug] Failed to compile under linux powerpc64le #1471

Open

Description

I ran into following error when trying to compile under Linux powerpc64le:

~/Work/rustc_codegen_cranelift$ ./y.sh build
[BUILD] build system
[BUILD] rustc_codegen_cranelift
    Finished `release` profile [optimized] target(s) in 0.05s
[BUILD] sysroot Clif
[COPY] stdlib source
[PATCH] "stdlib" <- "0027-stdlib-128bit-atomic-operations.patch"
[PATCH] "stdlib" <- "0029-stdlib-rawdylib-processprng.patch"
   Compiling core v0.0.0 (/home/tle/Work/rustc_codegen_cranelift/build/stdlib/library/core)
   Compiling std v0.0.0 (/home/tle/Work/rustc_codegen_cranelift/build/stdlib/library/std)
   Compiling rustc-std-workspace-core v1.99.0 (/home/tle/Work/rustc_codegen_cranelift/build/stdlib/library/rustc-std-workspace-core)
error: can't compile for powerpc64le-unknown-linux-gnu: Support for this target has not been implemented yet

   Compiling compiler_builtins v0.1.106
   Compiling libc v0.2.153
error: could not compile `rustc-std-workspace-core` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `core` (lib) due to 1 previous error
error: could not compile `compiler_builtins` (lib) due to 1 previous error
error: could not compile `libc` (lib) due to 1 previous error
CARGO_BUILD_INCREMENTAL="true" CARGO_ENCODED_RUSTDOCFLAGS="" CARGO_ENCODED_RUSTFLAGS="-Zforce-unstable-if-unmarked\u{1f}-Cpanic=abort\u{1f}-Zcodegen-backend=/home/tle/Work/rustc_codegen_cranelift/./dist/lib/librustc_codegen_cranelift.so\u{1f}--sysroot\u{1f}/home/tle/Work/rustc_codegen_cranelift/./build/rtstartup\u{1f}-Zinline-mir" CARGO_PROFILE_RELEASE_DEBUG="true" RUSTC="/home/tle/.rustup/toolchains/nightly-2024-03-26-powerpc64le-unknown-linux-gnu/bin/rustc" RUSTDOC="/home/tle/.rustup/toolchains/nightly-2024-03-26-powerpc64le-unknown-linux-gnu/bin/rustdoc" __CARGO_DEFAULT_LIB_METADATA="cg_clif" "/home/tle/.rustup/toolchains/nightly-2024-03-26-powerpc64le-unknown-linux-gnu/bin/cargo" "build" "--manifest-path" "/home/tle/Work/rustc_codegen_cranelift/./build/stdlib/library/sysroot/Cargo.toml" "--target-dir" "/home/tle/Work/rustc_codegen_cranelift/./build/stdlib_target" "--locked" "--target" "powerpc64le-unknown-linux-gnu" "--release" "--features" "compiler-builtins-no-asm backtrace panic-unwind" exited with status ExitStatus(unix_wait_status(25856))

It would be awesome if this architecture is supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.S-blockedStatus: marked as blocked ❌ on something else such as an RFC or other implementation work.upstreamCaused by a dependency

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions