-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Build step error for helloworld example #337
Copy link
Copy link
Closed
Description
Bug Report
Version
examples v0.1.0 (tonic/examples)
├── tonic v0.2.0 (tonic/tonic)
├── tonic-health v0.1.0 (tonic/tonic-health)
│ └── tonic v0.2.0 (tonic/tonic) (*)
│ └── tonic-build v0.2.0 (tonic/tonic-build)
└── tonic-build v0.2.0 (tonic/tonic-build) (*)
Platform
Linux arch0 5.6.7-arch1-1 #1 SMP PREEMPT Thu, 23 Apr 2020 09:13:56 +0000 x86_64 GNU/Linux
Linux Distribution: Arch Linux
System protoc version: libprotoc 3.11.4
Description
Had build.rs issues when using tonic in an application. Wanted to check if it is my code issues or system setup issues, hence tried with helloworld example in tonic which had the same build step error.
$ cargo run --bin helloworld-server
Compiling tonic-health v0.1.0 (tonic/tonic-health)
Compiling examples v0.1.0 (tonic/examples)
error: failed to run custom build command for `examples v0.1.0 (tonic/examples)`
Caused by:
process didn't exit successfully: `tonic/target/debug/build/examples-8e69c115720c8c30/build-script-build` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `tonic-health v0.1.0 (tonic/tonic-health)`
Caused by:
process didn't exit successfully: `tonic/target/debug/build/tonic-health-0f64809ad5dfe82e/build-script-build` (exit code: 1)
Attempts
- Looked at couple of issues (tonic-examples build crashes: "No such file or directory" #102 ),
OUT_DIRvariable is being set right, dir exists with writable perms. - Tried setting
PROTOC,PROTOC_INCLUDEto system packages which didn't work. - Able to compile using
prost-buildin build step (Just messages obviously). - Ran build multiple times with
RUST_BACKTRACE=full,RUST_LOG=trace- absolutely no extra output.
I expected to see: Some error message on what is going wrong, apart from build command failed with exit code 1.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels