JarReorder and ensuing grep failing on Windows
erik.joelsson at oracle.com
Wed Mar 8 08:14:17 UTC 2017
First of all, just so to be sure, which source did you clone? From your
description it sounds like it's JDK 8. If so you should be cloning
either http://hg.openjdk.java.net/jdk8u/jdk8u/ or
I do not recognize your problem, but I have also never tried to build 8u
on Windows 10. Unfortunately I don't have access to a (working) Windows
10 machine so can't try it myself. On the machines we build 8u on
(Windows 2008R2, which is the server version of Windows 7) we have never
seen this problem. We also have a pretty old version of Cygwin at this
On 2017-03-07 20:47, Jeff Berkowitz wrote:
> Hi, I'm attempting to build OpenJDK on Windows 10 using VS 2010 Developer
> Edition. I'm working in cygwin and have reviewed the docs and various blog
> posts in an effort to "follow the rules".
> My difficulty: around line 268 of CreateJars.gmk, the makefile runs a "grep
> -e \.class ..." command intended to select lines from a list of jar file
> names contained in a file. The build fails because this grep exits code 1
> indicating that it matched no lines.
> Further investigation shows the file contains lines like this:
> With no ".class" extension on the file names.
> We tried clearing the global Windows property "Hide files with known
> extensions" but no help. I put quick hack in the file to stick ".class" on
> the end of every line. The grep then matched some lines and exited code 0,
> but other errors ensued. I could explore these, but understanding why none
> of the filenames in the file were not matched (i.e. not in the expected
> format) in the first place seems like a better approach.
> I'm continuing to work on this but any help would be appreciated. Thanks so
> much in advance.
> Jeff Berkowitz
> New Relic.
More information about the build-dev