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] error: failed to run custom build command for windows_x86_64_msvc v0.48.5 #10848

Open
zhanghzong opened this issue Aug 31, 2024 · 1 comment
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@zhanghzong
Copy link

Describe the bug

version

rustup 1.27.1 (54dd3d00f 2024-04-24)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.80.1 (3f5fd8dd4 2024-08-06)`

win11

command

pnpm tauri dev

desc

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

Caused by:
could not execute process D:\workspaces\rust\app-1\src-tauri\target\debug\build\windows_x86_64_msvc-73c75ea0da9a783c\build-script-build (never executed)

Caused by:
拒绝访问。 (os error 5)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for serde_json v1.0.127

Caused by:
could not execute process D:\workspaces\rust\app-1\src-tauri\target\debug\build\serde_json-684725161e9bb153\build-script-build (never executed)

Caused by:
拒绝访问。 (os error 5)

image

Reproduction

No response

Expected behavior

No response

Full tauri info output

> app-1@0.1.0 tauri D:\workspaces\rust\app-1
> tauri "dev"

    Running BeforeDevCommand (`pnpm dev`)

> app-1@0.1.0 dev D:\workspaces\rust\app-1
> vite


  VITE v5.4.2  ready in 552 ms

  ➜  Local:   http://localhost:1420/
    Info Watching D:\workspaces\rust\app-1\src-tauri for changes...
   Compiling serde_derive v1.0.209
   Compiling zerocopy-derive v0.7.35
   Compiling thiserror-impl v1.0.63
   Compiling cssparser v0.27.2
   Compiling derive_more v0.99.18
   Compiling cssparser-macros v0.6.1
   Compiling html5ever v0.26.0
   Compiling darling_core v0.20.10
   Compiling windows_x86_64_msvc v0.48.5
   Compiling regex-automata v0.4.7
   Compiling serde_json v1.0.127
   Compiling serde_derive_internals v0.29.1
   Compiling brotli v6.0.0
   Compiling ctor v0.2.8
   Compiling glob v0.3.1
   Compiling libc v0.2.158
error: failed to run custom build command for `windows_x86_64_msvc v0.48.5`

Caused by:
  could not execute process `D:\workspaces\rust\app-1\src-tauri\target\debug\build\windows_x86_64_msvc-73c75ea0da9a783c\build-script-build` (never executed)

Caused by:
  拒绝访问。 (os error 5)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `serde_json v1.0.127`

Caused by:
  could not execute process `D:\workspaces\rust\app-1\src-tauri\target\debug\build\serde_json-684725161e9bb153\build-script-build` (never executed)

Caused by:
  拒绝访问。 (os error 5)

Stack trace

No response

Additional context

No response

@zhanghzong zhanghzong added status: needs triage This issue needs to triage, applied to new issues type: bug labels Aug 31, 2024
@FabianLars
Copy link
Member

Hmm, could this be some anti virus software blocking the build scripts? That's the only thing that comes to mind, so maybe try whitelisting the build folder 🤔 (should also speed up the build times)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants