Skip to content
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

Linking cgo binaries fails. #4135

Open
filmil opened this issue Oct 7, 2024 · 0 comments
Open

Linking cgo binaries fails. #4135

filmil opened this issue Oct 7, 2024 · 0 comments

Comments

@filmil
Copy link

filmil commented Oct 7, 2024

What version of rules_go are you using?

Top-of-tree.

What version of gazelle are you using?

What version of Bazel are you using?

0.34.0

Does this issue reproduce with the latest releases of all the above?

I think so.

What operating system and processor architecture are you using?

Linux on x86_64

Any other potentially useful information about your toolchain?

What did you do?

Attempted to build a binary that requires a C++ .a static library.

What did you expect to see?

Things link just fine.

What did you see instead?

Unresolved symbols during link.

See discussion at: https://groups.google.com/g/bazel-discuss/c/XOERsY0-ceU

I was able to build after adding:
#4134
and modifying the client code as: thx123/bazel-cgo#1

Once done, things compile as one would expect. Video proof: https://photos.app.goo.gl/FeVhkqHNnngMQTv77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant