Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no such attribute 'dynamic_runtime_libs' in 'cc_toolchain' rule #2

Open
ztl8702 opened this issue Apr 27, 2019 · 0 comments
Open

no such attribute 'dynamic_runtime_libs' in 'cc_toolchain' rule #2

ztl8702 opened this issue Apr 27, 2019 · 0 comments

Comments

@ztl8702
Copy link

ztl8702 commented Apr 27, 2019

When building bazel-win32-toolchain-test, I encounter the following error:

bazel build --cpu x86_32_windows --crosstool_top @windows_cc_config//:toolchain //:hello

gives:

DEBUG: Rule 'windows_cc_config_init' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1545208547 +0300"
ERROR: C:/dev/bazel-win32-toolchain-test/BUILD:3:1: every rule of type cc_binary implicitly depends upon the target '@windows_cc_config//:toolchain', but this target could not be found because of: no such package '@windows_cc_config//': The `+` operator for dicts is deprecated and no longer supported. Please use the `update` method instead. You can temporarily enable the `+` operator by passing the flag --incompatible_disallow_dict_plus=false
ERROR: Analysis of target '//:hello' failed; build aborted: no such package '@windows_cc_config//': The `+` operator for dicts is deprecated and no longer supported. Please use the `update` method instead. You can temporarily enable the `+` operator by passing the flag --incompatible_disallow_dict_plus=false
INFO: Elapsed time: 55.867s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (9 packages loaded, 31 targets configured)

With --incompatible_disallow_dict_plus=false:

bazel build --cpu x86_32_windows --crosstool_top @windows_cc_config//:toolchain --incompatible_disallow_dict_plus=false //:hello

gives:

ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:46:1: @windows_cc_config//:cc-compiler-x64_windows_msys: no such attribute 'dynamic_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:46:1: @windows_cc_config//:cc-compiler-x64_windows_msys: no such attribute 'static_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:76:1: @windows_cc_config//:cc-compiler-x64_windows_mingw: no such attribute 'dynamic_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:76:1: @windows_cc_config//:cc-compiler-x64_windows_mingw: no such attribute 'static_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:105:1: @windows_cc_config//:cc-compiler-x64_windows: no such attribute 'dynamic_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:105:1: @windows_cc_config//:cc-compiler-x64_windows: no such attribute 'static_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:134:1: @windows_cc_config//:cc-compiler-armeabi-v7a: no such attribute 'dynamic_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:134:1: @windows_cc_config//:cc-compiler-armeabi-v7a: no such attribute 'static_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:161:1: @windows_cc_config//:cc-compiler-x86_32_windows: no such attribute 'dynamic_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:161:1: @windows_cc_config//:cc-compiler-x86_32_windows: no such attribute 'static_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:189:1: @windows_cc_config//:cc-compiler-ios_x86_64: no such attribute 'dynamic_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:189:1: @windows_cc_config//:cc-compiler-ios_x86_64: no such attribute 'static_runtime_libs' in 'cc_toolchain' rule
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:189:1: Target '@windows_cc_config//:empty' contains an error and its package is in error and referenced by '@windows_cc_config//:cc-compiler-ios_x86_64'
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:31:1: Target '@windows_cc_config//:cc-compiler-armeabi-v7a' contains an error and its package is in error and referenced by '@windows_cc_config//:toolchain'
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:31:1: Target '@windows_cc_config//:cc-compiler-x86_32_windows' contains an error and its package is in error and referenced by '@windows_cc_config//:toolchain'
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:31:1: Target '@windows_cc_config//:cc-compiler-x64_windows' contains an error and its package is in error and referenced by '@windows_cc_config//:toolchain'
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:31:1: Target '@windows_cc_config//:cc-compiler-x64_windows_msys' contains an error and its package is in error and referenced by '@windows_cc_config//:toolchain'
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:31:1: Target '@windows_cc_config//:cc-compiler-x64_windows_mingw' contains an error and its package is in error and referenced by '@windows_cc_config//:toolchain'
ERROR: C:/users/radium/_bazel_radium/jthydnwp/external/windows_cc_config/BUILD:31:1: Target '@windows_cc_config//:cc-compiler-ios_x86_64' contains an error and its package is in error and referenced by '@windows_cc_config//:toolchain'
ERROR: C:/dev/bazel-win32-toolchain-test/BUILD:3:1: every rule of type cc_binary implicitly depends upon the target '@windows_cc_config//:toolchain', but this target could not be found because of: Target '@windows_cc_config//:toolchain' contains an error and its package is in error
ERROR: Analysis of target '//:hello' failed; build aborted: Analysis failed
INFO: Elapsed time: 37.752s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (10 packages loaded, 50 targets configured)

Running:

bazel build  //:hello

works fine though.


Versions:

Bazel 0.24.1
Windows 10 Version 1803
Visual Studio Community 2019 (I symlinked VS2017 folder to VS2019)

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

No branches or pull requests

1 participant