Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Build Error: Access is Denied. (os error 5) in cargo install --force cargo-make #2045

Closed
JRS296 opened this issue Mar 20, 2023 · 9 comments

Comments

@JRS296
Copy link
Contributor

JRS296 commented Mar 20, 2023

Bug Description

I am getting the following error on trying to build out the development environment on my local machine.

error: failed to run custom build command for 'windows_x86_64_msvc v0.42.2'

Caused by:
  could not execute process 'C:\Users\jonat\AppData\Local\Temp\cargo-installl2mN57\release\build\windows_x86_64_msvc-fbbcda8063109501\build-script-build' (never executed)

Caused by:
  Access is denied. (os error 5)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-make v0.36.6`, intermediate artifacts can be found at `C:\Users\jonat\AppData\Local\Temp\cargo-installl2mN57`
PS D:\CompSci - Learn\Open Source Work\AppFlowy\AppFlowy>

I have followed the Build guide as specified in this doc: https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/software-contributions/environment-setup/building-on-windows

The bottleneck arrives on attempting command:
cargo install --force cargo-make

How to Reproduce

Follow Build steps from doc https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/software-contributions/environment-setup/building-on-windows

Expected Behavior

Completed Compilation for the given development environment.

Operating System

Windows

AppFlowy Version(s)

#2009

Screenshots

cargo build error

Additional Context

(Another small concern) Been receiving malware calls from Kaspersky during build process. Is this something to be concerned over?

Screenshot for the same:
malware

@appflowy
Copy link
Contributor

appflowy commented Mar 21, 2023

What's your Rust version? You can try rustup show.

@JRS296
Copy link
Contributor Author

JRS296 commented Mar 21, 2023

PS D:\CompSci - Learn\Open Source Work\AppFlowy\AppFlowy> rustup --version
rustup 1.25.2 (17db695f1 2023-02-01)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.68.0 (2c8cc3432 2023-03-06)`
PS D:\CompSci - Learn\Open Source Work\AppFlowy\AppFlowy> rustup show
Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\jonat\.rustup

stable-x86_64-pc-windows-msvc (default)
rustc 1.68.0 (2c8cc3432 2023-03-06)
PS D:\CompSci - Learn\Open Source Work\AppFlowy\AppFlowy> 

Cargo is at 1.68.0

@JRS296
Copy link
Contributor Author

JRS296 commented Mar 21, 2023

UPDATE: downgraded to rust version 1.65, still getting the same error.. Anything that can be done for the same?

@squidrye
Copy link
Contributor

Hi @JRS296, I believe your terminal does not has adminstrator privileges to execute files in your C drive, did you try launching your terminal as an administrator ?

@JRS296
Copy link
Contributor Author

JRS296 commented Mar 21, 2023

Tried it with Admin priveleges, same result:

image

@JRS296
Copy link
Contributor Author

JRS296 commented Mar 26, 2023

Successfully Built out the dev environment today, AntiVirus was interfering with the build

@JRS296 JRS296 closed this as completed Mar 26, 2023
@vhanla
Copy link

vhanla commented Sep 27, 2023

Kaspersky is blocking it. Could you please update build-script-build executable core and test it against virustotal so it won't be marked as false positive by most reknown antimalware software?
imagen
It is crazy of different build-script-build.exe files generated, and all of them marked as malware. I have to disable malware protection, and on reenable, it forces me to restart in order to "disinfect". 😅

@tao-a-man
Copy link

Successfully Built out the dev environment today, AntiVirus was interfering with the build

hii @JRS296 I have same problem, Plss help me tell how you can fix it?

@JRS296
Copy link
Contributor Author

JRS296 commented Feb 5, 2024

Hello @tao-a-man, just disable your antivirus (or add cargo to the list of exclusions), and enable firewall permissions for cargo. This should help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants