Repository navigation
bazel: Remove clang-libstdc++ toolchain and rationalize flags - #39755
Conversation
b69c7be to
c9cae74
Compare
|
/retest |
|
/retest |
1 similar comment
|
/retest |
4399313 to
4c90813
Compare
dc1723d to
54c0190
Compare
25fe4b8 to
44f79d4
Compare
5c9acaa to
8ff8926
Compare
|
cc @krinkinmu |
| build:asan --action_env=ENVOY_UBSAN_VPTR=1 | ||
| build:asan --copt=-fsanitize=vptr,function | ||
| build:asan --linkopt=-fsanitize=vptr,function | ||
| build:asan --linkopt='-L/opt/llvm/lib/clang/18/lib/x86_64-unknown-linux-gnu' |
There was a problem hiding this comment.
Why do we need this?
I might be missing something, but aren't sanitizer libraries are provided via Bazel now? And there should be no need to tell Clang where the toolchain and its libraries live.
There was a problem hiding this comment.
not for asan - not sure if we do really need it but this was how it was set before - this will obv go with hermetic toolchains
| # ASAN config with clang runtime | ||
| build:asan --config=asan-common | ||
| build:asan --linkopt --rtlib=compiler-rt | ||
| build:asan --linkopt --unwindlib=libgcc |
There was a problem hiding this comment.
I relalize it was there before, but it's a bit weird to have rtlib=compiler-rt and at the same time use libgcc as an unwinder, I think that compiler-rt is capabale of handling that job as well and we shouldn't need libgcc.
Not a blocker, but maybe worth filing a follow up bug to get rid of libgcc where compiler-rt is already available.
There was a problem hiding this comment.
yeah makes sense - i think this may also be related to my discovery that we are using gcc runtime libs by default
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>
|
/retest brew transient |
abeyad
left a comment
There was a problem hiding this comment.
LGTM, just had one question that I commented on
| # silence absl logspam. | ||
| build --copt=-DABSL_MIN_LOG_LEVEL=4 | ||
| # Global C++ standard and common warning suppressions | ||
| build --cxxopt=-std=c++20 --host_cxxopt=-std=c++20 |
There was a problem hiding this comment.
question: will this cause issues for Apple where we don't have xcode 16 yet? (because I noticed the c++20 was changed from Linux-specific to a global build flag)
There was a problem hiding this comment.
lmc - i think this bit happened when i was rationalizing flags that were setting same thing ...
There was a problem hiding this comment.
afaict no change between
and
apart from flag order
- Major .bazelrc update after envoyproxy/envoy#39755 - Not taking the upstream update `build:linux --action_env=BAZEL_LINKOPTS=-lm:-fuse-ld=gold` which breaks my local `ci/do_ci.sh build` with `clang-18: error: invalid linker name in argument '-fuse-ld=gold'` - `Http1PoolImpl` started taking an `OverloadManager` argument; created a `NullOverloadManager` in `NighthawkServerInstance` to be used for that Signed-off-by: eric846 <[email protected]>
- Major .bazelrc update after envoyproxy/envoy#39755 - Not taking the upstream update `build:linux --action_env=BAZEL_LINKOPTS=-lm:-fuse-ld=gold` which breaks my local `ci/do_ci.sh build` with `clang-18: error: invalid linker name in argument '-fuse-ld=gold'` - `Http1PoolImpl` started taking an `OverloadManager` argument; created a `NullOverloadManager` in `NighthawkServerInstance` to be used for that Signed-off-by: eric846 <[email protected]> Signed-off-by: asingh-g <[email protected]>
- Major .bazelrc update after envoyproxy/envoy#39755 - Not taking the upstream update `build:linux --action_env=BAZEL_LINKOPTS=-lm:-fuse-ld=gold` which breaks my local `ci/do_ci.sh build` with `clang-18: error: invalid linker name in argument '-fuse-ld=gold'` - `Http1PoolImpl` started taking an `OverloadManager` argument; created a `NullOverloadManager` in `NighthawkServerInstance` to be used for that Signed-off-by: eric846 <[email protected]> Signed-off-by: asingh-g <[email protected]>
- Major .bazelrc update after envoyproxy/envoy#39755 - Not taking the upstream update `build:linux --action_env=BAZEL_LINKOPTS=-lm:-fuse-ld=gold` which breaks my local `ci/do_ci.sh build` with `clang-18: error: invalid linker name in argument '-fuse-ld=gold'` - `Http1PoolImpl` started taking an `OverloadManager` argument; created a `NullOverloadManager` in `NighthawkServerInstance` to be used for that Signed-off-by: eric846 <[email protected]> Signed-off-by: asingh-g <[email protected]>
- Major .bazelrc update after envoyproxy/envoy#39755 - Not taking the upstream update `build:linux --action_env=BAZEL_LINKOPTS=-lm:-fuse-ld=gold` which breaks my local `ci/do_ci.sh build` with `clang-18: error: invalid linker name in argument '-fuse-ld=gold'` - `Http1PoolImpl` started taking an `OverloadManager` argument; created a `NullOverloadManager` in `NighthawkServerInstance` to be used for that Signed-off-by: eric846 <[email protected]> Signed-off-by: asingh-g <[email protected]>
- Major .bazelrc update after envoyproxy/envoy#39755 - Not taking the upstream update `build:linux --action_env=BAZEL_LINKOPTS=-lm:-fuse-ld=gold` which breaks my local `ci/do_ci.sh build` with `clang-18: error: invalid linker name in argument '-fuse-ld=gold'` - `Http1PoolImpl` started taking an `OverloadManager` argument; created a `NullOverloadManager` in `NighthawkServerInstance` to be used for that Signed-off-by: eric846 <[email protected]> Signed-off-by: asingh-g <[email protected]>
- Major .bazelrc update after envoyproxy/envoy#39755 - Not taking the upstream update `build:linux --action_env=BAZEL_LINKOPTS=-lm:-fuse-ld=gold` which breaks my local `ci/do_ci.sh build` with `clang-18: error: invalid linker name in argument '-fuse-ld=gold'` - `Http1PoolImpl` started taking an `OverloadManager` argument; created a `NullOverloadManager` in `NighthawkServerInstance` to be used for that Signed-off-by: eric846 <[email protected]> Signed-off-by: asingh-g <[email protected]>
- Major .bazelrc update after envoyproxy/envoy#39755 - Not taking the upstream update `build:linux --action_env=BAZEL_LINKOPTS=-lm:-fuse-ld=gold` which breaks my local `ci/do_ci.sh build` with `clang-18: error: invalid linker name in argument '-fuse-ld=gold'` - `Http1PoolImpl` started taking an `OverloadManager` argument; created a `NullOverloadManager` in `NighthawkServerInstance` to be used for that Signed-off-by: eric846 <[email protected]> Signed-off-by: asingh-g <[email protected]>
- Major .bazelrc update after envoyproxy/envoy#39755 - Not taking the upstream update `build:linux --action_env=BAZEL_LINKOPTS=-lm:-fuse-ld=gold` which breaks my local `ci/do_ci.sh build` with `clang-18: error: invalid linker name in argument '-fuse-ld=gold'` - `Http1PoolImpl` started taking an `OverloadManager` argument; created a `NullOverloadManager` in `NighthawkServerInstance` to be used for that Signed-off-by: eric846 <[email protected]> Signed-off-by: asingh-g <[email protected]>
this may be a little disruptive but it should resolve issues where libc++ and libstdc++ are getting mixed, and should hugely simplify our bazel setup moving forward
testing this uncovered various ~bugs/anomalies/conflicts - so hopefully these should be resolved