Open Josar opened 2 years ago
I have had this problem on windows. I experienced the crash too. it seems that bazel interprets the backslashes as escape characters. by converting them to normal slashes (as in the unix/linux platform) it works... and it give to me other errors (but at least that problem is passed). Maybe the bazel developers will fix this sooner or later...
missing input file '//toolchain:empty'
This seems to be a default value added to something after the tutorial was written.
I created a bank file "toolchain/empty" and it seems to satisfy.
BUILD
filegroup(name = "empty")
This seems to expect a file named empty. So adding a blank file to the folder of the BUILD file solves that. Thanks @chickenandpork.
Or declaring the srcs with an empty array also solves this.
filegroup(
name = "empty",
srcs = [],
)
missing input file '//toolchain:empty'
This seems to be a default value added to something after the tutorial was written.
I created a bank file "toolchain/empty" and it seems to satisfy.
In this case this ticket is a similar topic to the https://github.com/bazelbuild/bazel/issues/12856
Description of the bug:
I try to get MinGw to work on Windows. I try to use the local installed MinGw and configure it as toolchain. This is only the first step to understand how an embedded toolchain could be set up. But i fail when triyng to follow this tutorial and try to adapt it.
Trying to change the path to #Error 2
when i try to provide the path to the tool_path.path i get # error 1.
When i try to provide it by the actions i get this.
What went wrong? If you could point my to the right direction it would be great.
A second questions would be, is there any tutorial thats shows how to use local installed tools/exe, without wrapping it in a script?
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
Windows 11
What is the output of
bazel info release
?release 5.3.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
My own question. https://stackoverflow.com/questions/73614004/use-local-mingw-as-toolchain-on-windows
Any other information, logs, or outputs that you want to share?
No response