rizsotto / Bear

Bear is a tool that generates a compilation database for clang tooling.
GNU General Public License v3.0
4.79k stars 314 forks source link

wrapper: failed with: gRPC call failed: failed to connect to all addresses #415

Closed tr4v3ler closed 2 years ago

tr4v3ler commented 2 years ago

After compiling, I tried to execute bear, but the following error occurred:

$ bear -- make -j8 O=out ARCH=arm64
ERROR: ld.so: object '/usr/local/$LIB/bear/libexec.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wrapper: failed with: gRPC call failed: failed to connect to all addresses

The default path of libexec.so here should be /usr/local/lib/bear/libexec.so, repairing this path can solve the first problem. I don't know why the second grpc problem occurred. By the way, I use Ubuntu 20.04.3, and the bear version is 3.0.16.

tr4v3ler commented 2 years ago

I found this can solve my problem.