Giter Site home page Giter Site logo

Comments (5)

rjogrady avatar rjogrady commented on May 21, 2024

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.

davidbrogan13 avatar davidbrogan13 commented on May 21, 2024

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.

rjogrady avatar rjogrady commented on May 21, 2024

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.

davidbrogan13 avatar davidbrogan13 commented on May 21, 2024

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.

rjogrady avatar rjogrady commented on May 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.