-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building with bazel error: "ar: libdeps specified more than once" or "undefined reference to PQ" #804
Comments
From the build message, it looks like you are building pqxx. BTW. It is recommended that you ask questions about how to use Bazel in the Bazel community. |
(It is normal that if you remove |
thank you @jtv . Do you know how to solve the issue of "ar: libdeps specified more than once"? this error happens when -lpq is included. |
I'm sorry, I have nothing beyond what @tt4g already mentioned. I don't know bazel, and it's hard to read those long command lines on my phone screen. |
I don't know Bazel's working specifications, but if Bazel is running CMake to build libpqxx, isn't the |
@manoelmenezes did you try @tt4g's suggestion? I have no further ideas I'm afraid. I've never worked with Bazel. |
@manoelmenezes this looks like may also be a simple command line problem at its core. Can you see the command line that cmake produced for linking? We're getting a bunch of bug reports now from people who run some variant of |
It's been a while. I would guess that the problem has been resolved... @manoelmenezes did you ever find out what the problem was? I'd like to close this ticket if so, but it'd be nice to have the solution for future readers. |
Hello,
Could you help me solving the following issue? Thank you!
I am trying to build it with bazel.
Machine:
Linux 6.1.0-18-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux
I already installed:
My WORKSPACE file:
libpqxx.BUILD:
The error is:
If I remove
"CMAKE_STATIC_LINKER_FLAGS": "-lpqxx -lpq",
from the file libpqxx.BUILD. It fails with (a lot ofundefined reference to PQ
- the error below has been truncated):The text was updated successfully, but these errors were encountered: