-
Notifications
You must be signed in to change notification settings - Fork 60
[regression] Error in get_environment_variables: Invalid toolchain configuration: Cannot find variable named 'output_execpath'. #472
Copy link
Copy link
Closed
Description
After updating from apple_support 1.23.1 to 1.24.0, my mac builds started failing with this error:
INFO: Invocation ID: b09e6c9e-39c2-496c-afe1-a090db2ee188
ERROR: /Users/dodo/Work/Microblink/core-identity/log-and-timer/LogAndTimerTest/BUILD.bazel:110:20: in _try_build rule //log-and-timer/LogAndTimerTest:AssertionMsg2__0__0:
Traceback (most recent call last):
File "/private/var/tmp/_bazel_dodo/47cdd1ff3216c2c58dd003120766f00c/external/rules_build_error+/lang/cc/build_error.bzl", line 387, column 28, in _try_build_impl
link_result = _try_link(ctx, compile_result.output)
File "/private/var/tmp/_bazel_dodo/47cdd1ff3216c2c58dd003120766f00c/external/rules_build_error+/lang/cc/build_error.bzl", line 356, column 46, in _try_link
env = cc_common.get_environment_variables(
File "/virtual_builtins_bzl/common/cc/cc_common.bzl", line 208, column 56, in _get_environment_variables
Error in get_environment_variables: Invalid toolchain configuration: Cannot find variable named 'output_execpath'.
ERROR: /Users/dodo/Work/Microblink/core-identity/log-and-timer/LogAndTimerTest/BUILD.bazel:110:20: Analysis of target '//log-and-timer/LogAndTimerTest:AssertionMsg2__0__0' (config: 60ff269) failed
ERROR: Analysis of target '//log-and-timer/LogAndTimerTest:AssertionMsg2' failed; build aborted: Analysis failed
INFO: Elapsed time: 2.989s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
ERROR: No test targets were found, yet testing was requested
Ironically, iOS builds keep working.
The mentioned test that fails is a cc_build_error_test. If I comment out all my cc_build_error_tests, the build works. Apparently, this update has broken something with this.
For example:
cc_build_error_test(
name = "AssertionMsg2",
src = "BadSource/ConstexprTests.cpp",
local_defines = [
"ASSERTION_FAILURE_MSG2",
],
compile_stderr = matcher.has_substr("error:"),
)This test expects a compile error when building the specific file to succeed. This stopped working after updating apple_support to 1.24.0.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels