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

It should be `__var_CMAKE_AR="${EXT_BUILD_ROOT//\\//}/toolchain/toolchains/cc-armv7l-luckfox/wrappers/arm-rockchip830-linux-uclibcgnueabihf-ar"` not `__var_CMAKE_AR="toolchain/toolchains/cc-armv7l-${EXT_BUILD_ROOT//\\//}/luckfox/wrappers/arm-rockchip830-linux-uclibcgnueabihf-ar"` how to fix it? [CMake.log](https://github.com/bazelbuild/rules_foreign_cc/files/13723890/CMake.log) [build_script.sh](https://github.com/bazelbuild/rules_foreign_cc/files/13723892/build_script.sh.log)

Running ``` bazel build //toolchains:make_tool ``` gives the error ``` ERROR: /Users/arvid/code/rules_foreign_cc/toolchains/BUILD.bazel:101:10: BootstrapGNUMake toolchains/make failed: (Exit 1): bash failed: error executing command /bin/bash -c bazel-out/darwin_arm64-fastbuild/bin/toolchains/make_tool_foreign_cc/wrapper_build_script.sh Use --sandbox_debug to see verbose...

help wanted

There's an issue that affects some CMake projects, nameli X265 and AOM, that is that they use the C++ compiler for linking, which means they also pick up all CXX_FLAGS...

The setup guide only explains how to use rules_foreign_cc with WORKSPACE, not with bzlmod. https://bazelbuild.github.io/rules_foreign_cc/main/index.html#setup

Currently, foreign_rules_cc captures the cmake output log ([CMake.log](https://github.com/bazelbuild/rules_foreign_cc/blob/51152aac9d6d8b887802a47ec08a1a37ef2c4885/foreign_cc/private/framework.bzl#L617-L620); this is helpful for some types of debugging. However, I was hoping it could also capture the cmake configure logs; these are...

I am trying to build [OpenCV](https://github.com/opencv/opencv) on a Ubuntu 22.04 machine running Bazel 6.1.1. My workspace is setup as follows: WORKSPACE: ``` http_archive( name = "rules_foreign_cc", sha256 = "476303bd0f1b04cc311fc258f1708a5f6ef82d3091e53fd1977fa20383425a6a", strip_prefix...

Steps to reproduce: * Visit https://bazelbuild.github.io/rules_foreign_cc/ Expectation: * See links for 0.10.0 and 0.10.1 Observation: * Only links up to 0.9.0 are shown

I'm confused about how to dynamically set `cache_entries`. There may be another way of doing this that I'm not aware of. Please let me know if that's the case, so...

We've observed at least two separate issues during the `BootstrapGNUMake` step on users who've upgraded their machines to the latest `v15` release of the mac command line tools or the...