-
Notifications
You must be signed in to change notification settings - Fork 56
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
failed to compile in linux environment #133
Comments
I can't reproduce this, could you provide a bit more on which command you were running?
both succeeds for me. I also have bazel version 5.3.2. Could you try to update your bazel and see if that works? |
I also get compile errors, FWIW:
This is with EDIT: Nevermind, I think this is something broken with
[user@MSI perf_data_converter]$ bazelisk --version
bazel 6.0.0 [user@MSI perf_data_converter]$ bazelisk build src:perf_to_profile
INFO: Analyzed target //src:perf_to_profile (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/user/.cache/bazel/_bazel_user/ca4327f72acbaba3e49bb9ab64aaca71/external/com_google_protobuf/BUILD:155:11: Compiling src/google/protobuf/generated_message_tctable_lite.cc [for tool] failed: (Exit 1): ccache failed: error executing command (from target @com_google_protobuf//:protobuf_lite) /usr/bin/ccache -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 ... (remaining 33 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
/usr/bin/ccache: invalid option -- 'U'
ERROR: /home/user/.cache/bazel/_bazel_user/ca4327f72acbaba3e49bb9ab64aaca71/external/com_google_protobuf/BUILD:155:11: Compiling src/google/protobuf/stubs/bytestream.cc [for tool] failed: (Exit 1): ccache failed: error executing command (from target @com_google_protobuf//:protobuf_lite) /usr/bin/ccache -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 ... (remaining 33 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
/usr/bin/ccache: invalid option -- 'U'
Target //src:perf_to_profile failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.148s, Critical Path: 0.06s
INFO: 20 processes: 20 internal.
FAILED: Build did NOT complete successfully |
I have the same problem on popOS but with windows in the error:
Easily reproducible by running a docker container UPDATE: installing latest bazel via bazelisk fixed it |
On a x86_64 Ubuntu 22.04.3 LTS (x86_64) bazel build src:perf_to_profile |
Does updating Bazel work for you? |
bazel version: 3.5.0
/root/.cache/bazel/_bazel_root/a08c2e4811c846650b733c6fc815a920/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
ERROR: /root/.cache/bazel/_bazel_root/a08c2e4811c846650b733c6fc815a920/external/boringssl/BUILD:203:11: @platforms//os:linux is not a valid configuration key for @boringssl//:crypto
cc_library(
name = "crypto",
srcs = crypto_sources + crypto_internal_headers + crypto_sources_asm,
hdrs = crypto_headers + fips_fragments,
copts = boringssl_copts_c11,
includes = ["src/include"],
linkopts = select({
# Android supports pthreads, but does not provide a libpthread
# to link against.
"@platforms//os:android": [],
"@platforms//os:macos": [],
"@platforms//os:ios": [],
"@platforms//os:tvos": [],
"@platforms//os:watchos": [],
"@platforms//os:windows": ["-defaultlib:advapi32.lib"],
"//conditions:default": ["-lpthread"],
}),
visibility = ["//visibility:public"],
)
The text was updated successfully, but these errors were encountered: