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

cant launch #37

Open
lvindotexe opened this issue Aug 17, 2023 · 4 comments
Open

cant launch #37

lvindotexe opened this issue Aug 17, 2023 · 4 comments

Comments

@lvindotexe
Copy link

cant run
./b data-snapshot run

this is the error message i get

bazel run --config=release --show_result=0 --ui_event_filters=-INFO --color=yes --curses=yes //src:deploy_all_ts_deps -- /home/alvin/biomes-game/src/gen
Generating TypeScript dependencies (release)...
ERROR: An error occurred during the fetch of repository 'local_config_cc':
   Traceback (most recent call last):
        File "/home/alvin/.cache/bazel/_bazel_alvin/13276cfdaba77870b8cc7877d22bb8ca/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/alvin/.cache/bazel/_bazel_alvin/13276cfdaba77870b8cc7877d22bb8ca/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/alvin/.cache/bazel/_bazel_alvin/13276cfdaba77870b8cc7877d22bb8ca/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/alvin/.cache/bazel/_bazel_alvin/13276cfdaba77870b8cc7877d22bb8ca/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 310, column 32, in _find_generic
                auto_configure_fail(msg)
        File "/home/alvin/.cache/bazel/_bazel_alvin/13276cfdaba77870b8cc7877d22bb8ca/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/alvin/.cache/bazel/_bazel_alvin/13276cfdaba77870b8cc7877d22bb8ca/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/alvin/.cache/bazel/_bazel_alvin/13276cfdaba77870b8cc7877d22bb8ca/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/alvin/.cache/bazel/_bazel_alvin/13276cfdaba77870b8cc7877d22bb8ca/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/alvin/.cache/bazel/_bazel_alvin/13276cfdaba77870b8cc7877d22bb8ca/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 310, column 32, in _find_generic
                auto_configure_fail(msg)
        File "/home/alvin/.cache/bazel/_bazel_alvin/13276cfdaba77870b8cc7877d22bb8ca/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: /home/alvin/.cache/bazel/_bazel_alvin/13276cfdaba77870b8cc7877d22bb8ca/external/bazel_tools/src/tools/launcher/BUILD:9:14: @bazel_tools//src/tools/launcher:launcher depends on @local_config_cc//:cc-compiler-k8 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 '//src:deploy_all_ts_deps' failed; build aborted:
ERROR: Build failed. Not running target
FAILED: Build did NOT complete successfully (3 packages loaded, 6 targets conf\
igured)
    currently loading: @crate_index// ... (2 packages)
    Fetching repository @pip_deps_docopt; Restarting. 4s
    Fetching https://files.pythonhosted.org/...uild-0.9.0-py3-none-any.whl; 4s
    Fetching https://crates.io/api/v1/crates/wasm-bindgen-cli/0.2.84/download
    Fetching https://github.com/.../cereal/archive/refs/tags/v1.3.2.tar.gz
    Fetching https://nodejs.org/dist/v18.12.0/node-v18.12.0-linux-x64.tar.xz
Error: There was an error while generating the TypeScript dependencies.

running on
windows/wsl2 ubuntu

@jeasinema
Copy link

Ran into this and got it solved by installing clang. Hope it works for you too!

@Ghewww
Copy link

Ghewww commented Aug 17, 2023

I've also encountered the same issue, but it happened when running on a macOS system

@Ghewww
Copy link

Ghewww commented Aug 17, 2023

Ran into this and got it solved by installing clang. Hope it works for you too!
I tried this approach, but it still doesn't work. The complete error message is
`[599 / 1,207] 164 actions, 2 running
Compiling voxeloo/js_ext/tensors.cpp; 12s processwrapper-sandbox
Compiling voxeloo/js_ext/ext.cpp; 12s processwrapper-sandbox
[Sched] Compiling voxeloo/js_ext/buffers.cpp; 23s
[Sched] Linking external/zstd/libentropy.a; 23s
[Sched] Compiling voxeloo/js_ext/voxels.cpp; 23s
[Sched] Linking external/zstd/libdecompress.a; 23s
[Sched] Linking external/zstd/libdeprecated.a; 23s
[Sched] Linking voxeloo/biomes/libshards.a; 23s ...

Server terminated abruptly (error code: 14, error message: 'Socket closed', log file: '/home/docker-user/.cache/bazel/_bazel_docker-user/fd6b81d4fa577a28062c9876c1190c3b/server/jvm.out')

Error: There was an error while generating the TypeScript dependencies.`

Does this mean there's an issue with my network?

@DevinLeamy
Copy link
Contributor

Hi @Ghewww. Did installing clang solve your issue?

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

4 participants