-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows build issue #1007
Comments
Got it to build after doing this:
Produces a binary without |
Fixes suggested by cgbystrom: bazelbuild#1007 (comment).
I tried the symlinking trick, but still fail to build (a simple almost-empty go file with straightforward rules, cf. #1122 (comment)). My error message is:
There exists a Setting
( What might be the way to go? |
As I mentioned in #736, go itself does not work with cl.exe, only gcc, so making msvc work is not going to help you much. |
I set up a small single file Go app in Bazel and trying to make it build under Windows.
Have run into three issues with two fixed (mentioning them here for sake completeness).
First issue I was getting:
Which is a bit cryptic, but turns out it's the
env
command that is missing. Which was caused by a misconfiguredBAZEL_SH
variable. Easy fix.Second issue was same as #736 (comment) (temp directory ending up being
C:\Windows
). Solved by running msys2 shell as admin. Not ideal, but works for now.Last issue I'm stuck with is this:
Test app I used https://gist.github.com/cgbystrom/6973b478e23286604c80c506b216a9b3 with Bazel 0.7.0 on Windows 8.1
The text was updated successfully, but these errors were encountered: