-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Calling Bazel 0.4.3 on Windows yields no output #2431
Comments
What immediately stands out to me is, I believe bazel still needs MSYS to be installed under |
You could just create a junction: |
Can you be a little more specific? |
Changed Environment to:
still no change in behavior. |
Exit code is |
Thanks! Are you running this from under msys shell or cmd.exe? That exit code is
(Source https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx) Hm... maybe bazel is trying to write in the default temp directory, which is [1] well, I can create a file there, but cannot access it, nor can I list the directory's contents |
No change in behavior.
Which leads me to believe that somewhere in the loading of dependencies there is some botched error handling perhaps? |
Maybe msys is not your path? |
That was indeed the problem for my bat test. Now I have the same exit code in both :) |
The 0.4.3 exe on https://github.com/bazelbuild/bazel/releases/download/0.4.3/bazel-0.4.3-windows-x86_64.exe should definitely be good. To rule out all problems (my cwd is
|
My previous comment is a reply to your IRC question:
|
Usually I open
For some reason seems like the dialog gets surpressed by mingw 😕 . |
Hmmm, can you download the distribution archive (https://github.com/bazelbuild/bazel/releases/download/0.4.3/bazel-0.4.3-dist.zip) and run |
No. |
I'm confused, so does compile.sh finish and the resulting binary is broken, or does it fail while "compiling bazel with bazel"? |
The latter. |
Can you paste the output? |
Error output of the second run: http://pastebin.com/Tu9v07N7 |
@aehlig : we're seeing errors like this in
Do you have an idea what could be going on? I remember we had a similar problem once. |
I think your PATH contains some incompatible msys-2.0.dll, like in #1919 |
You are probably right. I did clean
|
SoooOOOoooon! if only i didn't have to sheriff But really, end of February is a realistic goal. |
@dslomov I now double-checked. There is a second And according to the version info msys64 has a 2.4.1 vs 2.6.1 in git. |
Executing
in MinGW Win64 Shell gives me:
So I seriously have no idea where a potential DLL problem may come from. |
Looking at |
Looking at the msys-2.0.dll which comes with git it seems to contain all imported symbols. It does however not have a |
Yes, I have MSYS2 |
@laszlocsomor Can you open |
It says:
What is "PI"? What should I be looking for exactly? |
When you open |
PI are the Parent Imports - symbols that Bazel is expecting in this case. |
Ok, sanity check:
|
And of course
|
Just reinstalled
@laszlocsomor I imagine your installation was pacmanified? Doing
So doing So takeaway from this:
|
If I crop the starting-process' PATH to
I get
So I assume it cannot start the server anymore. |
So I built now Bazel on Windows including our patches. |
Wow, that's awesome, thank you for figuring it out and sharing your solution!
I followed the instructions on https://bazel.build/versions/master/docs/windows.html#requirements when I set up my machine. That was in September 2016, I don't think I've updated the pacman packages since then. And I suppose whenever we reimage our release machine, it has the machine state from about a year ago, give or take. So it's possible that we happen to have a particular package version configuration that is no longer possible to repro. Whatever the reason, we need to update add a package update step to the release machine reimage process and update our own machines too.
Yep, that's a pretty good observation.
So to clarify -- we need to move the pacman command from the compile requirements to the run requirements, correct?
"hint - could not install latest msys2 distribution" -- what do you mean?
I doubt it will; |
Well either that or perhaps it also might work with a later msys2 version. Like I said - the cygwin errors when executing pacman are scaring the living hell out of me ;)
I tried to use the latest msys2 from sourceforge but could not install it. Might have been an in use dll, though so perhaps just a problem for me...
That's bad. Is there an issue for this yet? |
Ouch.. noone should ever have to go through that :) OK, it'll be best if I reinstall MSYS and go through the pain myself; will update the installation guide accordingly.
Ack.
Now there is: #2447 |
OK, I did the following:
I'll come back with more updates when I have them. |
Let's continue there. (#2449) |
In this change: (1) add a sanity check to verify that GNU bintools are on the PATH (2) correct the PATH on Windows if (1) failed (3) use "<user>/My Documents/Temp" as the default temp directory instead of "%windir%/Temp", because the latter is non-writable Motivated by: #2431 #2449 -- PiperOrigin-RevId: 146006796 MOS_MIGRATED_REVID=146006796
Add a list of known issues (currently only on Windows) when trying to build from source. Also update the Windows run/compile requirements. Motivated by: bazelbuild/bazel#2431 bazelbuild/bazel#2449 -- PiperOrigin-RevId: 146091804 MOS_MIGRATED_REVID=146091804
Description of the problem / feature request / question:
On a fairly clean Windows installation I now try to get Bazel to work. When calling Bazel though, I get no output whatsoever.
If possible, provide a minimal example to reproduce the problem:
Environment is:
On the environment I execute:
Environment info
Operating System: Windows 10
Bazel version (output of
bazel info release
): 0.4.3Have you found anything relevant by searching the web? (e.g. GitHub issues, email threads in the bazel-discuss@googlegroups.com archive)
Nope
The text was updated successfully, but these errors were encountered: