Build problems on Mac

Paul Sandoz paul.sandoz at oracle.com
Thu Dec 20 07:44:02 PST 2012


Hi,

I encounter that all the time, whereas some others do not. We have not gotten down to the reasons why, although other JDK repos do not have this fix the last time i looked so i don't really know why it is required only for the lambda JDK repo.

See below for a patch.

Paul.

diff -r 433c67388856 makefiles/Setup.gmk
--- a/makefiles/Setup.gmk       Mon Dec 10 23:19:19 2012 -0500
+++ b/makefiles/Setup.gmk       Tue Dec 11 13:57:58 2012 +0100
@@ -27,7 +27,7 @@
 JAVAH_JARS ?= "-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javah.jar" -jar $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javah.jar
 JAVADOC_JARS ?= "-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javadoc.jar" -jar $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javadoc.jar
 
-DISABLE_WARNINGS:=-Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally,-auxiliaryclass
+DISABLE_WARNINGS:=-Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally
 
 # The generate old bytecode javac setup uses the new compiler to compile for the
 # boot jdk to generate tools that need to be run with the boot jdk.

On Dec 20, 2012, at 4:33 PM, Ben Evans <benjamin.john.evans at gmail.com> wrote:

> Hi,
> 
> Current trunk is failing to build on Mac OS X 10.7
> 
> It gets a long way through the build and then fails with this:
> 
> Compiling 856 files for BUILD_JOBJC
> Compiling 856 files for BUILD_JOBJC_HEADERS
> 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/boxcat/projects/lambda/build/macosx-x86_64-normal-server-release/jdk/jobjc_classes/_the.batch]
> Error 2
> make[2]: *** Waiting for unfinished jobs....
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> make[1]: *** [classes-only] Error 2
> make: *** [jdk-only] Error 2
> ariel-2:makefiles boxcat$
> 
> I'm going to dig into it & see what I can find, but figured it was
> worth a mail here to see if anyone else has encountered this problem.
> 
> Thanks,
> 
> Ben
> 



More information about the lambda-dev mailing list