Skip to content

bug?: Build script fails without strip = "symbols" #448

@onkoe

Description

@onkoe

Sometimes, when I try to build Rust applications and libraries on my MacBook Pro M1, the proc-macro2 build script will fail.

This has been occurring for a looong time, likely due to some Homebrew dependencies I've had to install.

However, the build only fails on release builds. To check if the issue occurs for a reason, I tried building this crate only with --release and some configuration. However, the build succeeds with Cargo.toml containing:

[profile.release]
strip = "none"

Unfortunately, this doesn't bring me closer to the issue, as the success in debug mode makes it seem difficult to get additional debugging information.

Additional Steps

If you have any suggestions on additional steps to try, or build.rs adjustments to tell Cargo to emit failure information, I'd be happy to try them out.

edit: here's the output on cargo b --release:
out.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions