My next, and last problem with building on my cygwin
Jim Holmlund
james.holmlund at oracle.com
Fri Sep 28 17:40:25 PDT 2012
The jdk CreateJars.gmk file creates a file named _the.jars.contents which contains, well you guessed
it, a list of all the contents of a jar file.
It then greps for .class files in this list. The problem is that on my machine, the lines in
_the.jars.contents end with that stupid ^M char. This prevents the greps from finding any .class
files.
I don't know the best fix for this. I made this change and now I can build thru images successfully:
> diff -r d94613ac03d8 makefiles/CreateJars.gmk
> --- a/makefiles/CreateJars.gmk Wed Sep 26 22:22:51 2012 -0700
> +++ b/makefiles/CreateJars.gmk Fri Sep 28 17:33:09 2012 -0700
> @@ -305,7 +305,7 @@
> ($(CD) $(JDK_OUTPUTDIR)/classes && \
> $(TOOL_JARREORDER) \
> -o $@.tmp $(JDK_OUTPUTDIR)/lib/classlist $(JDK_OUTPUTDIR)/lib/_the.jars.exclude . )
> - $(MV) $@.tmp $@
> + $(SED) -e 's@\
> *$$@@' $@.tmp > $@
>
> $(JDK_OUTPUTDIR)/lib/_the.rt.jar.contents: $(JDK_OUTPUTDIR)/lib/_the.jars.contents
> $(MKDIR) -p $(@D)
- jjh
More information about the build-infra-dev
mailing list