Skip to content

cargo build intermittently fails on darwin platform #10022

@akscram

Description

@akscram

Problem

cargo build intermittently fails for a project or its dependencies and subsequent re-builds succeed. For example, bitfield doesn't have dependencies but this problem is observed for the project itself:

ash@cube ~/git/rust-bitfield % cargo build
   Compiling bitfield v0.13.2 (/Users/ash/git/rust-bitfield)
error: could not compile `bitfield`

Caused by:
  process didn't exit successfully: `rustc --crate-name bitfield src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C metadata=c7b624d34760ee7b -C extra-filename=-c7b624d34760ee7b --out-dir /Users/ash/git/rust-bitfield/target/debug/deps -C incremental=/Users/ash/git/rust-bitfield/target/debug/incremental -L dependency=/Users/ash/git/rust-bitfield/target/debug/deps` (signal: 6, SIGABRT: process abort signal)
ash@cube ~/git/rust-bitfield % cargo build
   Compiling bitfield v0.13.2 (/Users/ash/git/rust-bitfield)
    Finished dev [unoptimized + debuginfo] target(s) in 0.18s

Subsequent rebuilds sometimes don't help and some project continue failing.

Steps

  1. Try to build a cargo project

Possible Solution(s)

No response

Notes

This problem is observed on:

macOs Monterey
Version 12.0.1

Version

cargo 1.55.0
release: 1.55.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugO-macosOS: macOSS-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type
    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