harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov" <alexey.v.varla...@gmail.com>
Subject Re: [build] failed to build on centos
Date Fri, 11 Jan 2008 11:21:07 GMT
11 Jan 2008 10:31:43 +0300, Egor Pasko <egor.pasko@gmail.com>:
> On the 0x3C8 day of Apache Harmony Aram Mirzadeh wrote:
> > I am trying to build harmony on CentOS 5.1 system, any suggestions
> > would be greatly appreciated
> >
> > Apache Ant version 1.6.5 compiled on January 6 2007
> > Linux 2.6.18-8.1.15.el5
> > java version "1.6.0_03"
>
> try with java 1.5

Egor, I don't think this will help, unfortunately.

>
> > # echo $ANT_OPTS
> > -Xms256m -Xmx512m
> >
> > # ant -Dauto.fetch=true
> > show_props:
> >      [echo]
> >      [echo]                    Apache Harmony Federated Build
> >      [echo]             ==========================================
> >      [echo]             svn rev          :  607500
> >      [echo]             operating system :  linux
> >      [echo]             architecture     :  x86-32
> >      [echo]             ant os name/arch :  Linux/i386
> >      [echo]             hosting Java     :  1.6.0_03 (Sun Microsystems Inc.)
> >      [echo]             build mode       :  release
> >      [echo]             output location  :  target
> >      [echo]             DRLVM classlib   :  ../../../working_classlib
> >      [echo]             SVN root         :  http://svn.apache.org/repos/asf
> >      [echo]        [ ... ]
> >
> > -compile:
> >
> > BUILD FAILED
> > /home/awm/harmony/trunk/build.xml:323: The following error occurred
> > while executing this line:
> > /home/awm/harmony/trunk/working_classlib/build.xml:113: The following
> > error occurred while executing this line:
> > /home/awm/harmony/trunk/working_classlib/make/build-java.xml:116: The
> > following error occurred while executing this line:
> > /home/awm/harmony/trunk/working_classlib/make/properties.xml:546: The
> > Eclipse compiler class for Ant could not be found. Please place the
> > ECJ JAR in ANT_HOME/lib.
> > The JAR can be downloaded directly from eclipse.org or copied from
> > COMMON_RESOURCES/depends/jars/ecj_3.x folder after the fetch-depends
> > target for JDKTOOLS has been run.
> > Alternatively, you can switch to another compiler, e.g. specify
> > '-Dhy.javac.compiler=modern' for classic javac.
> >
> > Total time: 1 minute 7 seconds
> >
> > Although I do have ecj installed, but ok
> > -------------------------------------------
> >  ANT_HOME/lib jar listing
> > -------------------------------------------
> > ant.home: /usr/share/ant
> > ecj.jar (3991124 bytes)
> >

I recall having similar problems on SLES10 with pre-installed ANT. I
could not make it work, all tricks like passing --noconfig or setting
ANT_LIB did not help.
I finished un-installing that ANT and working with local setup w/o any problem.

> > ....will build with option suggested:
> >
> > [ ... ]
> > -compile:
> >     [mkdir] Created dir:
> > /home/awm/harmony/trunk/working_classlib/build/classes
> >  [hy.javac] Compiling 3863 source files to
> > /home/awm/harmony/trunk/working_classlib/build/classes
> >  [hy.javac]
> > /home/awm/harmony/trunk/working_classlib/modules/swing/src/main/java/common/javax/swing/text/html/StyleSheet.java:820:
> > reference to removeAttributes is ambiguous, both method
> > removeAttributes(javax.swing.text.AttributeSet,java.util.Enumeration<?>)
> > in javax.swing.text.StyleContext and method
> > removeAttributes(javax.swing.text.AttributeSet,javax.swing.text.html.StyleSheet.NameConverterEnumeration)
> > in javax.swing.text.html.StyleSheet match
> >  [hy.javac]         return removeAttributes(old, new
> > NameConverterEnumeration(old, rem));
> >  [hy.javac]                ^
> >  [hy.javac]
> > /home/awm/harmony/trunk/working_classlib/modules/swing/src/main/java/common/javax/swing/text/html/StyleSheet.java:825:
> > reference to removeAttributes is ambiguous, both method
> > removeAttributes(javax.swing.text.AttributeSet,java.util.Enumeration<?>)
> > in javax.swing.text.StyleContext and method
> > removeAttributes(javax.swing.text.AttributeSet,javax.swing.text.html.StyleSheet.NameConverterEnumeration)
> > in javax.swing.text.html.StyleSheet match
> >  [hy.javac]         return removeAttributes(old, new
> > NameConverterEnumeration(names));
> >  [hy.javac]                ^
> >  [hy.javac] Note: Some input files use or override a deprecated API.
> >  [hy.javac] Note: Recompile with -Xlint:deprecation for details.
> >  [hy.javac] Note: Some input files use unchecked or unsafe operations.
> >  [hy.javac] Note: Recompile with -Xlint:unchecked for details.
> >  [hy.javac] 2 errors
> >
> > BUILD FAILED
> > /home/awm/harmony/trunk/build.xml:323: The following error occurred
> > while executing this line:
> > /home/awm/harmony/trunk/working_classlib/build.xml:113: The following
> > error occurred while executing this line:
> > /home/awm/harmony/trunk/working_classlib/make/build-java.xml:120:
> > Compile failed; see the compiler error output for details.
> >
> > Total time: 50 seconds
> >

This is a known problem: HARMONY-4933, I just wonder why such annoying
trivia is not fixed yet.

--
Alexey

> >
>
> --
> Egor Pasko
>
>

Mime
View raw message