Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 8618 invoked from network); 16 Jan 2011 10:10:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jan 2011 10:10:09 -0000 Received: (qmail 7723 invoked by uid 500); 16 Jan 2011 10:10:09 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 7311 invoked by uid 500); 16 Jan 2011 10:10:06 -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 7301 invoked by uid 99); 16 Jan 2011 10:10:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jan 2011 10:10:05 +0000 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of littlee1032@gmail.com designates 74.125.82.177 as permitted sender) Received: from [74.125.82.177] (HELO mail-wy0-f177.google.com) (74.125.82.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jan 2011 10:09:58 +0000 Received: by wyf22 with SMTP id 22so4134444wyf.36 for ; Sun, 16 Jan 2011 02:09:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=yS7SjVnxj2Oog0QRnK6BgHGh3ibmAwRamJjvLc8QaLU=; b=eIoKRP7UlpaLJ42wsheappRSZlh64Poqk6ZvX53S/B8xt/iGJZ8aVrQ4V6qGuhLUeQ no+QdD+X+fUVrxOyLWGDmlzlgWmNTJ1UuJJi7kvccRDhJL85yNkUDSaABwZ822L9PZaS 6HH0z0+E4waDL+FiBgfdrbCKp79tq7KRQz8rE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EOLUSHGUqdrKsGs+cD9n5URae93U8KqunW5HUQZiazHdvSbc/hqfZwhHUskpzpyOul FRyXMOwFB1jLfCHtkJoAOtGhmxPDRGgfw+SDatul+i6DLtC/QsoYJmBLy6y5SooAmWtP +nrIbJ97BjEtHQJxkOmEOyWvvEo6pLYxEEN5s= MIME-Version: 1.0 Received: by 10.216.23.18 with SMTP id u18mr1181746weu.92.1295172578302; Sun, 16 Jan 2011 02:09:38 -0800 (PST) Received: by 10.216.174.69 with HTTP; Sun, 16 Jan 2011 02:09:38 -0800 (PST) In-Reply-To: <4E9F1972-8415-4182-AEFC-9AD6AE5BC685@jpl.nasa.gov> References: <4E9F1972-8415-4182-AEFC-9AD6AE5BC685@jpl.nasa.gov> Date: Sun, 16 Jan 2011 18:09:38 +0800 Message-ID: Subject: Re: [general] Problem building Harmony on Mac OS X 10.6.6 From: Charles Lee To: dev@harmony.apache.org Content-Type: multipart/alternative; boundary=0016364c7e8b73dc1e0499f3dd59 X-Virus-Checked: Checked by ClamAV on apache.org --0016364c7e8b73dc1e0499f3dd59 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Chris, It seems a warning becoming to an error. Try to change the error level. I d= o not have a mac, hoping others will help. On Sun, Jan 16, 2011 at 11:08 AM, Mattmann, Chris A (388J) < chris.a.mattmann@jpl.nasa.gov> wrote: > Hi Harmony-devs, > > First off, great work! I am trying to build Harmony from source on Mac OS= X > 10.6.6 and I am receiving some strange error with iconv, and I can't figu= re > it out. Anyone have any ideas? > > Here is the build command: > > ant -Dauto.fetch=3Dtrue -Dhy.no.thr all > > > Here is the error: > ....snip > [exec] cc -DMACOSX -DMACOSX_X86_64 -DHYX86_64 -DIPv6_FUNCTION_SUPPORT > -D_REENTRANT -D_FILE_OFFSET_BITS=3D64 -DHY_NO_THR > -I/usr/local/harmony/target/hdk/include > -I/usr/local/harmony/target/hdk/jdk/include -I. -I../shared/ > -I/opt/local/include -DHYPORT_LIBRARY_DEFINE -Imacosx.x86_64 -O1 -DNDEBUG > -fPIC -fno-common -arch x86_64 -mmacosx-version-min=3D10.5 -Werror -c= -o > /usr/local/harmony/target/build/classlib/portlib/native/port/hyfile.o > hyfile.c > [exec] cc1: warnings being treated as errors > [exec] hyfiletext.c: In function =91file_write_using_iconv=92: > [exec] hyfiletext.c:420: warning: passing argument 2 of =91libiconv=92= from > incompatible pointer type > [exec] hyfiletext.c: In function =91buf_write_using_iconv=92: > [exec] hyfiletext.c:493: warning: passing argument 2 of =91libiconv=92= from > incompatible pointer type > [exec] make: *** > [/usr/local/harmony/target/build/classlib/portlib/native/port/hyfiletext.= o] > Error 1 > [exec] cc -DMACOSX -DMACOSX_X86_64 -DHYX86_64 -DIPv6_FUNCTION_SUPPORT > -D_REENTRANT -D_FILE_OFFSET_BITS=3D64 -DHY_NO_THR > -I/usr/local/harmony/target/hdk/include > -I/usr/local/harmony/target/hdk/jdk/include -I. -I../shared/ > -I/opt/local/include -DHYPORT_LIBRARY_DEFINE -Imacosx.x86_64 -O1 -DNDEBUG > -fPIC -fno-common -arch x86_64 -mmacosx-version-min=3D10.5 -Werror -c= -o > /usr/local/harmony/target/build/classlib/portlib/native/port/hyfiletext.o > hyfiletext.c > > BUILD FAILED > /usr/local/harmony/build.xml:480: The following error occurred while > executing this line: > /usr/local/harmony/classlib/build.xml:339: The following error occurred > while executing this line: > /usr/local/harmony/classlib/modules/portlib/build.xml:180: The following > error occurred while executing this line: > /usr/local/harmony/target/hdk/build/ant/properties.xml:412: exec returned= : > 2 > > Total time: 1 minute 20 seconds > [chipotle:/usr/local/harmony] mattmann% > > Here is my config: > > [chipotle:/usr/local/harmony] mattmann% ant -version > Apache Ant version 1.8.1 compiled on September 21 2010 > [chipotle:/usr/local/harmony] mattmann% which ant > /usr/bin/ant > [chipotle:/usr/local/harmony] mattmann% > [chipotle:/usr/local/harmony] mattmann% ls /usr/share/ant/lib > README ant-apache-resolver.pom ant-jmf.jar > ant-nodeps.jar ant.pom > ant-antlr.jar ant-apache-xalan2.pom ant-jmf.pom > ant-nodeps.pom ecj.jar > ant-antlr.pom ant-commons-logging.pom ant-jsch.pom > ant-parent.pom libraries.properties > ant-apache-bcel.pom ant-commons-net.pom ant-junit.jar > ant-swing.jar maven-ant-tasks-2.1.1.jar > ant-apache-bsf.pom ant-jai.jar ant-junit.pom > ant-swing.pom > ant-apache-log4j.pom ant-jai.pom ant-launcher.jar > ant-testutil.jar > ant-apache-oro.pom ant-javamail.pom ant-launcher.pom > ant-testutil.pom > ant-apache-regexp.pom ant-jdepend.pom ant-netrexx.pom > ant.jar > [chipotle:/usr/local/harmony] mattmann% > > [chipotle:/usr/local/harmony] mattmann% gcc -v > Using built-in specs. > Target: i686-apple-darwin10 > Configured with: /var/tmp/gcc/gcc-5664~89/src/configure --disable-checkin= g > --enable-werror --prefix=3D/usr --mandir=3D/share/man > --enable-languages=3Dc,objc,c++,obj-c++ > --program-transform-name=3D/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=3D/usr/= lib > --build=3Di686-apple-darwin10 --program-prefix=3Di686-apple-darwin10- > --host=3Dx86_64-apple-darwin10 --target=3Di686-apple-darwin10 > --with-gxx-include-dir=3D/include/c++/4.2.1 > Thread model: posix > gcc version 4.2.1 (Apple Inc. build 5664) > [chipotle:/usr/local/harmony] mattmann% > > [chipotle:/usr/local/harmony] mattmann% echo $ANT_OPTS > -Xms256m -Xmx512m > [chipotle:/usr/local/harmony] mattmann% > > Any ideas would be greatly appreciated as I wanted to try out Harmony wit= h > some of my existing projects to test it out. > > Thanks! > > Cheers, > Chris > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > Chris Mattmann, Ph.D. > Senior Computer Scientist > NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA > Office: 171-266B, Mailstop: 171-246 > Email: chris.a.mattmann@nasa.gov > WWW: http://sunset.usc.edu/~mattmann/ > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > Adjunct Assistant Professor, Computer Science Department > University of Southern California, Los Angeles, CA 90089 USA > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > --=20 Yours sincerely, Charles Lee --0016364c7e8b73dc1e0499f3dd59--