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

could not be resolved: No repository visible as '@glib_dev' from repository '@@rules_foreign_cc~' #1198

Open
sea3366 opened this issue Apr 24, 2024 · 0 comments

Comments

@sea3366
Copy link

sea3366 commented Apr 24, 2024

Environment
Windows 11, Microsoft Visual Studio 2022, bazel 7.1.1

MODULE.bazel
`
bazel_dep(name = "rules_foreign_cc", version = "0.10.1")
tools = use_extension("@rules_foreign_cc//foreign_cc:extensions.bzl", "tools")
tools.cmake(version = "3.23.2")
tools.ninja(version = "1.11.1")
use_repo(
tools,
"glib_runtime",
"glib_dev",
"glib_src",
"gettext_runtime",
"cmake_3.23.2_toolchains",
"cmake_src",
"gnumake_src",
"meson_src",
"ninja_1.11.1_toolchains",
"ninja_build_src",
"pkgconfig_src",
"rules_foreign_cc_framework_toolchains",
)

register_toolchains(
"@rules_foreign_cc_framework_toolchains//:all",
"@rules_foreign_cc//toolchains:built_make_toolchain",
"@rules_foreign_cc//toolchains:built_meson_toolchain",
"@rules_foreign_cc//toolchains:built_pkgconfig_toolchain",
"@rules_foreign_cc//toolchains:preinstalled_autoconf_toolchain",
"@rules_foreign_cc//toolchains:preinstalled_automake_toolchain",
"@rules_foreign_cc//toolchains:preinstalled_m4_toolchain",
"@rules_foreign_cc//toolchains:preinstalled_pkgconfig_toolchain",
"@cmake_3.23.2_toolchains//:all",
"@ninja_1.11.1_toolchains//:all",
)
`
Command
bazel build @@//tender-gui --config debug --define=PATH="%PATH%" --define=PKG_CONFIG_PATH="%PKG_CONFIG_PATH%"

Output
Starting local Bazel server and connecting to it... ERROR: no such package '@@[unknown repo 'glib_dev' requested from @@rules_foreign_cc~]//': The repository '@@[unknown repo 'glib_dev' requested from @@rules_foreign_cc~]' could not be resolved: No repository visible as '@glib_dev' from repository '@@rules_foreign_cc~' ERROR: D:/appdata/bazel/7ibwqnpt/external/rules_foreign_cc~/toolchains/BUILD.bazel:317:15: no such package '@@[unknown repo 'glib_dev' requested from @@rules_foreign_cc~]//': The repository '@@[unknown repo 'glib_dev' requested from @@rules_foreign_cc~]' could not be resolved: No repository visible as '@glib_dev' from repository '@@rules_foreign_cc~' and referenced by '@@rules_foreign_cc~//toolchains:pkgconfig_tool_msvc_build_' ERROR: Analysis of target '//tender-gui:tender-gui' failed; build aborted: Analysis failed INFO: Elapsed time: 29.633s, Critical Path: 0.06s 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~ninja_1.11.1_win; starting Fetching repository @@rules_foreign_cc~~tools~gnumake_src; starting Fetching repository @@rules_foreign_cc~~tools~pkgconfig_src; starting Fetching D:/appdata/bazel/7ibwqnpt/external/rules_foreign_cc~~tools~gnumake_src; Extracting make-4.4.tar.gz

@sea3366 sea3366 changed the title The repository '@@[unknown repo 'glib_dev' requested from @@rules_foreign_cc~]' could not be resolved: No repository visible as '@glib_dev' from repository '@@rules_foreign_cc~' could not be resolved: No repository visible as '@glib_dev' from repository '@@rules_foreign_cc~' Apr 24, 2024
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

1 participant