You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes when I try to run bazel build, it gives error
ERROR: /home/jaipal001/Desktop/files/c-use/J7-language/main/BUILD:1:10: Linking main/j7 failed: (Exit 1): clang failed: error executing CppLink command (from target //main:j7) /usr/lib/llvm-16/bin/clang @bazel-out/k8-fastbuild/bin/main/j7-2.params
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
ld.lld: error: unable to find library -lstdc++
Which category does this issue belong to?
C++ Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Description of the bug:
Sometimes when I try to run bazel build, it gives error
ERROR: /home/jaipal001/Desktop/files/c-use/J7-language/main/BUILD:1:10: Linking main/j7 failed: (Exit 1): clang failed: error executing CppLink command (from target //main:j7) /usr/lib/llvm-16/bin/clang @bazel-out/k8-fastbuild/bin/main/j7-2.params
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
ld.lld: error: unable to find library -lstdc++
Which category does this issue belong to?
C++ Rules
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
bazel.bazelrc:
CC=/bin/clang++-16
CXX=/bin/clang++-16
-lstdc++=/usr/lib/x86_64-linux-gnu/libstdc++.so
main/BUILD
cc_library(
name="lexer",
srcs= ["lexer.cpp"],
hdrs= ["lexer.hpp"],
visibility = ["//main:pkg"],
deps = ["//modules:mod", "//utils:utils"],
copts = [ "-I/usr/include/c++/11", "-I/usr/include/x86_64-linux-gnu/c++/11"],
includes = [ "/usr/include/c++/11", "/usr/include/x86_64-linux-gnu/c++/11"],
)
bazel build //main:j7
Which operating system are you running Bazel on?
Pop os latest 22.04 or 24.04
What is the output of
bazel info release
?release 7.3.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No,
bazel info release
release 7.3.1
by apt install bazel
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
I came yesterday and it got solved but now it is not working
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: