Skip to content

macos: don't test -no_uuid in CI#762

Merged
ChrisDenton merged 1 commit into
rust-lang:masterfrom
ChrisDenton:no-uuid
Jul 3, 2026
Merged

macos: don't test -no_uuid in CI#762
ChrisDenton merged 1 commit into
rust-lang:masterfrom
ChrisDenton:no-uuid

Conversation

@ChrisDenton

@ChrisDenton ChrisDenton commented Jul 2, 2026

Copy link
Copy Markdown
Member

See the conversation below.

@ChrisDenton ChrisDenton changed the title macos: don't set -no_uuid for build scripts macos: don't set -no_uuid for build scripts Jul 2, 2026
@bjorn3

bjorn3 commented Jul 2, 2026

Copy link
Copy Markdown
Member

I wonder if -no_uuid is simply not allowed on arm64 macOS at all. arm64 macOS requires all binaries to be signed (even if ad-hoc signed), and I wouldn't be surprised if signing needs LC_UUID to be present.

@bjorn3

bjorn3 commented Jul 2, 2026

Copy link
Copy Markdown
Member

@ChrisDenton

Copy link
Copy Markdown
Member Author

Maybe we should just remove this test entirely? Although CI does seem to be passing now (though it did before so maybe that doesn't mean much).

@philipc

philipc commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

I tried running this manually and get a failure still:

SY177-I:backtrace-rs user943047$ RUSTFLAGS="-C link-arg=-Wl,-no_uuid" cargo test --target $(rustc --print host-tuple)
    Updating crates.io index
  Downloaded libloading v0.8.9
  Downloaded adler2 v2.0.0
  Downloaded gimli v0.32.0
  Downloaded addr2line v0.25.0
  Downloaded libc v0.2.175
  Downloaded 5 crates (1.1MiB) in 0.21s
   Compiling object v0.39.1
   Compiling libc v0.2.175
   Compiling adler2 v2.0.0
   Compiling memchr v2.7.6
   Compiling cfg-if v1.0.0
   Compiling gimli v0.32.0
   Compiling rustc-demangle v0.1.27
   Compiling dylib-dep v0.1.0 (/Volumes/Macintosh_HD/Users/user943047/backtrace-rs/crates/dylib-dep)
   Compiling libloading v0.8.9
   Compiling miniz_oxide v0.8.9
   Compiling addr2line v0.25.0
   Compiling backtrace v0.3.76 (/Volumes/Macintosh_HD/Users/user943047/backtrace-rs)
    Finished `test` profile [unoptimized + debuginfo] target(s) in 6.12s
     Running unittests src/lib.rs (target/aarch64-apple-darwin/debug/deps/backtrace-f4ac8c740ef2adea)
dyld[94154]: missing LC_UUID load command in /Volumes/Macintosh_HD/Users/user943047/backtrace-rs/target/aarch64-apple-darwin/debug/deps/backtrace-f4ac8c740ef2adea
dyld[94154]: missing LC_UUID load command
error: test failed, to rerun pass `--lib`

Caused by:
  process didn't exit successfully: `/Volumes/Macintosh_HD/Users/user943047/backtrace-rs/target/aarch64-apple-darwin/debug/deps/backtrace-f4ac8c740ef2adea` (signal: 6, SIGABRT: process abort signal)
SY177-I:backtrace-rs user943047$ uname -a
Darwin SY177-I 25.3.0 Darwin Kernel Version 25.3.0: Wed Jan 28 20:54:22 PST 2026; root:xnu-12377.81.4~5/RELEASE_ARM64_T8112 arm64

Running without the --target failed on the libc build script:

  process didn't exit successfully: `/Volumes/Macintosh_HD/Users/user943047/backtrace-rs/target/debug/build/libc-68bec437b01ef978/build-script-build` (signal: 6, SIGABRT: process abort signal)

@ChrisDenton

Copy link
Copy Markdown
Member Author

Weird that it's inconsistent in CI. But I feel convinced that testing something apple doesn't support doesn't make much sense so I'll change this PR.

@ChrisDenton ChrisDenton changed the title macos: don't set -no_uuid for build scripts macos: don't test -no_uuid in CI Jul 3, 2026
@ChrisDenton ChrisDenton merged commit 06b2cc5 into rust-lang:master Jul 3, 2026
39 checks passed
@ChrisDenton ChrisDenton deleted the no-uuid branch July 3, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants