Build failure on Mac "javac: invalid flag"

David Holmes david.holmes at oracle.com
Fri Nov 16 21:39:39 PST 2012


Are you building langtools or importing? Looks like your javac is not 
the latest.

David

On 16/11/2012 7:40 PM, Paul Sandoz wrote:
> Hi,
>
> For some reason the following change to jdk/makefiles/Setup.gmk results in a build failure:
>
> http://hg.openjdk.java.net/lambda/lambda/jdk/diff/a4c10f71e673/makefiles/Setup.gmk
>
> Generating headers for jdk base classes
> Compiling 886 files for BUILD_JOBJC_JAR
> Compiling 886 files for BUILD_JOBJC_HEADERS_JAR
> javac: invalid flag: -Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally,-auxiliaryclass
> Usage: javac<options>  <source files>
> use -help for a list of possible options
> make[2]: *** [/Users/sandoz/Projects/jdk8/lambda/build/macosx-x86_64-normal-server-release/jdk/jobjc_classes/_the.batch] Error 2
>
> Reverting the change fixed the problem for me.
>
> Paul.
>


More information about the lambda-dev mailing list