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

update rules_perl to resolve toolchain on darwin_arm64 #1107

Closed
xytan0056 opened this issue Oct 23, 2023 · 0 comments
Closed

update rules_perl to resolve toolchain on darwin_arm64 #1107

xytan0056 opened this issue Oct 23, 2023 · 0 comments

Comments

@xytan0056
Copy link
Contributor

currently on darwin_arm64 @openssl example fails with

➜  examples git:(main) ✗  bazel build @libssh2                           
...
ERROR: /private/var/tmp/_bazel_tanx/abc/external/rules_perl/BUILD:18:23: While resolving toolchains for target @rules_perl//:current_toolchain: No matching toolchains found for types @rules_perl//:toolchain_type.
To debug, rerun with --toolchain_resolution_debug='@rules_perl//:toolchain_type'
If platforms or toolchains are a new concept for you, we'd encourage reading https://bazel.build/concepts/platforms-intro.

adding

➜  examples git:(main) ✗  bazel build @libssh2 --toolchain_resolution_debug='@rules_perl//:toolchain_type'
INFO: Build option --toolchain_resolution_debug has changed, discarding analysis cache.
INFO: ToolchainResolution:     Type @rules_perl//:toolchain_type: execution platform @local_config_platform//:host: Rejected toolchain @perl_darwin_amd64//:toolchain_impl; mismatching values: x86_64
INFO: ToolchainResolution:     Type @rules_perl//:toolchain_type: execution platform @local_config_platform//:host: Rejected toolchain @perl_linux_amd64//:toolchain_impl; mismatching values: linux, x86_64
INFO: ToolchainResolution:     Type @rules_perl//:toolchain_type: execution platform @local_config_platform//:host: Rejected toolchain @perl_windows_amd64//:toolchain_impl; mismatching values: windows, x86_64
INFO: ToolchainResolution:   Type @rules_perl//:toolchain_type: target platform @build_bazel_apple_support//platforms:macos_arm64: No toolchains found.
...

in latest rules_perl, toolchain is already registered in platforms

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

2 participants