Build fails because ant compiles without -1.5

Lillian Angel langel at redhat.com
Sun Sep 30 09:14:30 PDT 2007


What version of ant are you using and what is your system javac pointing to?


Matthew Flaschen wrote:
> I build icedtea-1.4, then attempted to build the mercurial repo by
> configuring with the j2sdk-image built in the icedtea-1.4 directory.
>
> I get the error output:
>
> -------------------------------------------------------------------------------------------------
>
> WARNING: The version of findbugs being used is older than
>        the required version of '1.1'.
>        The version of findbugs found was ''.
>
> Sanity check passed.
> /bin/mkdir -p
> /home/matthew/Code/Java/IcedTea/hg/openjdk/control/build/linux-i586/langtools
> (cd  ../../langtools/make && \
>          make EXTERNALSANITYCONTROL=true TARGET_CLASS_VERSION=5
> MILESTONE=internal BUILD_NUMBER=b21 JDK_BUILD_NUMBER=b21
> FULL_VERSION=1.7.0-b21 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0
> JDK_MKTG_VERSION=7 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7
> JDK_MICRO_VERSION=0 ARCH_DATA_MODEL=32 COOKED_BUILD_NUMBER=21
> ANT_HOME="/usr" FINDBUGS_HOME="/NOT-SET/devtools/share/findbugs/latest"
> ALT_OUTPUTDIR=/home/matthew/Code/Java/IcedTea/hg/openjdk/control/build/linux-i586/langtools
> ALT_BOOTDIR=/home/matthew/Code/Java/IcedTea/hg/bootstrap/jdk1.6.0 all)
> make[2]: Entering directory
> `/home/matthew/Code/Java/IcedTea/hg/openjdk/langtools/make'
> ANT_OPTS=-Djava.io.tmpdir='/home/matthew/Code/Java/IcedTea/hg/openjdk/control/build/linux-i586/langtools/build/ant-tmp'
> /usr/bin/ant -diagnostics >
> /home/matthew/Code/Java/IcedTea/hg/openjdk/control/build/linux-i586/langtools/build/ant-diagnostics.log
> ANT_OPTS=-Djava.io.tmpdir='/home/matthew/Code/Java/IcedTea/hg/openjdk/control/build/linux-i586/langtools/build/ant-tmp'
> /usr/bin/ant -Djdk.version=1.7.0 -Dfull.version='1.7.0-b21'
> -Dmilestone=internal -Dbuild.number=b21
> -Dboot.java.home=/home/matthew/Code/Java/IcedTea/hg/bootstrap/jdk1.6.0
> -Dbuild.dir=/home/matthew/Code/Java/IcedTea/hg/openjdk/control/build/linux-i586/langtools/build
> -Ddist.dir=/home/matthew/Code/Java/IcedTea/hg/openjdk/control/build/linux-i586/langtools/dist
> -Dfindbugs.home=/NOT-SET/devtools/share/findbugs/latest build
> Buildfile: build.xml
>
> -def-check:
>
> -check-boot.java.home:
>
> -def-pcompile:
>     [mkdir] Created dir:
> /home/matthew/Code/Java/IcedTea/hg/openjdk/control/build/linux-i586/langtools/build/toolclasses
>     [javac] Compiling 2 source files to
> /home/matthew/Code/Java/IcedTea/hg/openjdk/control/build/linux-i586/langtools/build/toolclasses
>     [javac] ----------
>     [javac] 1. ERROR in
> /home/matthew/Code/Java/IcedTea/hg/openjdk/langtools/make/tools/CompileProperties/CompileProperties.java
> (at line 220)
>     [javac]     List<String> sortedKeys = new ArrayList<String>();
>     [javac]     ^^^^
>     [javac] The type List is not generic; it cannot be parameterized
> with arguments <String>
>     [javac] ----------
>     [javac] 2. ERROR in
> /home/matthew/Code/Java/IcedTea/hg/openjdk/langtools/make/tools/CompileProperties/Compil
>     [javac] eProperties.java (at line 220)
>     [javac]     List<String> sortedKeys = new ArrayList<String>();
>     [javac]          ^^^^^^
>     [javac] Syntax error, parameterized types are only available if
> source level is 5.0
>
> ....
>
> BUILD FAILED
> /home/matthew/Code/Java/IcedTea/hg/openjdk/langtools/make/build.xml:515:
> Compile failed; see the compiler error output for details.
>
>
> -------------------------------------------------------------------------------------------------
>
> The javac built in icedtea-1.4 has version 1.7.0.  I don't know why it
> is trying to build the source file as pre-1.5.
>
> Matt Flaschen
>   




More information about the distro-pkg-dev mailing list