Code Monkey home page Code Monkey logo

bazel-win32-toolchain's People

Contributors

excitoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bazel-win32-toolchain's Issues

no such attribute 'dynamic_runtime_libs' in 'cc_toolchain' rule

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.