-
Notifications
You must be signed in to change notification settings - Fork 54
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
Linker error when using ld.gold #94
Comments
…otobuf. Leave it for later to resolve the `ubuntu-latest bazel` failure: * pybind/pybind11_bazel#94 ``` ERROR: /home/runner/work/pybind11_abseil/pybind11_abseil/pybind11_abseil/tests/BUILD:92:17: Linking pybind11_abseil/tests/missing_import.so failed: (Exit 1): gcc failed: error executing CppLink command (from target //pybind11_abseil/tests:missing_import.so) /usr/bin/gcc @bazel-out/k8-fastbuild/bin/pybind11_abseil/tests/missing_import.so-2.params Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging /usr/bin/ld.gold: undefs: unknown -z option ``` PiperOrigin-RevId: 658835571
…otobuf. Leave it for later to resolve the `ubuntu-latest bazel` failure: * pybind/pybind11_bazel#94 ``` ERROR: /home/runner/work/pybind11_abseil/pybind11_abseil/pybind11_abseil/tests/BUILD:92:17: Linking pybind11_abseil/tests/missing_import.so failed: (Exit 1): gcc failed: error executing CppLink command (from target //pybind11_abseil/tests:missing_import.so) /usr/bin/gcc @bazel-out/k8-fastbuild/bin/pybind11_abseil/tests/missing_import.so-2.params Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging /usr/bin/ld.gold: undefs: unknown -z option ``` PiperOrigin-RevId: 658835571
…otobuf. Leave it for later to resolve the `ubuntu-latest bazel` failure: * pybind/pybind11_bazel#94 ``` ERROR: /home/runner/work/pybind11_abseil/pybind11_abseil/pybind11_abseil/tests/BUILD:92:17: Linking pybind11_abseil/tests/missing_import.so failed: (Exit 1): gcc failed: error executing CppLink command (from target //pybind11_abseil/tests:missing_import.so) /usr/bin/gcc @bazel-out/k8-fastbuild/bin/pybind11_abseil/tests/missing_import.so-2.params Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging /usr/bin/ld.gold: undefs: unknown -z option ``` PiperOrigin-RevId: 658835571
…otobuf. Leave it for later to resolve the `ubuntu-latest bazel` failure: * pybind/pybind11_bazel#94 ``` ERROR: /home/runner/work/pybind11_abseil/pybind11_abseil/pybind11_abseil/tests/BUILD:92:17: Linking pybind11_abseil/tests/missing_import.so failed: (Exit 1): gcc failed: error executing CppLink command (from target //pybind11_abseil/tests:missing_import.so) /usr/bin/gcc @bazel-out/k8-fastbuild/bin/pybind11_abseil/tests/missing_import.so-2.params Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging /usr/bin/ld.gold: undefs: unknown -z option ``` PiperOrigin-RevId: 659560021
@rwgk I can see this issue is mentioned in several commits in https://github.com/pybind/pybind11_abseil. Does this mean you are able to reporduce it there? |
Yes, but I took a shortcut and simply pinned the pybind11_bazel version: pybind/pybind11_abseil@d25d7b3 What crossed my mind (but I will not have a chance to work on myself for sure, unfortunately): It would be great if there was
Which is essentially what you'd have to do now (just locally) to reproduce the issue. Ideally repeat with pybind11_protobuf. |
Agreed on all points. @rwgk I've never set up GitHub Actions before but I'd like to give it a go. |
I only know a little bit myself, about GitHub actions. There isn't much to it getting started: simply add a file with some name, e.g. I found this quite useful: https://github.github.io/actions-cheat-sheet/actions-cheat-sheet.pdf There is more documentation that's pretty good. Spending half an hour or so just to look around and know where things are is probably a productivity booster. |
https://github.com/bazel-contrib/rules_oci/blob/main/.github/workflows/ci.yaml or similar repos in this group are also good examples. |
@hofbi: type in the issue title? |
Good catch, thanks |
The new flags introduced with #90 result in a linker error for the examples:
The text was updated successfully, but these errors were encountered: