Skip to content

Upgrade bazel toolchain to 3.7.1 (and upgrade bazel to 3.7.1)#25001

Closed
jtattermusch wants to merge 6 commits intogrpc:masterfrom
jtattermusch:upgrade_bazel_371_toolchain
Closed

Upgrade bazel toolchain to 3.7.1 (and upgrade bazel to 3.7.1)#25001
jtattermusch wants to merge 6 commits intogrpc:masterfrom
jtattermusch:upgrade_bazel_371_toolchain

Conversation

@jtattermusch
Copy link
Copy Markdown
Contributor

Based on #25000, but also upgrade the bazel toolchain.

{
"label:os": "ubuntu",
"label:machine_size": "large",
"LARGE_MACHINE": create_rbe_exec_properties_dict(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gnossen depending on what the bazel distribtests say, we might want to reintroduce parts of the workaround that was used previously (conditionally based on the bazel version used?).
It would be good to get some data on what bazel versions we can continue to support.

@jtattermusch
Copy link
Copy Markdown
Contributor Author

Ubsan tests seem to be failing https://source.cloud.google.com/results/invocations/598d1d3e-58be-4edb-a263-c4d01a2f6a70/log which is something that needs to be investigated.

@jtattermusch
Copy link
Copy Markdown
Contributor Author

jtattermusch commented Dec 15, 2020

Ubsan tests seem to be failing https://source.cloud.google.com/results/invocations/598d1d3e-58be-4edb-a263-c4d01a2f6a70/log which is something that needs to be investigated.

It looks like some UBSAN toolchain setup problem:

ERROR: /tmpfs/tmp/bazel/external/io_opencensus_cpp/opencensus/stats/BUILD:57:11: Couldn't build file external/io_opencensus_cpp/opencensus/stats/_objs/core/distribution.pic.o: undeclared inclusion(s) in rule '@io_opencensus_cpp//opencensus/stats:core':
this rule is missing dependency declarations for the following files included by 'io_opencensus_cpp/opencensus/stats/internal/distribution.cc':
  '/usr/local/lib/clang/11.0.0/include/stdint.h'
  '/usr/local/lib/clang/11.0.0/include/stdarg.h'
  '/usr/local/lib/clang/11.0.0/include/stddef.h'
...

@jtattermusch
Copy link
Copy Markdown
Contributor Author

Ubsan tests seem to be failing https://source.cloud.google.com/results/invocations/598d1d3e-58be-4edb-a263-c4d01a2f6a70/log which is something that needs to be investigated.

It looks like some UBSAN toolchain setup problem:

ERROR: /tmpfs/tmp/bazel/external/io_opencensus_cpp/opencensus/stats/BUILD:57:11: Couldn't build file external/io_opencensus_cpp/opencensus/stats/_objs/core/distribution.pic.o: undeclared inclusion(s) in rule '@io_opencensus_cpp//opencensus/stats:core':
this rule is missing dependency declarations for the following files included by 'io_opencensus_cpp/opencensus/stats/internal/distribution.cc':
  '/usr/local/lib/clang/11.0.0/include/stdint.h'
  '/usr/local/lib/clang/11.0.0/include/stdarg.h'
  '/usr/local/lib/clang/11.0.0/include/stddef.h'
...

Looks like this line needs to be updated, but I haven't found what to replace it with so that things work:

build:ubsan --crosstool_top=@bazel_toolchains//configs/experimental/ubuntu16_04_clang/1.3/bazel_0.29.1/ubsan:toolchain

@stale
Copy link
Copy Markdown

stale bot commented Mar 19, 2021

This issue/PR has been automatically marked as stale because it has not had any update (including commits, comments, labels, milestones, etc) for 30 days. It will be closed automatically if no further update occurs in 7 day. Thank you for your contributions!

@jtattermusch
Copy link
Copy Markdown
Contributor Author

Ubsan tests seem to be failing https://source.cloud.google.com/results/invocations/598d1d3e-58be-4edb-a263-c4d01a2f6a70/log which is something that needs to be investigated.

It looks like some UBSAN toolchain setup problem:

ERROR: /tmpfs/tmp/bazel/external/io_opencensus_cpp/opencensus/stats/BUILD:57:11: Couldn't build file external/io_opencensus_cpp/opencensus/stats/_objs/core/distribution.pic.o: undeclared inclusion(s) in rule '@io_opencensus_cpp//opencensus/stats:core':
this rule is missing dependency declarations for the following files included by 'io_opencensus_cpp/opencensus/stats/internal/distribution.cc':
  '/usr/local/lib/clang/11.0.0/include/stdint.h'
  '/usr/local/lib/clang/11.0.0/include/stdarg.h'
  '/usr/local/lib/clang/11.0.0/include/stddef.h'
...

Looks like this line needs to be updated, but I haven't found what to replace it with so that things work:

build:ubsan --crosstool_top=@bazel_toolchains//configs/experimental/ubuntu16_04_clang/1.3/bazel_0.29.1/ubsan:toolchain

It looks like simply removing the line at

build:ubsan --crosstool_top=@bazel_toolchains//configs/experimental/ubuntu16_04_clang/1.3/bazel_0.29.1/ubsan:toolchain
fixes the ubsan build.

FTR There are some new UBSAN errors with that approach, but they could be legitimate (and caused e.g. by updating to a newer version of clang 10 -> 11).
https://source.cloud.google.com/results/invocations/27ee65c9-fc80-46ec-90f1-faf169ff01ff/targets/%2F%2Ftest%2Fcore%2Fend2end:h2_tls_test@stream_compression_ping_pong_streaming@poller%3Dpoll/log

@jtattermusch
Copy link
Copy Markdown
Contributor Author

superseded by #27410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition/never stale lang/c++ release notes: yes Indicates if PR needs to be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants