Build Failure in langtools - Ubuntu 11.10/VBox... any ideas why?

Kelly O'Hair kelly.ohair at oracle.com
Wed Jan 25 16:55:28 PST 2012


Have you tried this recently?

-kto

On Nov 12, 2011, at 11:02 AM, Stephen Fitch wrote:

> 
> I've been experimenting with the new build infra on an Ubuntu 11.10 VBox env, but I
> hit a pretty early on issue... any ideas ?? <<
> 
> sf at sf-VirtualBox:~/dev/build-infra$ pwd
> /home/sf/dev/build-infra
> sf at sf-VirtualBox:~/dev/build-infra$ make 2>&1 |
> ./common/bin/hide_important_warnings_from_javac.sh
> 
> 
> ########################################################################
> ########################################################################
> ##### Entering langtools for target(s) all                         #####
> ########################################################################
> 
> Compiling 60 files in package com/sun/mirror/declaration
> Compiling 15 files in package com/sun/mirror/type
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/WildcardType.java:55:
> error: duplicate class: com.sun.mirror.type.WildcardType
> public interface WildcardType extends TypeMirror {
>       ^
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/VoidType.java:48:
> error: duplicate class: com.sun.mirror.type.VoidType
> public interface VoidType extends TypeMirror {
>       ^
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/TypeVariable.java:49:
> error: duplicate class: com.sun.mirror.type.TypeVariable
> public interface TypeVariable extends ReferenceType {
>       ^
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/TypeMirror.java:60:
> error: duplicate class: com.sun.mirror.type.TypeMirror
> public interface TypeMirror {
>       ^
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/ReferenceType.java:44:
> error: duplicate class: com.sun.mirror.type.ReferenceType
> public interface ReferenceType extends TypeMirror {
>       ^
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/PrimitiveType.java:45:
> error: duplicate class: com.sun.mirror.type.PrimitiveType
> public interface PrimitiveType extends TypeMirror {
>       ^
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/InterfaceType.java:53:
> error: duplicate class: com.sun.mirror.type.InterfaceType
> public interface InterfaceType extends DeclaredType {
>       ^
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/EnumType.java:46:
> error: duplicate class: com.sun.mirror.type.EnumType
> public interface EnumType extends ClassType {
>       ^
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/DeclaredType.java:62:
> error: duplicate class: com.sun.mirror.type.DeclaredType
> public interface DeclaredType extends ReferenceType {
>       ^
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/ClassType.java:52:
> error: duplicate class: com.sun.mirror.type.ClassType
> public interface ClassType extends DeclaredType {
>       ^
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/ArrayType.java:45:
> error: duplicate class: com.sun.mirror.type.ArrayType
> public interface ArrayType extends ReferenceType {
>       ^
> /home/sf/dev/build-infra/langtools/src/share/classes/com/sun/mirror/type/AnnotationType.java:46:
> error: duplicate class: com.sun.mirror.type.AnnotationType
> public interface AnnotationType extends InterfaceType {
>       ^
> 12 errors
> 
> 
> 
> Javac command line that failed:
> -XDserver:portfile=/home/sf/dev/build-infra/build/linux-amd64-server-release/javacservers/GENERATE_NEWBYTECODE.port,poolsize=1,javac=/usr/lib/jvm/java-6-openjdk/bin/java%20-XX:+UseParallelOldGC%20-verbosegc%20-Xms256M%20-Xmx512M%20-Xmn128M%20-Xbootclasspath/p:/home/sf/dev/build-infra/build/linux-amd64-server-release/langtools/dist/bootstrap/lib/javac.jar%20-jar%20/home/sf/dev/build-infra/build/linux-amd64-server-release/langtools/dist/bootstrap/lib/javac.jar
> -XDdeps=file=/home/sf/dev/build-infra/build/linux-amd64-server-release/langtools/classes/com/sun/mirror/type/_the.package.deps,groupon=package
> -XDpubapi=file=/home/sf/dev/build-infra/build/linux-amd64-server-release/langtools/classes/com/sun/mirror/type/_the.package.api,notify,package=com.sun.mirror.type
> -XDnativeapi=file=/home/sf/dev/build-infra/build/linux-amd64-server-release/langtools/classes/com/sun/mirror/type/_the.package.native,notify,package=com.sun.mirror.type
> -Xprefer:source -XDignore.symbol.file=true -implicit:none -sourcepath
> /home/sf/dev/build-infra/langtools/src/share/classes:/home/sf/dev/build-infra/build/linux-amd64-server-release/langtools/gensrc:/home/sf/dev/build-infra/build/linux-amd64-server-release/langtools/genstubs
> -d  /home/sf/dev/build-infra/build/linux-amd64-server-release/langtools/classes
> @/home/sf/dev/build-infra/build/linux-amd64-server-release/langtools/classes/com/sun/mirror/type/_the.package.tmp
> 
> 
> make[1]: *** [/home/sf/dev/build-infra/build/linux-amd64-server-release/langtools/classes/com/sun/mirror/type/_the.package]
> Error 1
> make: *** [langtools] Error 2
> sf at sf-VirtualBox:~/dev/build-infra$
> 
> 
> >>
> 
> My steps were <<
> 
>    sudo apt-get build-dep openjdk-6
> 
>    sudo apt-get install openjdk-6-jdk
> 
>    sudo apt-get install ccache
> 
>    In addition, it's necessary to setup the new build infra by
> 
>    hg clonehttp://hg.openjdk.java.net/build-infra/jdk7  build-infra
> 
>    cd build-infra/
> 
>    sh ./get_source.sh
> 
>    cd common/config
> 
>    wgethttp://cvs.savannah.gnu.org/viewvc/*checkout*/config/config/config.guess
>    wgethttp://cvs.savannah.gnu.org/viewvc/*checkout*/config/config/config.sub
>    wgethttp://www.opensource.apple.com/source/libdispatch/libdispatch-187.5/m4/pkg.m4?txt
> 
>    cd ../..
> 
>    ./configure
> 
>    make 2>&1 | ./common/bin/hide_important_warnings_from_javac.sh
> 
>> >
> 
> I'm still working to figure out what went wrong, but would welcome any
> hints...
> 
> I even tried with Iced-Tea via
> 
> ./configure --with-boot-jdk=/usr/lib/jvm/java-6-openjdk
> 
> ---
> 




More information about the build-infra-dev mailing list