Skip to content

Permission denied error on cargo build --release #4778

@yaa110

Description

@yaa110

after executing cargo build --release I got the following error:

error: could not rename dep info: "/home/yaa110/Projects/aaa/target/release/deps/encoding_index_tests-6a08ce72af4801d1.d"

Caused by:
  Permission denied (os error 13)
warning: build failed, waiting for other jobs to finish...
error: could not rename dep info: "/home/yaa110/Projects/aaa/target/release/deps/lazy_static-41dddc66c4a9078e.d"

Caused by:
  Permission denied (os error 13)
warning: build failed, waiting for other jobs to finish...
error: could not rename dep info: "/home/yaa110/Projects/aaa/target/release/deps/quote-b0341732fb2262ed.d"

Caused by:
  Permission denied (os error 13)
warning: build failed, waiting for other jobs to finish...
error: An unknown error occurred

Caused by:
  Permission denied (os error 13)

To learn more, run the command again with --verbose.
make: *** [Makefile:12: generate] Error 101

I deleted target folder but it did not help. However, cargo run works fine and compiles the project.

  • cargo -V cargo 0.23.0 (61fa024 2017-11-22
  • rustc -V rustc 1.22.1 (05e2e1c41 2017-11-22)
  • rustup -V rustup 1.7.0 (813f7b7a8 2017-10-30)
  • OS Arch linux 64bit (stable-x86_64-unknown-linux-gnu)

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