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

doesn't seem to work #107

Open
cjolivier01 opened this issue Feb 9, 2025 · 1 comment
Open

doesn't seem to work #107

cjolivier01 opened this issue Feb 9, 2025 · 1 comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@cjolivier01
Copy link

cjolivier01 commented Feb 9, 2025

Well, like most Bazel things I try, this doesn't seem to work at all:

DEBUG: Rule 'pybind11_bazel' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "9df284330336958c837fb70dc34c0a6254dac52a5c983b3373a8c2bbb79ac35e"
DEBUG: Repository pybind11_bazel instantiated at:
  /home/colivier/src/hm-cupano/WORKSPACE:43:13: in <toplevel>
Repository rule http_archive defined at:
  /home/colivier/.cache/bazel/_bazel_colivier/c6bb00f9e8f790cdd03a2ec44db149ec/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
ERROR: /home/colivier/.cache/bazel/_bazel_colivier/c6bb00f9e8f790cdd03a2ec44db149ec/external/pybind11/BUILD.bazel: no such target '@pybind11//:msvc_compiler': target 'msvc_compiler' not declared in package '' defined by /home/colivier/.cache/bazel/_bazel_colivier/c6bb00f9e8f790cdd03a2ec44db149ec/external/pybind11/BUILD.bazel (Tip: use `query "@pybind11//:*"` to see all the targets in that package)
ERROR: /home/colivier/src/hm-cupano/hmcupano/BUILD.bazel:3:17: errors encountered resolving select() keys for //hmcupano:hello_ext.so
ERROR: Analysis of target '//hmcupano:hello_ext' failed; build aborted: 
INFO: Elapsed time: 0.685s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (39 packages loaded, 140 targets configured)
  • The terminal process "/usr/bin/bash '-c', 'bazelisk build --config=debug //...'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.
@Mizux
Copy link
Collaborator

Mizux commented Feb 12, 2025

How did you test ? pybind11_bazel is basically a "wrapper" on top of pybind11 for bazel so you don't build it directly...

BTW I've tested some ci using the "examples/basic" sub project to test windows build using github windows runner -> seems to work as expected....
see: https://github.com/Mizux/pybind11_bazel/actions

For using it in your project take a look at the pybind11_abseil or pybind11_protobuf project
if using bzlmod aka MODULE.bazel (default with bazel 8.0):

@Mizux Mizux added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants