cpp-example stage1 build error : An error occurred during the fetch of repository
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- cpp
- Área
- build-system
Línea de trabajo
Comienza con el objetivo stage1/main/BUILD y reproduce bazel build //main:hello-world en la configuración de Windows indicada. Lee el tutorial de C++ enlazado y las instrucciones sobre los prerrequisitos de Windows junto con el error de la toolchain de rules_cc; se considerará terminado cuando se identifique una corrección reproducible del lado del ejemplo o un prerrequisito documentado, y la compilación de stage1 se complete correctamente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
First of all, thanks for your contributions
I'm trying to follow the instruction , and gets build error .
Tried to look for existing issues but couldn't find any, so reporting.
Here's the full log of my command (run on cmd inside VS Code):
(base) D:\work\bazel_examples\cpp-tutorial\stage1>bazel build //main:hello-world
Starting local Bazel server (8.2.1) and connecting to it...
INFO: Repository rules_cc++cc_configure_extension+local_config_cc instantiated at:
<builtin>: in <toplevel>
Repository rule cc_autoconf defined at:
C:/users/c2k/_bazel_c2k/7ncs2dzs/external/rules_cc+/cc/private/toolchain/cc_configure.bzl:109:30: in <toplevel>
ERROR: C:/users/c2k/_bazel_c2k/7ncs2dzs/external/rules_cc+/cc/private/toolchain/lib_cc_configure.bzl:112:9: An error occurred during the fetch of repository 'rules_cc++cc_configure_extension+local_config_cc':
Traceback (most recent call last):
File "C:/users/c2k/_bazel_c2k/7ncs2dzs/external/rules_cc+/cc/private/toolchain/cc_configure.bzl", line 89, column 36, in cc_autoconf_impl
configure_windows_toolchain(repository_ctx)
File "C:/users/c2k/_bazel_c2k/7ncs2dzs/external/rules_cc+/cc/private/toolchain/windows_cc_configure.bzl", line 881, column 35, in configure_windows_toolchain
msvc_vars_x64 = _get_msvc_vars(repository_ctx, paths, "x64")
File "C:/users/c2k/_bazel_c2k/7ncs2dzs/external/rules_cc+/cc/private/toolchain/windows_cc_configure.bzl", line 699, column 32, in _get_msvc_vars
env = setup_vc_env_vars(repository_ctx, vc_path)
File "C:/users/c2k/_bazel_c2k/7ncs2dzs/external/rules_cc+/cc/private/toolchain/windows_cc_configure.bzl", line 383, column 19, in setup_vc_env_vars
envs = execute(repository_ctx, ["./get_env.bat"], environment = env).split(",")
File "C:/users/c2k/_bazel_c2k/7ncs2dzs/external/rules_cc+/cc/private/toolchain/lib_cc_configure.bzl", line 206, column 32, in execute
auto_configure_fail(
File "C:/users/c2k/_bazel_c2k/7ncs2dzs/external/rules_cc+/cc/private/toolchain/lib_cc_configure.bzl", line 112, column 9, in auto_configure_fail
fail("\n%sAuto-Configuration Error:%s %s\n" % (red, no_color, msg))
Error in fail:
Auto-Configuration Error: non-zero exit code: 1, command ["./get_env.bat"], stderr: ('conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
)
ERROR: no such package '@@rules_cc++cc_configure_extension+local_config_cc//':
Auto-Configuration Error: non-zero exit code: 1, command ["./get_env.bat"], stderr: ('conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
)
ERROR: D:/work/bazel_examples/cpp-tutorial/stage1/main/BUILD:3:10: //main:hello-world depends on @@rules_cc++cc_configure_extension+local_config_cc//:cc-compiler-x64_windows in repository @@rules_cc++cc_configure_extension+local_config_cc which failed to fetch. no such package '@@rules_cc++cc_configure_extension+local_config_cc//':
Auto-Configuration Error: non-zero exit code: 1, command ["./get_env.bat"], stderr: ('conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
)
ERROR: D:/work/bazel_examples/cpp-tutorial/stage1/main/BUILD:3:10: //main:hello-world depends on @@rules_cc++cc_configure_extension+local_config_cc//:cc-compiler-x64_windows in repository @@rules_cc++cc_configure_extension+local_config_cc which failed to fetch. no such package '@@rules_cc++cc_configure_extension+local_config_cc//':
Auto-Configuration Error: non-zero exit code: 1, command ["./get_env.bat"], stderr: ('conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
ġ ƴմϴ.
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
)
ERROR: D:/work/bazel_examples/cpp-tutorial/stage1/main/BUILD:3:10: //main:hello-world depends on @@rules_cc++cc_configure_extension+local_config_cc//:cc-compiler-x64_windows in repository @@rules_cc++cc_configure_extension+local_config_cc which failed to fetch. no such package '@@rules_cc++cc_configure_extension+local_config_cc//':
Auto-Configuration Error: non-zero exit code: 1, command ["./get_env.bat"], stderr: ('conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
'conda'��() Ǵ ܺ , ִ ��α, Ǵ
ġ ƴմϴ.
)
ERROR: Analysis of target '//main:hello-world' failed; build aborted: Analysis failed
INFO: Elapsed time: 5.901s, Critical Path: 0.08s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
-
installed bazel via chocolatey
-
installed visual c++ redistributables via your tutorial and have restarted the PC
-
This is my env
Windows 10 Pro (Korean) version 22H2
OS Build 19045.5854 -
have clang, git, mingw, conda installed and accessable on cmd commands
-
Since I see 'conda' in error log, here's what I have on regedit (to activate conda everytime on cmd startup)
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor
set value AutoRun as following
call "C:\ProgramData\miniconda3\condabin\conda_hook.bat" && conda activate base
- Device:
Processor AMD Ryzen Threadripper 2950X 16-Core Processor 3.50 GHz
RAM 64.0GB
Dist 932 GB HDD WDC WD10EZEX-00ZF5A0, 2.73 TB HDD TOSHIBA HDWD130, 466 GB SSD Samsung SSD 970 EVO Plus 500GB
GFX NVIDIA GeForce RTX 2070 SUPER (8 GB)
- Lenguaje dominante
- Starlark
- Estrellas
- 958
- Forks
- 582
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de bazelbuild/examples
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
bazelbuild/examples#722 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
bazelbuild/examples#721 ·
-
[Bazel CI] ERROR: rules_rust_prost: implicit attribute defaults to @bazel_tools//tools/cpp:empty, fails single-file check (08-grpc-client-server)Posiblemente ocupada @deepalak56 la tomó hace 45 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 64/100
bazelbuild/examples#710 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
bazelbuild/examples#650 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
bazelbuild/examples#642 ·
Todos los issues de bazelbuild/examples
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
bazelbuild/apple_support#707 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
-
blocky: new version 0.38.0Abiertoout-of-date
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
CachyOS/CachyOS-PKGBUILDS#2232 ·
Los mantenedores suelen responder en 1 día
-
blast/large refactor risk/low spend-dem
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
chriskelly/MusicWall#87 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 77/100