Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 11189 invoked from network); 16 Jan 2011 10:29:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jan 2011 10:29:12 -0000 Received: (qmail 21534 invoked by uid 500); 16 Jan 2011 10:29:12 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 21153 invoked by uid 500); 16 Jan 2011 10:29:09 -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 21144 invoked by uid 99); 16 Jan 2011 10:29:07 -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 10:29:07 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex.blewitt@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:29:02 +0000 Received: by wyf22 with SMTP id 22so4141847wyf.36 for ; Sun, 16 Jan 2011 02:28:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:references:in-reply-to:mime-version :content-transfer-encoding:content-type:message-id:cc:x-mailer:from :subject:date:to; bh=NhwIkdcjTKVbJ5g/Y5/EfTZc6QWOxFZouM9isJmlVvw=; b=n/wodn1LT333wcNpY/4CBGRvvf4tfMn89h+qim8xQYN3BCQYJTYz0B8ynWWT+4BmUz uYEwzX+5nzWUJKb8ngBBns48hOG509necScmvW7nAcZplohbm6Djs4Q8PB+6jAJHzzYa xANCoKYpoNMLIDljIN7R5hwiT/FFtHzjFggwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; b=Cgz36PTB5Dvyyg+ZrvpYWKhvUZMC8f3JXa/H4smjUJgSsg091WM6aULa4uB47PFi80 54XHVwSzeupnMsNOZxgqaTjTJ+Yb4LXVzgmgDlVELkgoEy53SV1QW/zbOpj4KWUam7oj 8CLGokod8Hku6noLnHRHcZAZXkwlvrGMjCb8Q= Received: by 10.227.180.76 with SMTP id bt12mr2769680wbb.146.1295173719276; Sun, 16 Jan 2011 02:28:39 -0800 (PST) Received: from [10.0.0.230] (server.bandlem.com [217.155.97.60]) by mx.google.com with ESMTPS id 11sm2399510wbi.18.2011.01.16.02.28.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 16 Jan 2011 02:28:38 -0800 (PST) References: <4E9F1972-8415-4182-AEFC-9AD6AE5BC685@jpl.nasa.gov> In-Reply-To: Mime-Version: 1.0 (iPad Mail 8C148) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-Id: <64C75F4F-6A9E-431D-BEE8-25D61298A815@gmail.com> Cc: "dev@harmony.apache.org" X-Mailer: iPad Mail (8C148) From: Alex Blewitt Subject: Re: [general] Problem building Harmony on Mac OS X 10.6.6 Date: Sun, 16 Jan 2011 10:33:21 +0000 To: "dev@harmony.apache.org" Yes, the -Werror flag being passed to cc will be doing that. Is thus coming f= rom the build or externally via the CC_FLAGS variable? Sent from my iPad On 16 Jan 2011, at 10:09, Charles Lee wrote: > Hi Chris, >=20 > 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. >=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 figu= re >> 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 -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 =E2=80=98file_write_using_iconv=E2=80=99= : >> [exec] hyfiletext.c:420: warning: passing argument 2 of =E2=80=98libico= nv=E2=80=99 from >> incompatible pointer type >> [exec] hyfiletext.c: In function =E2=80=98buf_write_using_iconv=E2=80=99= : >> [exec] hyfiletext.c:493: warning: passing argument 2 of =E2=80=98libico= nv=E2=80=99 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 >>=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 following >> error occurred while executing this line: >> /usr/local/harmony/target/hdk/build/ant/properties.xml:412: exec 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-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-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% >>=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 wit= h >> 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