-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
cargo build can work, but cargo build --release is failure #4021
Comments
I was also experiencing this on amd64 intel mac on rust 1.82 but updating to 1.83 does not have this issue, @fyqtian can you update and confirm if you are still seeing this issue? |
That is weird, we don't have any Thanks @Sigurthorb for adding some context. |
@Sigurthorb As you mentioned, it works when I upgrade the Rust version to 1.83.0. ❯ rustc --version
rustc 1.83.0 (90b35a623 2024-11-26)
❯ cargo build --release
Compiling libc v1.0.0-alpha.1 (/Users/fanv/Documents/rust-code/libc)
Finished `release` profile [optimized] target(s) in 1.91s
|
@tgross35 ❯ cargo build --release -vv
warning: /Users/fanv/Documents/rust-code/libc/libc-test/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021
warning: /Users/fanv/Documents/rust-code/libc/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2021
Compiling libc v0.2.92 (/Users/fanv/Documents/rust-code/libc)
Running `CARGO=/Users/fanv/.rustup/toolchains/1.82.0-aarch64-apple-darwin/bin/cargo CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ABI='' CARGO_CFG_TARGET_ARCH=aarch64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV='' CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh CARGO_CFG_TARGET_HAS_ATOMIC=128,16,32,64,8,ptr CARGO_CFG_TARGET_OS=macos CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=apple CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='' CARGO_FEATURE_DEFAULT=1 CARGO_FEATURE_STD=1 CARGO_MANIFEST_DIR=/Users/fanv/Documents/rust-code/libc CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='Raw FFI bindings to platform libraries like libc.
' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/libc' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libc CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/rust-lang/libc' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.2.92 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=92 CARGO_PKG_VERSION_PRE='' DEBUG=false DYLD_FALLBACK_LIBRARY_PATH='/Users/fanv/Documents/rust-code/libc/target/release/deps:/Users/fanv/Documents/rust-code/libc/target/release:/Users/fanv/.rustup/toolchains/1.82.0-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib:/Users/fanv/.rustup/toolchains/1.82.0-aarch64-apple-darwin/lib:/Users/fanv/lib:/usr/local/lib:/usr/lib' HOST=aarch64-apple-darwin NUM_JOBS=10 OPT_LEVEL=3 OUT_DIR=/Users/fanv/Documents/rust-code/libc/target/release/build/libc-8c37a1c97bff6640/out PROFILE=release RUSTC=/Users/fanv/.rustup/toolchains/1.82.0-aarch64-apple-darwin/bin/rustc RUSTDOC=/Users/fanv/.rustup/toolchains/1.82.0-aarch64-apple-darwin/bin/rustdoc TARGET=aarch64-apple-darwin /Users/fanv/Documents/rust-code/libc/target/release/build/libc-538459da9a798b64/build-script-build`
error: failed to run custom build command for `libc v0.2.92 (/Users/fanv/Documents/rust-code/libc)`
Caused by:
process didn't exit successfully: `CARGO=/Users/fanv/.rustup/toolchains/1.82.0-aarch64-apple-darwin/bin/cargo CARGO_CFG_PANIC=unwind CARGO_CFG_TARGET_ABI='' CARGO_CFG_TARGET_ARCH=aarch64 CARGO_CFG_TARGET_ENDIAN=little CARGO_CFG_TARGET_ENV='' CARGO_CFG_TARGET_FAMILY=unix CARGO_CFG_TARGET_FEATURE=aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh CARGO_CFG_TARGET_HAS_ATOMIC=128,16,32,64,8,ptr CARGO_CFG_TARGET_OS=macos CARGO_CFG_TARGET_POINTER_WIDTH=64 CARGO_CFG_TARGET_VENDOR=apple CARGO_CFG_UNIX='' CARGO_ENCODED_RUSTFLAGS='' CARGO_FEATURE_DEFAULT=1 CARGO_FEATURE_STD=1 CARGO_MANIFEST_DIR=/Users/fanv/Documents/rust-code/libc CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='Raw FFI bindings to platform libraries like libc.
' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/libc' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libc CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/rust-lang/libc' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.2.92 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=92 CARGO_PKG_VERSION_PRE='' DEBUG=false DYLD_FALLBACK_LIBRARY_PATH='/Users/fanv/Documents/rust-code/libc/target/release/deps:/Users/fanv/Documents/rust-code/libc/target/release:/Users/fanv/.rustup/toolchains/1.82.0-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib:/Users/fanv/.rustup/toolchains/1.82.0-aarch64-apple-darwin/lib:/Users/fanv/lib:/usr/local/lib:/usr/lib' HOST=aarch64-apple-darwin NUM_JOBS=10 OPT_LEVEL=3 OUT_DIR=/Users/fanv/Documents/rust-code/libc/target/release/build/libc-8c37a1c97bff6640/out PROFILE=release RUSTC=/Users/fanv/.rustup/toolchains/1.82.0-aarch64-apple-darwin/bin/rustc RUSTDOC=/Users/fanv/.rustup/toolchains/1.82.0-aarch64-apple-darwin/bin/rustdoc TARGET=aarch64-apple-darwin /Users/fanv/Documents/rust-code/libc/target/release/build/libc-538459da9a798b64/build-script-build` (signal: 9, SIGKILL: kill)
|
Issue Description
Building libc v0.2.162 fails in release mode but succeeds in debug mode.
Target Triple
aarch64-apple-darwin
(Apple Silicon macOS)Environment Info
Steps to Reproduce
cargo build
(succeeds)cargo build --release -vv
(fails)Build Logs
The text was updated successfully, but these errors were encountered: