excitoon / bazel-win32-toolchain Goto Github PK
View Code? Open in Web Editor NEWEnables possibility to build Win32-targeted applications with Bazel (`x86_32_windows` cpu)
Enables possibility to build Win32-targeted applications with Bazel (`x86_32_windows` cpu)
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.