rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

py_binary fails to build when cross compiling for windows using llvm-mingw

Open BoleynSu opened this issue 1 year ago • 3 comments

🐞 bug report

py_binary

Is this a regression?

Yes. 0.30.0 good 0.31.0 bad

The commit causing the issue is https://github.com/bazelbuild/rules_python/commit/5cd32ad47b0383147f84578b5c8880fc26647540

Description

py_binary fails to build when cross compiling for windows using llvm-mingw

🔬 Minimal Reproduction

Not provided

🔥 Exception or Error


external/bazel_tools/src/main/native/windows/process.cc:22:10: fatal error: 'VersionHelpers.h' file not found
   22 | #include <VersionHelpers.h>
      |          ^~~~~~~~~~~~~~~~~~
1 error generated.

🌍 Your Environment

Operating System:

  

  

Output of bazel version:

  

  

Rules_python version:

  

  

Anything else relevant?

BoleynSu avatar Feb 16 '24 18:02 BoleynSu

Please add more details to the issue as it is hard to understand what exactly is breaking. Could you add a reproducible example please?

aignas avatar Mar 13 '24 11:03 aignas

The python luncher uses files from bazel_tools which won't build on Linux using mingw.

BoleynSu avatar Mar 13 '24 11:03 BoleynSu