Skip to content

Instantly share code, notes, and snippets.

@adam-singer
Last active January 10, 2024 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam-singer/b14a62c2bb01c9cfe69e436bae3c8369 to your computer and use it in GitHub Desktop.
Save adam-singer/b14a62c2bb01c9cfe69e436bae3c8369 to your computer and use it in GitHub Desktop.
05:23:49 adam@adam-dev-workstation-001 native-link-2 ±|adams/evicting-map-time-bug|→ bazel test //... --verbose_failures
INFO: Repository local_config_cc instantiated at:
/DEFAULT.WORKSPACE.SUFFIX:520:13: in <toplevel>
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/cc_configure.bzl:184:16: in cc_configure
Repository rule cc_autoconf defined at:
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/cc_configure.bzl:143:30: in <toplevel>
ERROR: An error occurred during the fetch of repository 'local_config_cc':
Traceback (most recent call last):
File "/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/cc_configure.bzl", line 125, column 33, in cc_autoconf_impl
configure_unix_toolchain(repository_ctx, cpu_value, overriden_tools)
File "/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 349, column 17, in configure_unix_toolchain
cc = find_cc(repository_ctx, overriden_tools)
File "/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 314, column 23, in find_cc
cc = _find_generic(repository_ctx, "gcc", "CC", overriden_tools)
File "/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 310, column 32, in _find_generic
auto_configure_fail(msg)
File "/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/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: Cannot find gcc or CC (clang); either correct your path or set the CC environment variable
ERROR: /DEFAULT.WORKSPACE.SUFFIX:520:13: fetching cc_autoconf rule //external:local_config_cc: Traceback (most recent call last):
File "/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/cc_configure.bzl", line 125, column 33, in cc_autoconf_impl
configure_unix_toolchain(repository_ctx, cpu_value, overriden_tools)
File "/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 349, column 17, in configure_unix_toolchain
cc = find_cc(repository_ctx, overriden_tools)
File "/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 314, column 23, in find_cc
cc = _find_generic(repository_ctx, "gcc", "CC", overriden_tools)
File "/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 310, column 32, in _find_generic
auto_configure_fail(msg)
File "/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/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: Cannot find gcc or CC (clang); either correct your path or set the CC environment variable
INFO: Repository crate_index__prost-types-0.12.3 instantiated at:
/home/adam/native-link-2/WORKSPACE.bazel:78:19: in <toplevel>
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/crate_index/defs.bzl:2766:10: in crate_repositories
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule http_archive defined at:
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
INFO: Repository crate_index__async-trait-0.1.77 instantiated at:
/home/adam/native-link-2/WORKSPACE.bazel:78:19: in <toplevel>
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/crate_index/defs.bzl:1006:10: in crate_repositories
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule http_archive defined at:
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
INFO: Repository crate_index__lz4_flex-0.11.1 instantiated at:
/home/adam/native-link-2/WORKSPACE.bazel:78:19: in <toplevel>
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/crate_index/defs.bzl:2246:10: in crate_repositories
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule http_archive defined at:
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
INFO: Repository crate_index__prometheus-client-0.21.2 instantiated at:
/home/adam/native-link-2/WORKSPACE.bazel:78:19: in <toplevel>
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/crate_index/defs.bzl:2716:10: in crate_repositories
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule http_archive defined at:
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
INFO: Repository crate_index__serde-1.0.194 instantiated at:
/home/adam/native-link-2/WORKSPACE.bazel:78:19: in <toplevel>
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/crate_index/defs.bzl:3126:10: in crate_repositories
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule http_archive defined at:
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
INFO: Repository crate_index__pin-project-lite-0.2.13 instantiated at:
/home/adam/native-link-2/WORKSPACE.bazel:78:19: in <toplevel>
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/crate_index/defs.bzl:2616:10: in crate_repositories
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule http_archive defined at:
/home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
ERROR: /home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/bazel_tools/tools/cpp/BUILD:101:6: @bazel_tools//tools/cpp:toolchain depends on @local_config_cc//:toolchain in repository @local_config_cc which failed to fetch. no such package '@local_config_cc//':
Auto-Configuration Error: Cannot find gcc or CC (clang); either correct your path or set the CC environment variable
ERROR: Analysis of target '//nativelink-config:nativelink-config' failed; build aborted:
INFO: Elapsed time: 0.291s
INFO: 0 processes.
ERROR: Couldn't start the build. Unable to run tests
FAILED: Build did NOT complete successfully (9 packages loaded, 99 targets configured)
currently loading: @bazel_tools//src/conditions ... (8 packages)
Fetching repository @crate_index__shellexpand-3.1.0; starting
Fetching /home/adam/.cache/bazel/_bazel_adam/dec0d2c0551dbdfc928a90782c7f9a5e/external/crate_index__shellexpand-3.1.0; Extracting download.tar.gz
05:24:34 adam@adam-dev-workstation-001 native-link-2 ±|adams/evicting-map-time-bug|→ which gcc
/nix/store/sfgnb6rr428bssyrs54d6d0vv2avi95c-gcc-wrapper-12.3.0/bin/gcc
05:24:51 adam@adam-dev-workstation-001 native-link-2 ±|adams/evicting-map-time-bug|→ echo $CC
clang
05:28:56 adam@adam-dev-workstation-001 native-link-2 ±|adams/evicting-map-time-bug|→ clang
bash: clang: command not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment