Skip to content

Build succeed but no executable file created (error "could not execute process target/debug/[project name] (never executed)") #87894

@nisimjoseph

Description

@nisimjoseph

I am working on Mac with the latest version (11.5.1) and I installed Rust and create a simple project using the cargo new learn1 command and then run the cargo run which builds and runs the simple "Hello World" project.

The build finish with:

Compiling learn1 v0.1.0 (/Users/[username]/git/rust/learn1)
Finished release [optimized] target(s) in 6.86s
Running `target/debug/learn1`
error: could not execute process `target/debug/learn1` (never executed)

now, I see this error and the file learn1 which is the executable file was not created. All the rest of the files in the target/debug folder were created except for the binary file.

I tried it on another Mac with the same version and even an older one, and all working there. but on my Mac, it never creates the binary file. I know it is not an access issue because other files are created and written.

I really need an assist here, I am trying to handle it for 5 hours and can't find anything to solve it. Any logs I can find? any idea why it can occur?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions