Skip to content

error: failed to run custom build command for `substreams-uniswap-v2 v0.1.0 #158

@jiasenwqbr

Description

@jiasenwqbr

make build-all

/Library/Developer/CommandLineTools/usr/bin/make -C substreams-helper build
cargo build --target wasm32-unknown-unknown --release
warning: /Users/jason/Desktop/code/web3/dapp-tools/004TheGraph/01substreams/code/base/substreams/Cargo.toml: unused manifest key: build
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling syn v1.0.109
   Compiling autocfg v1.1.0
   Compiling serde v1.0.183
   Compiling typenum v1.16.0
   Compiling crunchy v0.2.2
   Compiling anyhow v1.0.72
   Compiling version_check v0.9.4
   Compiling libc v0.2.147
   Compiling either v1.9.0
   Compiling memchr v2.5.0
   Compiling tiny-keccak v2.0.2
   Compiling thiserror v1.0.44
   Compiling bytes v1.4.0
   Compiling cfg-if v1.0.0
   Compiling serde_json v1.0.104
   Compiling rustc-hex v2.1.0
   Compiling ppv-lite86 v0.2.17
   Compiling byteorder v1.4.3
   Compiling static_assertions v1.1.0
   Compiling arrayvec v0.7.4
   Compiling hex v0.4.3
   Compiling byte-slice-cast v1.2.2
   Compiling hex-literal v0.3.4
   Compiling prettyplease v0.1.25
   Compiling regex-syntax v0.7.4
   Compiling ryu v1.0.15
   Compiling unicode-width v0.1.10
   Compiling itoa v1.0.9
   Compiling once_cell v1.18.0
   Compiling heck v0.4.1
   Compiling keccak v0.1.4
   Compiling base64 v0.13.1
   Compiling downcast-rs v1.2.0
   Compiling itertools v0.10.5
   Compiling generic-array v0.14.7
   Compiling num-traits v0.2.16
   Compiling num-integer v0.1.45
   Compiling num-bigint v0.4.3
   Compiling rlp v0.5.2
   Compiling getrandom v0.2.10
   Compiling pad v0.1.6
   Compiling rand_core v0.6.4
   Compiling impl-rlp v0.3.0
   Compiling uint v0.9.5
   Compiling quote v1.0.32
   Compiling rand_chacha v0.3.1
   Compiling cpufeatures v0.2.9
   Compiling aho-corasick v1.0.3
   Compiling syn v2.0.28
   Compiling rand v0.8.5
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling regex-automata v0.3.6
   Compiling digest v0.10.7
   Compiling fixed-hash v0.7.0
   Compiling sha3 v0.10.8
   Compiling serde_derive v1.0.183
   Compiling thiserror-impl v1.0.44
   Compiling bigdecimal v0.3.1
   Compiling regex v1.9.3
   Compiling impl-trait-for-tuples v0.2.2
   Compiling prost-derive v0.11.9
   Compiling substreams-macro v0.5.10
   Compiling prost-derive v0.10.1
   Compiling prost v0.11.9
   Compiling prost v0.10.4
   Compiling parity-scale-codec v3.6.4
   Compiling impl-serde v0.3.2
   Compiling prost-types v0.11.9
   Compiling ethbloom v0.12.1
   Compiling prost-types v0.10.1
   Compiling substreams v0.5.10
   Compiling impl-codec v0.6.0
   Compiling primitive-types v0.11.1
   Compiling ethereum-types v0.13.1
   Compiling ethabi v17.2.0
   Compiling substreams-entity-change v1.3.0
   Compiling substreams-ethereum-core v0.8.0
   Compiling substreams-ethereum-abigen v0.8.0
   Compiling substreams-ethereum-derive v0.8.0
   Compiling substreams-ethereum v0.8.0
   Compiling substreams-common v0.1.0 (/Users/jason/Desktop/code/web3/dapp-tools/004TheGraph/01substreams/code/base/substreams/common)
   Compiling substreams-helper v0.0.2 (/Users/jason/Desktop/code/web3/dapp-tools/004TheGraph/01substreams/code/base/substreams/substreams-helper)
warning: use of deprecated field `substreams_entity_change::pb::entity::Field::old_value`: not used by 'graph-node', will be removed
   --> substreams-helper/src/tables.rs:112:25
    |
112 |                         old_value: None,
    |                         ^^^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: `substreams-helper` (lib) generated 1 warning
    Finished release [optimized] target(s) in 19.49s
/Library/Developer/CommandLineTools/usr/bin/make -C uniswap-v2 build
cargo build --target wasm32-unknown-unknown --release
warning: /Users/jason/Desktop/code/web3/dapp-tools/004TheGraph/01substreams/code/base/substreams/Cargo.toml: unused manifest key: build
   Compiling substreams-uniswap-v2 v0.1.0 (/Users/jason/Desktop/code/web3/dapp-tools/004TheGraph/01substreams/code/base/substreams/uniswap-v2)
warning: use of deprecated field `substreams_entity_change::pb::entity::Field::old_value`: not used by 'graph-node', will be removed
   --> substreams-helper/src/tables.rs:112:25
    |
112 |                         old_value: None,
    |                         ^^^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: `substreams-helper` (lib) generated 1 warning
error: failed to run custom build command for `substreams-uniswap-v2 v0.1.0 (/Users/jason/Desktop/code/web3/dapp-tools/004TheGraph/01substreams/code/base/substreams/uniswap-v2)`
                                                         
Caused by:
  process didn't exit successfully: `/Users/jason/Desktop/code/web3/dapp-tools/004TheGraph/01substreams/code/base/substreams/target/release/build/substreams-uniswap-v2-97cba88dfde6c6bf/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=proto
  cargo:rerun-if-changed=abi
  Running: buf generate /var/folders/1y/_pr_zrfn54vgvm_lrtdl92v00000gn/T/substreams_protogen1167206425/substreams_uniswap_v2.tmp.spkg#format=bin --include-imports
  Searching for files in /Users/jason/Desktop/code/web3/dapp-tools/004TheGraph/01substreams/code/base/substreams/uniswap-v2/target/tmp

  --- stderr
  Failure: invalid_argument: plugin "buf.build/community/neoeinstein-prost:v0.4.0" exited with non-zero status 101: thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/prost-build-0.13.1/src/message_graph.rs:96:54:
  called `Option::unwrap()` on a `None` value
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  Error: error executing 'buf':: exit status 1
  thread 'main' panicked at 'Error creating dir: No such file or directory (os error 2)', common/src/codegen.rs:134:59
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
make[1]: *** [build] Error 101
make: *** [build-all] Error 2

How to fix it ?

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