Skip to content
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 binary of the compiler does not contain the fix for long paths (v3.4.0) #3856

Closed
tri-bao opened this issue Nov 9, 2017 · 7 comments

Comments

@tri-bao
Copy link

tri-bao commented Nov 9, 2017

As per ticket #2891 the issue was fixed, the patch was merged to master. I can see it in source code of version 3.4.0 However, when I tried the precompiled binary downloaded from the release page (or downloaded from maven central repository https://repo1.maven.org/maven2/com/google/protobuf/protoc/3.4.0/), the problem still occurs.

Then I tried to build it by myself using Visual Studio (2017) as advised by the patch contributor @laszlocsomor (#2969), it works! So apparently, the precompiled binary was not built with Visual Studio. Is it a mistake or there are caveats with Visual Studio that prevent the GA release from being built with Visual Studio? (but we need long path in Windows)

By the way, the Windows binary build is missing in release 3.4.1

@liujisi
Copy link
Contributor

liujisi commented Nov 10, 2017

Could you please check if this cross compiled binary supports long path?
protoc.zip

@tri-bao
Copy link
Author

tri-bao commented Nov 13, 2017

thanks @pherl when I ran that exe, I received errors like following (no error if I ran with the binary that I compiled from source 3.4.0)

google/protobuf/wrappers.proto: File not found.
xyz.proto: Import "google/protobuf/wrappers.proto" was not found or had errors.
xyz.proto:46:5: "google.protobuf.StringValue" is not defined.
xyz.proto: Import "google/protobuf/wrappers.proto" was not found or had errors.
xyz.proto:21:5: "google.protobuf.StringValue" is not defined.

@liujisi
Copy link
Contributor

liujisi commented Nov 13, 2017

The zip I packaged didn't contain the well known type protos. Would it work if you copy the rest google/protobuf/*.proto from the 3.4.0 package?

@tri-bao
Copy link
Author

tri-bao commented Nov 14, 2017

thanks for the hint. Now, that binary works with long path. Would you release that binary soon?

@liujisi
Copy link
Contributor

liujisi commented Nov 14, 2017

I uploaded them in the 3.5.0 release.

@liujisi liujisi closed this as completed Nov 14, 2017
@liujisi
Copy link
Contributor

liujisi commented Nov 27, 2017

@laszlocsomor

There are couple of issues (#3957, #3951) reported regarding windows protoc paths.

I guess we will have to rollback the long path support change in 3.5.1 patch.

@laszlocsomor
Copy link
Contributor

Update: a PR is out for #3951.
I'm about to look at #3957.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants