Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 614 invoked from network); 16 Jan 2011 18:54:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jan 2011 18:54:11 -0000 Received: (qmail 91101 invoked by uid 500); 16 Jan 2011 18:54:11 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 91057 invoked by uid 500); 16 Jan 2011 18:54:10 -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 91048 invoked by uid 99); 16 Jan 2011 18:54:10 -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 18:54:10 +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 (nike.apache.org: local policy) Received: from [128.149.139.109] (HELO mail.jpl.nasa.gov) (128.149.139.109) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jan 2011 18:54:02 +0000 Received: from mail.jpl.nasa.gov (altvirehtstap01.jpl.nasa.gov [128.149.137.72]) by smtp.jpl.nasa.gov (Switch-3.4.3/Switch-3.4.3) with ESMTP id p0GIraoD025906 (using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified FAIL) for ; Sun, 16 Jan 2011 10:53:36 -0800 Received: from ALTPHYEMBEVSP20.RES.AD.JPL ([128.149.137.82]) by ALTVIREHTSTAP01.RES.AD.JPL ([128.149.137.72]) with mapi; Sun, 16 Jan 2011 10:53:35 -0800 From: "Mattmann, Chris A (388J)" To: "dev@harmony.apache.org" Date: Sun, 16 Jan 2011 10:53:34 -0800 Subject: Re: [general] Problem building Harmony on Mac OS X 10.6.6 Thread-Topic: [general] Problem building Harmony on Mac OS X 10.6.6 Thread-Index: Acu1rq47EoHGp4t5SiyxOlvtqvk9sw== Message-ID: <5A7C7B60-6171-4111-9786-1FF1367B2C33@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: altvirehtstap01.jpl.nasa.gov [128.149.137.72] X-Source-Sender: chris.a.mattmann@jpl.nasa.gov X-AUTH: Authorized X-Virus-Checked: Checked by ClamAV on apache.org Hey Guys, I went ahead and updated my Mac Ports, and then ran the compile again hopin= g it would get rid of the error. Well, it did get rid of the error, but now= produced a new one :( Here's what I am seeing: [exec] /usr/local/harmony/target/build/classlib/portlib/native/port/p= ort_copyright.o /usr/local/harmony/target/build/classlib/portlib/native/por= t/hyerror.o /usr/local/harmony/target/build/classlib/portlib/native/port/hy= errorhelpers.o /usr/local/harmony/target/build/classlib/portlib/native/port= /hyexit.o /usr/local/harmony/target/build/classlib/portlib/native/port/hyfi= le.o /usr/local/harmony/target/build/classlib/portlib/native/port/hyfiletex= t.o /usr/local/harmony/target/build/classlib/portlib/native/port/hygp.o /us= r/local/harmony/target/build/classlib/portlib/native/port/hymem.o /usr/loca= l/harmony/target/build/classlib/portlib/native/port//hymmap.o /usr/local/ha= rmony/target/build/classlib/portlib/native/port/hynls.o /usr/local/harmony/= target/build/classlib/portlib/native/port/hynlshelpers.o /usr/local/harmony= /target/build/classlib/portlib/native/port/hyosdump.o /usr/local/harmony/ta= rget/build/classlib/portlib/native/port/hyport.o /usr/local/harmony/target/= build/classlib/portlib/native/port/hyportcontrol.o /usr/local/harmony/targe= t/build/classlib/portlib/native/port/hyportptb.o /usr/local/harmony/target/= build/classlib/portlib/native/port/hysharedhelper.o /usr/local/harmony/targ= et/build/classlib/portlib/native/port/hysl.o /usr/local/harmony/target/buil= d/classlib/portlib/native/port/hysock.o /usr/local/harmony/target/build/cla= sslib/portlib/native/port/hystr.o /usr/local/harmony/target/build/classlib/= portlib/native/port/hystrftime.o /usr/local/harmony/target/build/classlib/p= ortlib/native/port/hystsl.o /usr/local/harmony/target/build/classlib/portli= b/native/port/hysysinfo.o /usr/local/harmony/target/build/classlib/portlib/= native/port/hytime.o /usr/local/harmony/target/build/classlib/portlib/nativ= e/port/hytlshelpers.o /usr/local/harmony/target/build/classlib/portlib/nati= ve/port/hytty.o /usr/local/harmony/target/build/classlib/portlib/native/por= t/hycpu.o /usr/local/harmony/target/build/classlib/portlib/native/port/hyip= cmutex.o /usr/local/harmony/target/build/classlib/portlib/native/port/hyshm= em.o /usr/local/harmony/target/build/classlib/portlib/native/port/hyshsem.o= /usr/local/harmony/target/build/classlib/portlib/native/port/hyvmem.o -L/= usr/local/harmony/target/hdk/lib/ -L/usr/local/harmony/target/hdk/jdk/jre/b= in/ /usr/local/harmony/target/hdk/lib/libhycommon.a -L/opt/local/lib -lc -= ldl -liconv [exec] Undefined symbols: [exec] "_hythread_startup_library", referenced from: [exec] _hyport_startup_library in hyport.o [exec] "_hythread_allocate_library", referenced from: [exec] _hyport_startup_library in hyport.o [exec] ld: symbol(s) not found [exec] collect2: ld returned 1 exit status [exec] make: *** [/usr/local/harmony/target/hdk/jdk/jre/bin/libhyprt.d= ylib] Error 1 My build command was: ant -Dauto.fetch=3Dtrue -Dhy.no.thr=3Dyes all (note I only added the hy.no.thr property after trying it without, and then= getting this error): -build-native-thread: [echo] Making "" in src/main/native/thread/unix [exec] cc -DMACOSX -DMACOSX_X86_64 -DHYX86_64 -DIPv6_FUNCTION_SUPPORT = -D_REENTRANT -D_FILE_OFFSET_BITS=3D64 -I/usr/local/harmony/target/hdk/inclu= de -I/usr/local/harmony/target/hdk/jdk/include -I. -I../shared/ -I/opt/loca= l/include -O1 -DNDEBUG -fPIC -fno-common -arch x86_64 -mmacosx-version-min= =3D10.5 -Werror -c -o /usr/local/harmony/target/build/classlib/portlib/= native/thread/thread_copyright.o ../shared/thread_copyright.c [exec] as -arch x86_64 -o /usr/local/harmony/target/build/classlib/por= tlib/native/thread/thrhelp.o x86_64/thrhelp.s [exec] x86_64/thrhelp.s:37:Unknown pseudo-op: .type [exec] x86_64/thrhelp.s:37:Rest of line ignored. 1st junk character va= lued 104 (h). [exec] x86_64/thrhelp.s:39:Unknown pseudo-op: .type [exec] x86_64/thrhelp.s:39:Rest of line ignored. 1st junk character va= lued 99 (c). [exec] x86_64/thrhelp.s:41:Unknown pseudo-op: .type [exec] x86_64/thrhelp.s:41:Rest of line ignored. 1st junk character va= lued 104 (h). [exec] x86_64/thrhelp.s:70:Unknown pseudo-op: .size [exec] x86_64/thrhelp.s:70:Rest of line ignored. 1st junk character va= lued 99 (c). [exec] x86_64/thrhelp.s:95:Unknown pseudo-op: .size [exec] x86_64/thrhelp.s:95:Rest of line ignored. 1st junk character va= lued 104 (h). [exec] x86_64/thrhelp.s:120:Unknown pseudo-op: .size [exec] x86_64/thrhelp.s:120:Rest of line ignored. 1st junk character v= alued 104 (h). [exec] make: *** [/usr/local/harmony/target/build/classlib/portlib/nat= ive/thread/thrhelp.o] Error 1 BUILD FAILED /usr/local/harmony/build.xml:480: The following error occurred while execut= ing this line: /usr/local/harmony/classlib/build.xml:339: The following error occurred whi= le executing this line: /usr/local/harmony/classlib/modules/portlib/build.xml:149: The following er= ror occurred while executing this line: /usr/local/harmony/target/hdk/build/ant/properties.xml:412: exec returned: = 2 Total time: 1 minute 13 seconds Any thoughts would be appreciated. Cheers, Chris On Jan 16, 2011, at 7:59 AM, Mattmann, Chris A (388J) wrote: > Thanks Charles.=20 >=20 > How do I change the error level? I'm using the Ant build? >=20 > Cheers, > Chris >=20 > On Jan 16, 2011, at 2:09 AM, Charles Lee wrote: >=20 >> Hi Chris, >>=20 >> It seems a warning becoming to an error. Try to change the error level. = I do >> not have a mac, hoping others will help. >>=20 >> On Sun, Jan 16, 2011 at 11:08 AM, Mattmann, Chris A (388J) < >> chris.a.mattmann@jpl.nasa.gov> wrote: >>=20 >>> Hi Harmony-devs, >>>=20 >>> 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 fi= gure >>> 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 -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 -DNDEB= UG >>> -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/hyfiletex= t.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 -DNDEB= UG >>> -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 >>>=20 >>> 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 followin= g >>> error occurred while executing this line: >>> /usr/local/harmony/target/hdk/build/ant/properties.xml:412: exec return= ed: >>> 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-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% >>>=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-check= ing >>> --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/us= r/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% >>>=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 Harmony w= ith >>> 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 >>=20 >>=20 >> --=20 >> Yours sincerely, >> Charles Lee >=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 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >=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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++