Skip to content

Unknown architecture for macOS target when we build profiler_builtins #130719

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
arttet opened this issue Sep 22, 2024 · 1 comment
Closed

Unknown architecture for macOS target when we build profiler_builtins #130719

arttet opened this issue Sep 22, 2024 · 1 comment
Labels
C-bug Category: This is a bug. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Comments

@arttet
Copy link
Contributor

arttet commented Sep 22, 2024

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

@rustbot rustbot added needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. I-prioritize Issue: Indicates that prioritization has been requested for this issue. labels Sep 22, 2024
@jieyouxu jieyouxu added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label Sep 22, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 24, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 24, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 24, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 24, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 25, 2024
@apiraino apiraino removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Sep 25, 2024
@arttet arttet changed the title Regression of profiler_builtins Unknown architecture for macOS target when we build profiler_builtins Sep 25, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 25, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 26, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 26, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 26, 2024
@jieyouxu jieyouxu added C-bug Category: This is a bug. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Sep 26, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 26, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 26, 2024
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 27, 2024
@arttet
Copy link
Contributor Author

arttet commented Sep 28, 2024

Fixed in #130926

@arttet arttet closed this as completed Sep 28, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: This is a bug. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants