Skip to content

CI: apple linker segmentation fault #158787

Description

@Mark-Simulacrum
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: #158774 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkersArea: linkers... you gotta love linkersA-spuriousArea: Spurious failures in builds (spuriously == for no apparent reason)C-bugCategory: This is a bug.O-appleOperating system: Apple / Darwin (macOS, iOS, tvOS, visionOS, watchOS)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions