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

Failed build: failed to run custom build command for zksync_protobuf #309

Open
1 of 2 tasks
Keref opened this issue Apr 8, 2024 · 0 comments
Open
1 of 2 tasks

Failed build: failed to run custom build command for zksync_protobuf #309

Keref opened this issue Apr 8, 2024 · 0 comments
Labels
compiler Issues specific to compiling

Comments

@Keref
Copy link

Keref commented Apr 8, 2024

Component

Forge, Cast

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

No response

What command(s) is the bug in?

cargo build --release

Operating System

Windows

Describe the bug

The build fails:

error: failed to run custom build command for `zksync_protobuf v0.1.0 (https://github.com/matter-labs/era-consensus.git?rev=49b1a98f80d0e9f74fdceadece4283e745c71599#49b1a98f)`

Caused by:
  process didn't exit successfully: `D:\projects\theta\foundry-zksync\target\local\build\zksync_protobuf-9cd30369f4f45ba5\build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-changed=src/proto

  --- stderr
  thread 'main' panicked at C:\Users\Nico\.cargo\git\checkouts\era-consensus-faf08358d069ebce\49b1a98\node\libs\protobuf\build.rs:12:6:
  generate(std): file 'zksync\std.proto' is not in any include path
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `zkcast v0.2.0 (D:\projects\theta\foundry-zksync\crates\zkcast)`, intermediate artifacts can be found at `D:\projects\theta\foundry-zksync\target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

the stack backtrace:

Stack backtrace:
     0: <unknown>
 (...)
    14: <unknown>
    15: BaseThreadInitThunk
    16: RtlUserThreadStart

I ran rustup update nightly but the error persists. I'm not familiar with rust so no idea how to debug this.

@Keref Keref added the T-bug label Apr 8, 2024
@dutterbutter dutterbutter added compiler Issues specific to compiling and removed T-bug labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Issues specific to compiling
Projects
None yet
Development

No branches or pull requests

2 participants