bazel-contrib / bazel-contrib/rules_foreign_cc
no such package '@[unknown repo 'gettext_runtime' requested from @rules_foreign_cc
- Dominant language
- Starlark
- Stars
- 737
- Forks
- 270
- PR merge metrics
- No merged PRs in 30d
Description
Trying to build examples. I get the error "no such package". How can I fix it?
OS: Windows 10
MSYS2:
```bash
$
Jay@PC /c/projects/other/rules_foreign_cc-0.10.1/rules_foreign_cc-0.10.1/examples
bazel build //cmake_hello_world_lib/shared:libhello
ERROR: no such package '@@[unknown repo 'gettext_runtime' requested from @@rules_foreign_cc~]//': The repository '@@[unknown repo 'gettext_runtime' requested from @@rules_foreign_cc~]' could not be resolved: No repository visible as '@gettext_runtime' from repository '@@rules_foreign_cc~'
ERROR: C:/msys64/home/Jay/_bazel_Jay/5z5babhu/external/rules_foreign_cc~/toolchains/BUILD.bazel:317:15: no such package '@@[unknown repo 'gettext_runtime' requested from @@rules_foreign_cc~]//': The repository '@@[unknown repo 'gettext_runtime' requested from @@rules_foreign_cc~]' could not be resolved: No repository visible as '@gettext_runtime' from repository '@@rules_foreign_cc~' and referenced by '@@rules_foreign_cc~//toolchains:pkgconfig_tool_msvc_build_'
ERROR: Analysis of target '//cmake_hello_world_lib/shared:libhello' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.188s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
FAILED:
Fetching repository @@rules_foreign_cc~~tools~cmake-3.23.2-windows-x86_64; starting
Fetching repository @@rules_foreign_cc~~tools~gnumake_src; starting
```
Contributor guide
Research direction
Reproduce the Windows 10 failure from examples/cmake_hello_world_lib/shared:libhello and inspect toolchains/BUILD.bazel around the pkgconfig_tool_msvc_build_ reference to gettext_runtime. Trace how the external repositories are declared and made visible, then verify that the target builds successfully without the unknown-repository error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100