Thanks Alex. I didn't set the CC_FLAGS variable, so it must be coming from the Ant build, which is what I'm using. How do I take that off?
Thanks! Cheers, Chris On Jan 16, 2011, at 2:33 AM, Alex Blewitt wrote: > Yes, the -Werror flag being passed to cc will be doing that. Is thus coming > from the build or externally via the CC_FLAGS variable? > > Sent from my iPad > > On 16 Jan 2011, at 10:09, Charles Lee <littlee1...@gmail.com> wrote: > >> Hi Chris, >> >> It seems a warning becoming to an error. Try to change the error level. I do >> not have a mac, hoping others will help. >> >> On Sun, Jan 16, 2011 at 11:08 AM, Mattmann, Chris A (388J) < >> chris.a.mattm...@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 figure >>> it out. Anyone have any ideas? >>> >>> Here is the build command: >>> >>> ant -Dauto.fetch=true -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=64 -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=10.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 ‘file_write_using_iconv’: >>> [exec] hyfiletext.c:420: warning: passing argument 2 of ‘libiconv’ from >>> incompatible pointer type >>> [exec] hyfiletext.c: In function ‘buf_write_using_iconv’: >>> [exec] hyfiletext.c:493: warning: passing argument 2 of ‘libiconv’ 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=64 -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=10.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-checking >>> --enable-werror --prefix=/usr --mandir=/share/man >>> --enable-languages=c,objc,c++,obj-c++ >>> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib >>> --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- >>> --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 >>> --with-gxx-include-dir=/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 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.mattm...@nasa.gov >>> WWW: http://sunset.usc.edu/~mattmann/ >>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>> Adjunct Assistant Professor, Computer Science Department >>> University of Southern California, Los Angeles, CA 90089 USA >>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>> >>> >> >> >> -- >> Yours sincerely, >> Charles Lee ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Senior Computer Scientist NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 171-266B, Mailstop: 171-246 Email: chris.a.mattm...@nasa.gov WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adjunct Assistant Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++