Skip to content
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

[Bug] Failed to compile under linux powerpc64le #1471

Open
runlevel5 opened this issue Mar 27, 2024 · 1 comment
Open

[Bug] Failed to compile under linux powerpc64le #1471

runlevel5 opened this issue Mar 27, 2024 · 1 comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work. upstream Caused by a dependency

Comments

@runlevel5
Copy link

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

@bjorn3
Copy link
Member

bjorn3 commented Mar 27, 2024

This will need Cranelift support first: bytecodealliance/wasmtime#1183

@runlevel5 runlevel5 changed the title [Feature Request] Support linux powerpc64le [Bug] Failed to compile under linux powerpc64le Mar 27, 2024
@bjorn3 bjorn3 added C-enhancement Category: An issue proposing an enhancement or a PR with one. S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work. upstream Caused by a dependency labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work. upstream Caused by a dependency
Projects
None yet
Development

No branches or pull requests

2 participants