Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 52283 invoked from network); 11 Jan 2008 11:29:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jan 2008 11:29:41 -0000 Received: (qmail 67787 invoked by uid 500); 11 Jan 2008 11:29:29 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 67760 invoked by uid 500); 11 Jan 2008 11:29:29 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 67751 invoked by uid 99); 11 Jan 2008 11:29:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2008 03:29:29 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of t.p.ellison@gmail.com designates 72.14.220.156 as permitted sender) Received: from [72.14.220.156] (HELO fg-out-1718.google.com) (72.14.220.156) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2008 11:29:03 +0000 Received: by fg-out-1718.google.com with SMTP id 16so1087264fgg.36 for ; Fri, 11 Jan 2008 03:29:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=M7E1de+RKh7kYquIZxURDmXjIDUV/7HRTgnrANPgY18=; b=BqchbrLMHbIe6YQ8FNYLQTEQYjnx1dYuSY/P71AnAdCRpMEVQlo2dc7zxS7/F0uVLsicbEJMJf54jNLE1TCnXIycqwbMOI5HJ1oo9AQsYun91O+cUsaoD08Ccp2PbHBfCNEfgFSAQtXCpc4L27PaJffTO8m8BWYziBAT9T/ccgY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=Hj1BpKUrY55fwGxoEEaLnJLW2cDegnXUnj9uJmjWEr78FNdcR8mkD1+AtKdPexmBcPbHVgm059qVkAluk6HiA99zwLv4qhWuriOkWCkznwdq0EHd6bAc0JThmjtdA6iCre1DZGhX9z/47r3U4ZSxtCUnyx4+I0QfeoAl0AL1jrc= Received: by 10.86.50.8 with SMTP id x8mr2864768fgx.61.1200050947516; Fri, 11 Jan 2008 03:29:07 -0800 (PST) Received: from ?9.20.183.163? ( [195.212.29.75]) by mx.google.com with ESMTPS id u14sm2065505gvf.13.2008.01.11.03.29.05 (version=SSLv3 cipher=RC4-MD5); Fri, 11 Jan 2008 03:29:06 -0800 (PST) Message-ID: <47875301.1040700@gmail.com> Date: Fri, 11 Jan 2008 11:29:05 +0000 From: Tim Ellison User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [build] failed to build on centos References: <4786CF10.7060101@mbcli.com> In-Reply-To: <4786CF10.7060101@mbcli.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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" > > # 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 Hmm, that's strange... > ------------------------------------------- > ANT_HOME/lib jar listing > ------------------------------------------- > ant.home: /usr/share/ant > ecj.jar (3991124 bytes) Which version of ecj.jar is that? I am using ecj.jar version 3.3 and it is only half that size (1,563,059 bytes). > ....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 I think that is the same case as reported to Eclipse here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=166355 who AIUI decided it was a Sun javac bug that they did not want to replicate. I usually use ECJ, but let me retry with the Sun compiler and I'll let you know how I get on. Regards, Tim > 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 > >