Replies: 2 comments
-
|
We essentially never test building on Windows and supporting it is not a priority. I warn you that while you may be able to fix this issue, it is reasonably likely that you will uncover a completely separate issue that then blocks you. To make progress I recommend building on Linux or macOS. Can you In your error message, I see this: At some point as part of the toolchain selection process, you ended up using the Windows cross toolchain. This is definitely not correct as the cross toolchains will only run on a Linux machine. I also see the path is incorrect as Windows pathnames should use backslashes and should not start with |
Beta Was this translation helpful? Give feedback.
-
|
Windows builds aren't officially supported, but the issue is clear - Bazel is trying to use the Linux cross-compilation toolchain instead of native Windows tools. The problem: This is a Linux cross-compiler path being used on Windows. Quick fixes to try:
export CC="C:/ProgramData/chocolatey/bin/gcc.exe" # Use forward slashes or escaped backslashes
Reality check: As the maintainer said, Windows builds are untested. You'll likely hit more issues. Strongly recommend using WSL2 instead: wsl --install
# Then build inside WSLThis gives you a Linux environment where builds are fully supported. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying for the past 2 days to get the project to successfully build on windows but with no success.
I always get that error even though I searched a lot and set environment path variables and all.
after running :
./dev doctorI get:
If anyone can help that would be much appreciated.
my go env output:
Beta Was this translation helpful? Give feedback.
All reactions