Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 75919 invoked from network); 16 Jan 2011 13:31:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jan 2011 13:31:20 -0000 Received: (qmail 28159 invoked by uid 500); 16 Jan 2011 13:31:19 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 27901 invoked by uid 500); 16 Jan 2011 13:31:16 -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 27882 invoked by uid 99); 16 Jan 2011 13:31:15 -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 13:31:15 +0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of pierre.queinnec@zenika.com does not designate 84.16.68.90 as permitted sender) Received: from [84.16.68.90] (HELO smtp2.infomaniak.ch) (84.16.68.90) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jan 2011 13:31:08 +0000 Received: from [192.168.0.11] (mon75-1-81-57-88-5.fbx.proxad.net [81.57.88.5]) (authenticated bits=0) by smtp2.infomaniak.ch (8.14.2/8.14.2) with ESMTP id p0GDUlm4010641 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sun, 16 Jan 2011 14:30:48 +0100 Message-Id: From: Pierre Queinnec To: dev@harmony.apache.org In-Reply-To: <4E9F1972-8415-4182-AEFC-9AD6AE5BC685@jpl.nasa.gov> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Subject: [general] Harmony port on Mac OS X [Was: Re: [general] Problem building Harmony on Mac OS X 10.6.6] Date: Sun, 16 Jan 2011 14:30:46 +0100 References: <4E9F1972-8415-4182-AEFC-9AD6AE5BC685@jpl.nasa.gov> X-Mailer: Apple Mail (2.936) X-Antivirus: Dr.Web (R) for Mail Servers on smtp2 host X-Antivirus-Code: 100000 X-Virus-Checked: Checked by ClamAV on apache.org Hi Chris, I just uploaded a patch and some wrapper scripts to make Harmony build =20= successfully on Mac OS X 10.5, see Issue #5114 : https://issues.apache.org/jira/browse/HARMONY-5114 As I said in JIRA, I'm not sure I correctly understand the behavior of =20= hy.no.thr, hy.skip.thr and al, so at this point I'll try to see how =20 the FreeBSD porters did it, and what are the Hudson FreeBSD build =20 parameters. queinnec@pasiphae:~$ uname -a Darwin pasiphae.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 =20 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 queinnec@pasiphae:~$ gcc -v Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-=20 checking -enable-werror --prefix=3D/usr --mandir=3D/share/man --enable-=20= languages=3Dc,objc,c++,obj-c++ --program-transform-name=3D/^[cg][^.-]*$/s/= =20 $/-4.0/ --with-gxx-include-dir=3D/include/c++/4.0.0 --with-slibdir=3D/usr/= =20 lib --build=3Di686-apple-darwin9 --with-arch=3Dapple --with-tune=3Dgeneric= --=20 host=3Di686-apple-darwin9 --target=3Di686-apple-darwin9 Thread model: posix gcc version 4.0.1 (Apple Inc. build 5493) queinnec@pasiphae:~$ as -version Apple Inc version cctools-698.1~1, GNU assembler version 1.38 I hope I'll find time to finish in the next weeks and get a fully =20 functional Harmony JDK. Cheers, -- Pierre Queinnec CTO, Zenika Office: +33 1 45 26 19 15 Mobile: +33 6 66 27 10 71 On Jan 16, 2011, at 4:08 AM, Mattmann, Chris A (388J) wrote: > Hi Harmony-devs, > > First off, great work! I am trying to build Harmony from source on =20 > Mac OS X 10.6.6 and I am receiving some strange error with iconv, =20 > and I can't figure 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 -=20 > DIPv6_FUNCTION_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=3D64 -=20 > DHY_NO_THR -I/usr/local/harmony/target/hdk/include -I/usr/local/=20 > harmony/target/hdk/jdk/include -I. -I../shared/ -I/opt/local/include =20= > -DHYPORT_LIBRARY_DEFINE -Imacosx.x86_64 -O1 -DNDEBUG -fPIC -fno-=20 > common -arch x86_64 -mmacosx-version-min=3D10.5 -Werror -c -o = /usr/=20 > local/harmony/target/build/classlib/portlib/native/port/hyfile.o =20 > 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 =20 > =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 =20 > =91libiconv=92 from incompatible pointer type > [exec] make: *** [/usr/local/harmony/target/build/classlib/=20 > portlib/native/port/hyfiletext.o] Error 1 > [exec] cc -DMACOSX -DMACOSX_X86_64 -DHYX86_64 -=20 > DIPv6_FUNCTION_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=3D64 -=20 > DHY_NO_THR -I/usr/local/harmony/target/hdk/include -I/usr/local/=20 > harmony/target/hdk/jdk/include -I. -I../shared/ -I/opt/local/include =20= > -DHYPORT_LIBRARY_DEFINE -Imacosx.x86_64 -O1 -DNDEBUG -fPIC -fno-=20 > common -arch x86_64 -mmacosx-version-min=3D10.5 -Werror -c -o = /usr/=20 > local/harmony/target/build/classlib/portlib/native/port/hyfiletext.o =20= > hyfiletext.c > > BUILD FAILED > /usr/local/harmony/build.xml:480: The following error occurred while =20= > executing this line: > /usr/local/harmony/classlib/build.xml:339: The following error =20 > occurred while executing this line: > /usr/local/harmony/classlib/modules/portlib/build.xml:180: The =20 > following error occurred while executing this line: > /usr/local/harmony/target/hdk/build/ant/properties.xml:412: exec =20 > 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-=20 > jmf.jar ant-nodeps.jar ant.pom > ant-antlr.jar ant-apache-xalan2.pom ant-=20 > jmf.pom ant-nodeps.pom ecj.jar > ant-antlr.pom ant-commons-logging.pom ant-=20 > jsch.pom ant-parent.pom libraries.properties > ant-apache-bcel.pom ant-commons-net.pom ant-=20 > junit.jar ant-swing.jar maven-ant-=20 > tasks-2.1.1.jar > ant-apache-bsf.pom ant-jai.jar ant-=20 > junit.pom ant-swing.pom > ant-apache-log4j.pom ant-jai.pom ant-=20 > launcher.jar ant-testutil.jar > ant-apache-oro.pom ant-javamail.pom ant-=20 > launcher.pom ant-testutil.pom > ant-apache-regexp.pom ant-jdepend.pom ant-=20 > 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-=20 > checking --enable-werror --prefix=3D/usr --mandir=3D/share/man = --enable-=20 > languages=3Dc,objc,c++,obj-c++ --program-transform-name=3D/^[cg][^.-]*$/= =20 > s/$/-4.2/ --with-slibdir=3D/usr/lib --build=3Di686-apple-darwin10 --=20= > program-prefix=3Di686-apple-darwin10- --host=3Dx86_64-apple-darwin10 = --=20 > 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 =20 > Harmony with 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 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >