rules_foreign_cc icon indicating copy to clipboard operation
rules_foreign_cc copied to clipboard

Build rules for interfacing with "foreign" (non-Bazel) build systems (CMake, configure-make, GNU Make, boost, ninja, Meson)

Results 208 rules_foreign_cc issues
Sort by recently updated
recently updated
newest added

In MacOS Monterey 12.4, `python` is [no longer a command](https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes) that's installed by default; only `python3`. When building MySQL through rules_foreign_cc, I get a `python not found` based on this...

I use cmake macro to build protobuf successfully, and get a binary file: protoc ``` # file: protobuf/BUILD/bazel cmake( name = "protobuf_impl", build_args = [ "--parallel=`nproc`", ], cache_entries = {...

When specifying ``` postfix_script = "false", ``` in a `cmake` rule, I'd expect this to fail the build. Actually, this silently succeeds.

I tried to build `configure_make` example that provide apr library as third party. On make stage it fails: ``` config.status: executing libtool commands config.status: executing default commands + /private/var/tmp/_bazel_u18151176/230694bf04aa38d817d04fe9d58edb9d/sandbox/darwin-sandbox/2/execroot/rules_foreign_cc_examples/bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/rules_foreign_cc/toolchains/make/bin/make -C...

At least since Ninja 1.10.2 the macos binaries are actually universal binaries which means that they support both `x86_64` as well as `aarch64`. I tested all versions manually to make...

When using `cmake()` together with Bazel 7.0 with exported headers the build fails. ```sh $ cd rules_foreign_cc/examples $ USE_BAZEL_VERSION=7.0.0rc7 bazelisk build //cmake_hello_world_lib/shared/... INFO: Analyzed 3 targets (0 packages loaded, 0...

bug
help wanted

Hi, when upgrading from 0.9.0 to 0.10.1, our invocation of `cmake_variant` with `toolchain = "@rules_foreign_cc//toolchains:preinstalled_make_toolchain"` is broken on Linux (Ubuntu 20.04) and MacOS. We're getting > ERROR: /private/var/tmp/_bazel_criemen/1ae7e8b72656956ce63cda3a3c55ef29/external/rules_foreign_cc/toolchains/BUILD.bazel:317:15: in pkgconfig_tool_unix...

This PR allows setting the `--prefix` flag to an absolute path for `configure`. When `make` is invoked, targets that start with `install` or `uninstall` are given a `DESTDIR` flag which...

As discussed in #986, a `setup_args` argument to the meson rule similar to `build_args` and `install_args` for the other steps should be added. _Originally posted by @sfc-gh-mfickert in https://github.com/bazelbuild/rules_foreign_cc/issues/986#issuecomment-1432936301_ CC...