Skip to content

Cryptic error when unable to write target file due to permission problems #7579

Closed
@absurdhero

Description

@absurdhero

On Mac OS, I was compiling a source file in a directory where I didn't have permission to create a new file like so:

$ rustc -o hello hello.rs
error: Could not write output: x86_64-a

It wasn't clear that this was an file IO issue and I could find no mention of this error in docs. The subject of the message was misleading and it looked to me like a code generation error due to the mention of "x86_64-a".

The error would be more clear if it printed the name of the file it was attempting to write instead of the architecture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsO-macosOperating system: macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions