Comments (5)
Does it work if using the master version?
from grpc-rs.
@BusyJay Thanks a lot for your swift reply, unfortunately I am getting the same error when using the master version
from grpc-rs.
I may have located the issue, maybe "freebsd" must be added to the following places:
#[cfg(any(
feature = "_gen-bindings",
not(all(
any(target_os = "linux", target_os = "macos"),
any(target_arch = "x86_64", target_arch = "aarch64")
))
))]
{
// On some system (like Windows), stack size of main thread may
// be too small.
let f = file_path.clone();
std::thread::Builder::new()
.stack_size(8 * 1024 * 1024)
.name("bindgen_grpc".to_string())
.spawn(move || bindgen_grpc(&f))
.unwrap()
.join()
.unwrap();
}
[target.'cfg(not(all(any(target_os = "linux", target_os = "macos"), any(target_arch = "x86_64", target_arch = "aarch64"))))'.build-dependencies]
bindgen = { version = "0.69.0", default-features = false, features = ["runtime"] }
A problem with the stack size would explain why a panic is triggered during the build process. If freebsd is added to the target_os array of the Cargo file, my understanding is that bindgen would not be included as a dependency on FreeBSD, and the code section in build.rs would not be compiled and executed. But I do not have enough understanding of the domain/project to understand the implications.
from grpc-rs.
No, this is an issue with old rust-bindgen and new clang. It's expected to be fixed in bindgen >= 0.61. And master has upgraded bindgen to 0.69, so I asked to check whether master can be compiled.
from grpc-rs.
@BusyJay You were right, I have isolated the repo and can confirm that the build completes without problem when building against master. Sorry for the confusion.
Do you plan to push a release some time or maybe create a tag to ensure that we are building against a relatively stable version?
from grpc-rs.
Related Issues (20)
- Support code generation for proto definitions utilizing experimental features HOT 1
- failed to build in mac HOT 6
- grpcio-sys-0.8.1 build error HOT 2
- grpcio v0.12.1 failed to build HOT 13
- grpcio-sys-0.12.1+1.46.5-patched compile error on latest `clang` HOT 3
- TiKV runs into Handshake failed with fatal error SSL_ERROR_SSL. HOT 2
- Failed to build on windows
- 0.12.1+1.56.2-patched failed to link systemd HOT 2
- Examples not compiling HOT 2
- add support to measure message delivery's time from the StreamingCallSink's
- Cmake error when trying to use grpcio with 0.13.0 HOT 2
- Don't know how to use TLS. HOT 2
- Bump prost to `0.12` HOT 1
- MetadataBuilder should implement Clone
- observability: improve the observability for every cq running task
- performance: more cost on CPU when upgrading to v0.13.0 HOT 1
- Unable to compile w/ prost-codec, missing proto files in grpcio-sys directory? HOT 3
- Dependency `ansi_term` is Unmaintained HOT 1
- performance regression after update to the newest master commit HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpc-rs.