build failure in nashorn with sjavac enabled

Fredrik Öhrström oehrstroem at gmail.com
Mon Mar 4 06:06:06 UTC 2013


Minor glitch in sjavac, it only understands -classpath not -cp.
(To be fixed soon.)

Temporary fix in nashorn/makefiles/BuildNashorn.gmk
change -cp to -classpath in the BUILD_NASGEN setup macro call.

//Fredrik

2013/3/1 Maurizio Cimadamore <maurizio.cimadamore at oracle.com>:
> Hi,
> I was doing experiments with the recently added sjavac flag to enable smart
> recompilation of JDK classes. I got a failure in Nashorn (I'm building on
> linux x64, Ubuntu 11.10):
>
> ## Starting nashorn
> Compiling BUILD_NASHORN
> Compiling 106 files in 7 packages (jdk.internal.dynalink to
> jdk.nashorn.internal.codegen.types)
> Compiling 117 files in 7 packages (jdk.nashorn.internal.ir to
> jdk.nashorn.internal.parser)
> Compiling 192 files in 14 packages (jdk.nashorn.internal.runtime to
> netscape.javascript)
> Compiling BUILD_NASGEN
> Compiling 19 files in 1 packages
> Compiling 33 files in 3 packages (commons to signature)
> Compiling 53 files in 3 packages (tree to util)
> invalid flag:
> /home/maurizio/Documents/ws/jdk8/tl/build/linux-x86_64-normal-server-release/nashorn/nasgen_classes
> invalid flag:
> /home/maurizio/Documents/ws/jdk8/tl/build/linux-x86_64-normal-server-release/nashorn/nasgen_classes
> invalid flag:
> /home/maurizio/Documents/ws/jdk8/tl/build/linux-x86_64-normal-server-release/nashorn/nasgen_classes
> make[1]: ***
> [/home/maurizio/Documents/ws/jdk8/tl/build/linux-x86_64-normal-server-release/nashorn/nasgen_classes/javac_state]
> Error 255
> make: *** [nashorn-only] Error 2
>
> Probably just matter of converting the Nashorn build files to be sjavac
> aware...
>
> Maurizio
>



More information about the build-dev mailing list