Skip to content

bazel: require setting cockroach_cross=y to opt into cross toolchains#74110

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
rickystewart:investigateracefailures
Dec 21, 2021
Merged

bazel: require setting cockroach_cross=y to opt into cross toolchains#74110
craig[bot] merged 1 commit intocockroachdb:masterfrom
rickystewart:investigateracefailures

Conversation

@rickystewart
Copy link
Copy Markdown
Collaborator

With --incompatible_enable_cc_toolchain_resolution set in #73819, now
Bazel selects the appropriate toolchain for you. Bazel was selecting the
cross_linux_toolchain when building for the host platform on Linux,
resulting in link errors when trying to compile stress under race.
We update the toolchains to instead require opting into the cross
toolchains by defining cockroach_cross=y.

Closes #73997.

Release note: None

With `--incompatible_enable_cc_toolchain_resolution` set in cockroachdb#73819, now
Bazel selects the appropriate toolchain for you. Bazel was selecting the
`cross_linux_toolchain` when building for the host platform on Linux,
resulting in link errors when trying to compile `stress` under `race`.
We update the toolchains to instead require opting into the cross
toolchains by defining `cockroach_cross=y`.

Closes cockroachdb#73997.

Release note: None
@rickystewart rickystewart requested a review from a team as a code owner December 20, 2021 23:46
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@rickystewart
Copy link
Copy Markdown
Collaborator Author

bors r=irfansharif

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 21, 2021

Build succeeded:

@craig craig bot merged commit 779f08b into cockroachdb:master Dec 21, 2021
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

Successfully merging this pull request may close these issues.

bazel,ci: link error when running tests under race

3 participants