OpenJDK 8 build fails on Ubuntu 12.04.5 LTS

Magnus Ihse Bursie magnus.ihse.bursie at
Fri Jan 30 15:04:34 UTC 2015

> 30 jan 2015 kl. 13:47 skrev matchew <mkorszun at>:
> Do I need to set JAVA and JAVAC explicitly? What should be the values here?

No, on the contrary, the failure could perhaps be caused by having them defined. 

> 2015-01-30 11:41 GMT+01:00 Magnus Ihse Bursie <magnus.ihse.bursie at>:
>>> On 2015-01-30 10:40, matchew wrote:
>>> $ grep JAVA /opt/openjdk/8/build/linux-x86_64-normal-server-release/spec.gmk
>>> JAVA_FLAGS:= -Xms64M -Xmx1100M -XX:PermSize=32m -XX:MaxPermSize=160m -XX:ThreadStackSize=1536
>>> JAVA= $(BOOT_JDK)/bin/java $(JAVA_FLAGS)
>>> JAVAC= $(BOOT_JDK)/bin/javac
>>> JAVAH= $(BOOT_JDK)/bin/javah
>>> # You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
>>> BOOTSTRAP_JAVAC_JAR:=$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar
>>> SJAVAC_SERVER_JAVA:= /usr/lib/jvm/java-7-openjdk-amd64/bin/java  -verbosegc -d64 -Xms1000M -Xmx1500M
>>> Yes, I did fresh clone from but I am using the same build script/procedure I was using before and it was totally fine with last tag from
>> That is *really* weird. I'm sorry I can't provide much more assistance at this point. Some suggestions:
>> * Try removing the ALT_ variables as the warnings suggests. I don't believe they should interfere but the problem lies with the boot jdk so the ALT_BOOTDIR is a suspect.
>> * Check your environment. Do you have JAVA or JAVAC set there?
>> * Try running with LOG=debug and see if you can figure out what command line is being run and why.
>> * If that does not help, running with LOG=trace produces even more logging on how make builds the command lines.
>> * Both of the logging suggestions above is easier to handle if you first figure out a minimal target that reproduces the problem. Perhaps "langtools-only"?
>> /Magnus

More information about the build-dev mailing list