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

Error: Custom { kind: Other, error: "protoc failed: blockchain_txn.proto:1:10: Unrecognized syntax identifier \"proto3\". This parser only recognizes \"proto2\".\n" } #318

Closed
shawaj opened this issue Apr 11, 2023 · 5 comments

Comments

@shawaj
Copy link

shawaj commented Apr 11, 2023

Any idea how to resolve this?

error: failed to run custom build command for `helium-proto v0.1.0 (https://github.com/helium/proto?branch=master#6edba809)`

Caused by:
  process didn't exit successfully: `/target/release/build/helium-proto-62cbd62839dbfd84/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-changed=src/blockchain_txn.proto
  cargo:rerun-if-changed=src/entropy.proto
  cargo:rerun-if-changed=src/data_rate.proto
  cargo:rerun-if-changed=src/region.proto
  cargo:rerun-if-changed=src/mapper.proto
  cargo:rerun-if-changed=src/reward_manifest.proto
  cargo:rerun-if-changed=src/blockchain_region_param_v1.proto
  cargo:rerun-if-changed=src/price_report.proto
  cargo:rerun-if-changed=src/service/router.proto
  cargo:rerun-if-changed=src/service/state_channel.proto
  cargo:rerun-if-changed=src/service/local.proto
  cargo:rerun-if-changed=src/service/gateway.proto
  cargo:rerun-if-changed=src/service/transaction.proto
  cargo:rerun-if-changed=src/service/follower.proto
  cargo:rerun-if-changed=src/service/poc_mobile.proto
  cargo:rerun-if-changed=src/service/poc_lora.proto
  cargo:rerun-if-changed=src/service/poc_entropy.proto
  cargo:rerun-if-changed=src/service/packet_router.proto
  cargo:rerun-if-changed=src/service/iot_config.proto
  cargo:rerun-if-changed=src/service/mobile_config.proto
  cargo:rerun-if-changed=src/service/downlink.proto
  cargo:rerun-if-changed=src/service/multi_buy.proto
  cargo:rerun-if-changed=src/service/packet_verifier.proto
  cargo:rerun-if-changed=src

  --- stderr
  Error: Custom { kind: Other, error: "protoc failed: blockchain_txn.proto:1:10: Unrecognized syntax identifier \"proto3\".  This parser only recognizes \"proto2\".\n" }
warning: build failed, waiting for other jobs to finish...
[cargo-make] ERROR - Error while executing command, exit code: 101
[cargo-make] WARN - Build Failed.
Error: Process completed with exit code 1.
@shawaj
Copy link
Author

shawaj commented Apr 11, 2023

For reference, it only seems to happen when trying to build gateway-rs for:

  • aarch64-unknown-linux-gnu
  • armv7-unknown-linux-gnueabihf

The others seem to work fine

@lthiery
Copy link
Contributor

lthiery commented Apr 11, 2023

@shawaj how are you building for the other platforms?

Based on the error, it looks like the system protoc that the Rust compilation is using is proto2. Can you run protoc --version?

@madninja
Copy link
Member

The platform you're building on needs to have the protoc compiler installed. This is prolly not the right repo for this?

@madninja
Copy link
Member

Please take to gateway-rs or the right repowhere you're seeing issues.

@shawaj
Copy link
Author

shawaj commented Apr 11, 2023

sorry @madninja @lthiery moving to helium/gateway-rs#415

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

3 participants