Open criemen opened 9 months ago
I bisected this, and the cause is https://github.com/bazelbuild/rules_foreign_cc/pull/1104.
Therefore, setting rules_foreign_cc_dependencies(register_built_pkgconfig_toolchain = False)
is a workaround for this issue.
Now, of course that PR didn't introduce the problem, so I bisected again with register_built_pkgconfig_toolchain = True
(which was a bit harder as not all variants have that flag), and that points at https://github.com/bazelbuild/rules_foreign_cc/pull/987 as the culprit.
Hi,
when upgrading from 0.9.0 to 0.10.1, our invocation of
cmake_variant
withtoolchain = "@rules_foreign_cc//toolchains:preinstalled_make_toolchain"
is broken on Linux (Ubuntu 20.04) and MacOS.We're getting
A simple reproduction workspace can be found at https://github.com/criemen/bazel-rules-foreig-cc-bug-repro, the bug reproduces with
bazelisk build @mimalloc//:mimalloc_variant
.The same code compiles with 0.9.0.
Let me know if I can do anything to help investigating this bug!