Comments (5)
Hi David,
What you have should work. I've just tried it with grpc v1.49.0 locally.
First I would check that your bazel cache contains a symlink to your local repository.
That is,
ls -l /root/.cache/bazel/_bazel_root/.../external/com_google_protobuf
should be pointing to /root/grpc-1.49.0/third_party/protobuf.
If it's not, you might try running "bazel clean --expunge" to force bazel to clear its cache of downloaded repos, then rebuild.
If it is, maybe your local protobuf library has a problem. grpc 1.49.0 should be using protobuf version 3.21.5, which seems to work for me.
Hope that helps
from fleetbench.
Hi Richard,
Thanks for the rapid response!
Sorry I should have mentioned that I have made some modifications to the protobuf library locally, however when I build it with grpc it all works okay so I was hoping it would be the same with this.
I am not overly familiar with Basel, are there changes that may need to be made somewhere else to help basel build and run successfully?
Thanks again for your help on this,
David
from fleetbench.
From the error message, it seems like the changes to protobuf introduced a circular dependency in the protobuf build rules.
@com_google_protobuf//:protobuf
| @com_google_protobuf//:src/google/protobuf/unittest_lite_imports_nonlite.pb.h
| @com_google_protobuf//:cc_test_protos_genproto
...
Something has gone wrong here. I'm not an expert on protobuf build rules, but they are complex. I note that my version of protobuf doesn't depend on these.
bazel query 'deps(@com_google_protobuf//:protobuf)'
prints the list of all dependencies, which could be helpful for figuring out why.
Or you can try bazel query 'somepath(@com_google_protobuf//:protobuf, @com_google_protobuf//:empty_proto)'
to see if that tells you why it has taken on that dependency.
I might suggest seeing if you can get it working with a clean copy of protobuf and then reintroduce your changes one-by-one to identify which one causes the problem.
from fleetbench.
Thank you for your help! I managed to get it working!
One quick thing, I noticed when I run the benchmark it doesn't give me bytes_per_second as an output field, is there anyway to enable it?
Thanks,
David
from fleetbench.
We need to implement the bytes processed counter which depends on how much throughput it is achieving, and that is specific to what each benchmark does. You should see it for libc/mem_benchmark, but it's not there for the others yet.
Would you mind opening a new issue requesting bytes_per_second and which benchmark(s) you would want to see that for? Thanks!
from fleetbench.
Related Issues (19)
- Bazel invokes `external/local_config_cc/None` as the linker HOT 1
- Fidelity about fleetbench HOT 1
- compression_benchmark corpus generation not consistent HOT 2
- Proto benchmark finer details
- Issue while bulding KMaxStackDepth HOT 3
- Issue with libpfm during bazel run --config=opt fleetbench/tcmalloc:empirical_driver HOT 2
- Error while running the tcmalloc/empirical . bazel run --config=opt fleetbench/tcmalloc:empirical_driver HOT 2
- compile fleetbench/tcmalloc:empirical_driver failed HOT 1
- C++14 requirement error using Bazel 6.3.2 and earlier HOT 1
- libc output - time_unit is ns instead of seconds HOT 1
- Provide a way to bench memory allocators HOT 1
- Question about glibc version HOT 1
- Generation of populate_protos.h HOT 3
- dataset and micro-benchmark support HOT 1
- bazel threw out errors when building HOT 3
- Build fleetbench failed as no permission with Bazel 5.4.0 HOT 8
- Fleetbench-proto build fails with Clang+ThinLTO HOT 9
- FDO build failing due to missing bazel_tools HOT 1
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 fleetbench.