Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 27672 invoked from network); 16 Jan 2011 16:02:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jan 2011 16:02:40 -0000 Received: (qmail 47559 invoked by uid 500); 16 Jan 2011 16:02:40 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 47376 invoked by uid 500); 16 Jan 2011 16:02:37 -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 47367 invoked by uid 99); 16 Jan 2011 16:02:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jan 2011 16:02:36 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [128.149.139.106] (HELO mail.jpl.nasa.gov) (128.149.139.106) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jan 2011 16:02:30 +0000 Received: from mail.jpl.nasa.gov (altvirehtstap02.jpl.nasa.gov [128.149.137.73]) by smtp.jpl.nasa.gov (Switch-3.4.3/Switch-3.4.3) with ESMTP id p0GG28Be009247 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified FAIL) for ; Sun, 16 Jan 2011 08:02:09 -0800 Received: from ALTPHYEMBEVSP20.RES.AD.JPL ([128.149.137.82]) by ALTVIREHTSTAP02.RES.AD.JPL ([128.149.137.73]) with mapi; Sun, 16 Jan 2011 08:02:09 -0800 From: "Mattmann, Chris A (388J)" To: "dev@harmony.apache.org" Date: Sun, 16 Jan 2011 08:02:04 -0800 Subject: Re: [general] Harmony port on Mac OS X [Was: Re: [general] Problem building Harmony on Mac OS X 10.6.6] Thread-Topic: [general] Harmony port on Mac OS X [Was: Re: [general] Problem building Harmony on Mac OS X 10.6.6] Thread-Index: Acu1lrmiYkXnloKbS+GcMrPQQWjNeA== Message-ID: <6098158A-0C25-4C17-A8A8-F1EB1EE5FA23@jpl.nasa.gov> References: <4E9F1972-8415-4182-AEFC-9AD6AE5BC685@jpl.nasa.gov> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Source-IP: altvirehtstap02.jpl.nasa.gov [128.149.137.73] X-Source-Sender: chris.a.mattmann@jpl.nasa.gov X-AUTH: Authorized Hi Pierre, Thanks I will check out your patch. Did you have to disable the -Werror fla= g? Cheers, Chris On Jan 16, 2011, at 5:30 AM, Pierre Queinnec wrote: > Hi Chris, >=20 > 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 >=20 > 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. >=20 >=20 > 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 >=20 > 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=3Dgeneri= c --=20 > host=3Di686-apple-darwin9 --target=3Di686-apple-darwin9 > Thread model: posix > gcc version 4.0.1 (Apple Inc. build 5493) >=20 > queinnec@pasiphae:~$ as -version > Apple Inc version cctools-698.1~1, GNU assembler version 1.38 >=20 > 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 >=20 > Office: +33 1 45 26 19 15 > Mobile: +33 6 66 27 10 71 >=20 >=20 >=20 > On Jan 16, 2011, at 4:08 AM, Mattmann, Chris A (388J) wrote: >=20 >> Hi Harmony-devs, >>=20 >> 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? >>=20 >> Here is the build command: >>=20 >> ant -Dauto.fetch=3Dtrue -Dhy.no.thr all >>=20 >>=20 >> 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 >>=20 >> 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 >>=20 >> Total time: 1 minute 20 seconds >> [chipotle:/usr/local/harmony] mattmann% >>=20 >> Here is my config: >>=20 >> [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% >>=20 >> [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% >>=20 >> [chipotle:/usr/local/harmony] mattmann% echo $ANT_OPTS >> -Xms256m -Xmx512m >> [chipotle:/usr/local/harmony] mattmann% >>=20 >> Any ideas would be greatly appreciated as I wanted to try out =20 >> Harmony with some of my existing projects to test it out. >>=20 >> Thanks! >>=20 >> Cheers, >> Chris >>=20 >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> 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 >=20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++