rust-lang / rust-lang/rust

CI: apple linker segmentation fault

Open
#158,787 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-linkers A-spurious C-bug O-apple T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-Wl,-exported_symbols_list" "-Wl,/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/zerofrom-derive/bd0d67e481534373/out/rustcUwtmU8/list" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/zerofrom-derive/bd0d67e481534373/out/rustcUwtmU8/symbols.o" "<7 object files omitted>" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/zerofrom-derive/bd0d67e481534373/out/rustcUwtmU8/rmeta.o" "<1 object files omitted>" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/synstructure/971d5cb1c2bb7029/out/libsynstructure-971d5cb1c2bb7029.rlib" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/syn/c096cb8fc5f8ec7c/out/libsyn-c096cb8fc5f8ec7c.rlib" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/quote/f82bde6d5961fcb6/out/libquote-f82bde6d5961fcb6.rlib" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/proc-macro2/b089cc3d8a1dc156/out/libproc_macro2-b089cc3d8a1dc156.rlib" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/unicode-ident/59c09d8f5bb0c300/out/libunicode_ident-59c09d8f5bb0c300.rlib" "<sysroot>/lib/rustlib/aarch64-apple-darwin/lib/{libproc_macro-*,librustc_literal_escaper-*,libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-lSystem" "-lc" "-lm" "-arch" "arm64" "-mmacosx-version-min=11.0.0" "-o" "/Users/runner/work/rust/rust/build/aarch64-apple-darwin/bootstrap-tools/release/build/zerofrom-derive/bd0d67e481534373/out/libzerofrom_derive-bd0d67e481534373.dylib" "-Wl,-dead_strip" "-dynamiclib" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: clang: error: unable to execute command: Segmentation fault: 11
          clang: error: linker command failed due to signal (use -v to see invocation)
          Apple clang version 17.0.0 (clang-1700.6.3.2)
          Target: arm64-apple-darwin24.6.0
          Thread model: posix
          InstalledDir: /Applications/Xcode_26.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
          clang: note: diagnostic msg: 
          ********************
          
          PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
          Linker snapshot containing input(s) and associated run script(s) are located at:
          clang: note: diagnostic msg: /var/folders/k8/j7r3p6cx43xdqhzy2rmp6tqr0000gn/T/linker-crash-6955e4
          clang: note: diagnostic msg: 
          
          ********************

See original failure: https://github.com/rust-lang/rust/issues/158774#issuecomment-4883799822

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the auto - dist-apple-various job in the linked web or enhanced plaintext logs, then read the referenced failure in issue #158774. Confirm the Apple linker crash and determine the affected CI configuration or toolchain; done means the failure is reproduced or explained and the CI job no longer encounters the segmentation fault.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, rust
Domain
build-system, ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.