2009/8/14 Martin Buchholz <[email protected]>: > The version of java using ant being significant > means there are 3 different java versions being juggled during > a single build - it's easy for us all to get very confused. >
This is the main problem with switching to Ant for parts of the build. I remember I managed to end up using Kaffe (for Ant), CACAO (as bootstrap) and OpenJDK when I first tried building Zero on PPC. > I'm going to try to stay in bug-reporting mode, not bug-fixing mode, > with this problem unless Jonathan/Kelly/Joe can't reproduce the failure. > FWIW, I get the same failure here with Ant 1.7.1 and IcedTea6 as both the boot JDK and Ant's JDK. Note that the build logs diagnostics about ant to langtools/build/ant-diagnostics.log. I'll try your fix. > Martin > > On Thu, Aug 13, 2009 at 17:00, Mark Wielaard<[email protected]> wrote: >> Hi Martin, >> >> On Thu, 2009-08-13 at 15:25 -0700, Martin Buchholz wrote: >>> /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? >> >> I haven't tried upgrading oj6 yet. And one of the reasons for not >> upgrading icedtea6 atm is to make sure the recent changes (which as far >> as I could tell were not discussed on the list) to the source and target >> defaults don't break the bootstrap. The commit you probably want to >> inspect is: >> >> changeset: 49:608910eef036 >> user: jjg >> date: Tue Aug 11 16:40:03 2009 -0700 >> files: make/Makefile make/build.properties make/build.xml >> description: >> 6870641: [langtools] update make/build.* for jdk6 >> Reviewed-by: darcy >> >> Unfortunately the bug associated with that commit is also not public. >> >> The idea behind the commit seems to be to make the -source and -target >> explicit in more places (which is a good thing). There is now also an >> override mechanism, that I admit to not fully understand because it >> seems to be never used, through setting SOURCE_LANGUAGE_VERSION and/or >> JAVAC_SOURCE_ARG. >> >> Also note that with ant the default source and target depends on the VM >> that runs the ant process (which might be different from the bootstrap >> VM you are using, it probably depends on your ant installation). >> >> Cheers, >> >> Mark >> >> > Thanks, -- Andrew :-) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
