Can't build latest openjdk6

Martin Buchholz martinrb at google.com
Fri Aug 14 00:00:34 UTC 2009


There seems to be what they like to call an impedance mismatch
between make and ant.

make prints

JAVAC_CMD = /usr/local/google/SLASH_JAVA/re/openjdk/6/promoted/latest/binaries/linux-amd64/bin/javac
 -J-XX:ThreadStackSize=1536 -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m
-J-XX:MaxPermSize=160m  -source 1.5 -target 5 -encoding ascii
-Xbootclasspath:/home/martinrb/ws/openjdk6/build/linux-amd64/classes

but strace tells me that ant is invoking

[pid 12600] execve("......./linux-amd64/bin/javac",
["/usr/local/google/SLASH_JAVA/re/"..., "-d",
"/home/martinrb/ws/openjdk6/build"..., "-classpath",
"/home/martinrb/ws/openjdk6/build"..., "-target", "5", "-g:none",
"-J-Xbootclasspath/p:/home/martin"..., "-Xlint", "-source", "6",
......

where you can see the mismatch between -source and -target

Could this have something to do with my ANT version, perhaps too new?

  ANT_VER = 1.7 [requires at least 1.6.3]

Martin

On Thu, Aug 13, 2009 at 16:00, Jonathan Gibbons<Jonathan.Gibbons at sun.com> wrote:
> The langtools Hudson for jdk6/jdk6/langtools is happy here, last built Aug
> 12, 9:02. a.m.
>
> -- Jon
>
> Martin Buchholz wrote:
>>
>> When I try to build latest hg openjdk6, I get:
>>
>>
>> build-classes-javac:
>>    [mkdir] Created dir:
>> /home/martinrb/ws/openjdk6/build/linux-amd64/langtools/build/gensrc
>>    [mkdir] Created dir:
>> /home/martinrb/ws/openjdk6/build/linux-amd64/langtools/build/classes
>>  [pcompile] Generating 7 resource files to
>> /home/martinrb/ws/openjdk6/build/linux-amd64/langtools/build/gensrc
>>     [copy] Copying 1 file to
>> /home/martinrb/ws/openjdk6/build/linux-amd64/langtools/build/gensrc
>>  [pcompile] Generating 1 resource files to
>> /home/martinrb/ws/openjdk6/build/linux-amd64/langtools/build/gensrc
>>    [javac] Compiling 8 source files to
>> /home/martinrb/ws/openjdk6/build/linux-amd64/langtools/build/classes
>>    [javac] javac: source release 6 requires target release 1.6
>>
>> BUILD FAILED
>> /usr/local/google/home/martin/ws/openjdk6/langtools/make/build.xml:196:
>> The following error occurred while executing this line:
>> /usr/local/google/home/martin/ws/openjdk6/langtools/make/build.xml:525:
>> Compile failed; see the compiler error output for details.
>>
>>
>> whether or not I use a vanilla jdk6 (or even jdk7) as bootstrap jdk
>>
>> Can anyone else successfully build openjdk6?
>> If so, what is the secret?
>> Did I miss something in my inbox?
>>
>> Martin
>>
>
>



More information about the build-dev mailing list