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
There should be no ramifications for remote exec users. This will only impact our internal process to produce a toolchain configs that works with RBE for Bazel 0.19.1 (but the ones for 0.19.0 work well with 0.19.1).
/cc @katre -- I think if it "only" makes it harded to produce toolchain configs for RBE, let's not have a 0.19.2 . That said, it's a regrettable omission :(
@katre unfortunately, there is not, these tests depend on downloading an installer, you can repro the error easily though, just try to run a build form an environment in which the same env variables as those set in the docker autoconfig target are set. Specifically, you should be able to repro this by simply adding the env variable:
"CC_TOOLCHAIN_NAME": "linux_gnu_x86"
and then trying to run a build of any target that requires the cc toolchain.
With 0.19.0 the build will succeed, with 0.19.1 the build will fail unless you set
"CC_TOOLCHAIN_NAME": "local" (or remove the env variable)
and I do agree with @lberki that if this only impacts our use case it does not warrant a new version being cut (but I'd be surprised no one else is using the CC_TOOLCHAIN_NAME env variable for some other reason)
It looks like cherrypicking 683c302 will fix this (but, it changes how crosstool_top is selected). @wjywbs, can you cherrypick that onto the current release-0.19.2 branch and test your case?
Activity
ittaiz commentedon Nov 12, 2018
nlopezgi commentedon Nov 12, 2018
There should be no ramifications for remote exec users. This will only impact our internal process to produce a toolchain configs that works with RBE for Bazel 0.19.1 (but the ones for 0.19.0 work well with 0.19.1).
ittaiz commentedon Nov 13, 2018
lberki commentedon Nov 13, 2018
(in the absence of @mhlopko )
lberki commentedon Nov 13, 2018
/cc @katre -- I think if it "only" makes it harded to produce toolchain configs for RBE, let's not have a 0.19.2 . That said, it's a regrettable omission :(
katre commentedon Nov 13, 2018
This may not be worth a patch, but #6662 definitely is. I am trying today to determine if they are related or not.
scentini commentedon Nov 13, 2018
They are related, the @bazel_tools//tools/cpp:default-toolchain is in error.
scentini commentedon Nov 13, 2018
@katre, do you know when users set --crosstool_top=@bazel_tools//tools/cpp:default-toolchain instead of using the ones generated by cc_configure?
katre commentedon Nov 13, 2018
@scentini I do not know that. Ask the user who reported #6662.
katre commentedon Nov 13, 2018
@nlopezgi Is there a way to run the //tests/config:debian-jessie-custom-bazel-rc-version-autoconfig with a custom local version of Bazel?
nlopezgi commentedon Nov 13, 2018
@katre unfortunately, there is not, these tests depend on downloading an installer, you can repro the error easily though, just try to run a build form an environment in which the same env variables as those set in the docker autoconfig target are set. Specifically, you should be able to repro this by simply adding the env variable:
"CC_TOOLCHAIN_NAME": "linux_gnu_x86"
and then trying to run a build of any target that requires the cc toolchain.
With 0.19.0 the build will succeed, with 0.19.1 the build will fail unless you set
"CC_TOOLCHAIN_NAME": "local" (or remove the env variable)
nlopezgi commentedon Nov 13, 2018
and I do agree with @lberki that if this only impacts our use case it does not warrant a new version being cut (but I'd be surprised no one else is using the CC_TOOLCHAIN_NAME env variable for some other reason)
katre commentedon Nov 13, 2018
Okay, results of testing that (using the cpp-tutorial):
With Bazel 0.19.1:
With Bazel 0.19.2rc1:
So I will continue with sending out 0.19.2.rc1.
wjywbs commentedon Nov 14, 2018
I'm also encountering an issue similar to this, and related to #6662 as well. I took some time to make a minimal repro in https://github.com/wjywbs/bazel-cc-toolchain-bug.
katre commentedon Nov 14, 2018
It looks like cherrypicking 683c302 will fix this (but, it changes how crosstool_top is selected). @wjywbs, can you cherrypick that onto the current release-0.19.2 branch and test your case?
katre commentedon Nov 14, 2018
I've pushed the cherrypick into the RC, please let me know if there are still issues.
gunan commentedon Nov 14, 2018
This is also affecting TF
wjywbs commentedon Nov 15, 2018
@katre The release-0.19.2 branch works in both of my use cases. Thanks for the fix.
katre commentedon Nov 19, 2018
Closing since 0.19.2 will release today.
Release 0.19.2 (2018-11-19)