build failure
Jonathan Lu
luchsh at linux.vnet.ibm.com
Tue Feb 26 06:32:21 PST 2013
Hello Richard,
I've got similar problems, to be more specific, I was playing with the code from
http://hg.openjdk.java.net/nashorn/jdk8/nashorn on a Windows 7, 32bit box and following the instructions from the README file.
OpenJDK 1.8.0-b77 downloaded from official snapshot website was used as bootstrap JDK, the build process will stop on the "javadoc" target of nashorn/make/build.xml with a lot of errors, most of which are about parsing javadocs (of course).
like
[javadoc] D:\nashorn8\nashorn\src\jdk\nashorn\internal\codegen\ClassEmitter.java:80: error: tag not allowed here: <p>
[javadoc] * <p>
[javadoc] ^
[javadoc] D:\nashorn8\nashorn\src\jdk\nashorn\internal\codegen\ClassEmitter.java:84: error: tag not allowed here: <p>
[javadoc] * <p>
[javadoc] ^
[javadoc] D:\nashorn8\nashorn\src\jdk\nashorn\internal\codegen\ClassEmitter.java:91: error: tag not allowed here: <p>
[javadoc] * <p>
[javadoc] ^
[javadoc] D:\nashorn8\nashorn\src\jdk\nashorn\internal\codegen\ClassEmitter.java:95: error: tag not allowed here: <p>
[javadoc] * <p>
[javadoc] ^
One simple workaround I have to use is to set useexternalfile="yes" for javadoc ANT task, otherwise there'll be a error reporting too long filename, see the diff below:
diff -r 1654918e0612 make/build.xml
--- a/make/build.xml Mon Feb 25 16:51:04 2013 +0100
+++ b/make/build.xml Tue Feb 26 22:24:01 2013 +0800
@@ -141,7 +141,7 @@
</target>
<target name="javadoc" depends="prepare">
- <javadoc destdir="${dist.javadoc.dir}" use="yes" overview="src/overview.html" windowtitle="${nashorn.product.name}
${nashorn.version}" additionalparam="-quiet" failonerror="true">
+ <javadoc destdir="${dist.javadoc.dir}" use="yes" overview="src/overview.html" windowtitle="${nashorn.product.name}
${nashorn.version}" additionalparam="-quiet" failonerror="true" useexternalfile="yes">
<classpath>
<pathelement location="${build.classes.dir}"/>
</classpath>
The actual problem is that OpenJDK8-b73 would make the build pass, but OpenJDK8-b77 failed.
So I was guessing some recent introduced changes lead to this problem. Will continue to look into it and update this thread once got any progress, if anybody has got a clue about the recommended bootstrap JDK or experiences of building on Windows platform, it would be very helpful and welcome.
Thanks a lot and best regards
- Jonathan
> While I build Nashorn, the failure happened. Does anyone know the
> reason? Thanks.
>
> shelldoc:
>
> BUILD FAILED
> C:\repos\nashorn\make\build.xml:160: Java returned: 1
>
More information about the nashorn-dev
mailing list