Unknown architecture for macOS target when we build profiler_builtins
· Issue #130719 · rust-lang/rust (original) (raw)
profiler_builtins
I didn't expect to see this happen:
error: failed to run custom build command for `profiler_builtins v0.0.0 (/Users/runner/work/rust-compiler-builder/rust-compiler-builder/rust/library/profiler_builtins)`
Caused by:
process didn't exit successfully: `/Users/runner/work/rust-compiler-builder/rust-compiler-builder/rust/build/x86_64-apple-darwin/stage2-std/release/build/profiler_builtins-7b5660ac6a773822/build-script-build` (exit status: 1)
--- stdout
cargo::rerun-if-env-changed=LLVM_PROFILER_RT_LIB
cargo::rerun-if-env-changed=RUST_COMPILER_RT_FOR_PROFILER
cargo::rerun-if-changed=/Users/runner/work/rust-compiler-builder/rust-compiler-builder/rust/src/llvm-project/compiler-rt/lib/profile
cargo::rerun-if-changed=/Users/runner/work/rust-compiler-builder/rust-compiler-builder/rust/src/llvm-project/compiler-rt/include
TARGET = Some("arm64e-apple-darwin")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-apple-darwin")
cargo:rerun-if-env-changed=CC_arm64e-apple-darwin
CC_arm64e-apple-darwin = None
cargo:rerun-if-env-changed=CC_arm64e_apple_darwin
CC_arm64e_apple_darwin = Some("sccache cc")
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
--- stderr
error occurred: Unknown architecture for macOS target.
How to reproduce
./configure
--enable-option-checking
--enable-verbose-configure
--enable-sccache
--enable-ninja
--enable-verbose-tests
--enable-codegen-tests
--enable-dist-src
--enable-optimize-llvm
--enable-full-tools
--enable-sanitizers
--enable-profiler
--host=x86_64-apple-darwin
--target=x86_64-apple-darwin,aarch64-apple-darwin,aarch64-apple-ios,arm64e-apple-darwin,arm64e-apple-ios
--set llvm.download-ci-llvm=false
--set llvm.targets="AArch64;X86"
--set llvm.experimental-targets=""
--set llvm.static-libstdcpp
--set llvm.tests=true
--set build.verbose=0
--set rust.channel=dev
--set rust.jemalloc
--set rust.lto=thin
--set rust.codegen-units=1
--set rust.codegen-backends=llvm
--set rust.use-lld=false
--set rust.omit-git-hash=true
--dist-compression-formats=xz
--prefix=install
--set change-id=99999999
See #130231
See #130406
See rust-lang/cc-rs#1205