Skip to content

Build Filecheck is packaged instead of target for the LLVM tools downloaded from CI during build for cross-compiled targets. #95862

Closed
@luqmana

Description

@luqmana

I don't have Rosetta 2 enabled so I ran into a bit of confusion trying to run some codegen tests on an M1 MacBook.

Looking at the LLVM binaries that were downloaded, FileCheck seems to be the odd one out:

$ file build/aarch64-apple-darwin/ci-llvm/bin/*
build/aarch64-apple-darwin/ci-llvm/bin/FileCheck:       Mach-O 64-bit executable x86_64
build/aarch64-apple-darwin/ci-llvm/bin/lld:             Mach-O 64-bit executable arm64
build/aarch64-apple-darwin/ci-llvm/bin/llvm-ar:         Mach-O 64-bit executable arm64
build/aarch64-apple-darwin/ci-llvm/bin/llvm-bcanalyzer: Mach-O 64-bit executable arm64
build/aarch64-apple-darwin/ci-llvm/bin/llvm-config:     Mach-O 64-bit executable arm64
build/aarch64-apple-darwin/ci-llvm/bin/llvm-cov:        Mach-O 64-bit executable arm64
build/aarch64-apple-darwin/ci-llvm/bin/llvm-dwp:        Mach-O 64-bit executable arm64
build/aarch64-apple-darwin/ci-llvm/bin/llvm-nm:         Mach-O 64-bit executable arm64
build/aarch64-apple-darwin/ci-llvm/bin/llvm-objdump:    Mach-O 64-bit executable arm64
build/aarch64-apple-darwin/ci-llvm/bin/llvm-profdata:   Mach-O 64-bit executable arm64

Building LLVM locally definitely generates the right version, compare:

$ file ./aarch64-apple-darwin/{ci-,}llvm/bin/FileCheck
./aarch64-apple-darwin/ci-llvm/bin/FileCheck: Mach-O 64-bit executable x86_64
./aarch64-apple-darwin/llvm/bin/FileCheck:    Mach-O 64-bit executable arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-crossArea: Cross compilationT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions