harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Queinnec <pierre.quein...@zenika.com>
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 13:30:46 GMT
Hi Chris,

I just uploaded a patch and some wrapper scripts to make Harmony build  
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  
hy.no.thr, hy.skip.thr and al, so at this point I'll try to see how  
the FreeBSD porters did it, and what are the Hudson FreeBSD build  
parameters.


queinnec@pasiphae:~$ uname -a
Darwin pasiphae.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15  
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- 
checking -enable-werror --prefix=/usr --mandir=/share/man --enable- 
languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/ 
$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/ 
lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic -- 
host=i686-apple-darwin9 --target=i686-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  
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  
> 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.mattmann@nasa.gov
> WWW:   http://sunset.usc.edu/~mattmann/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Assistant Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>


Mime
View raw message