You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pierre Queinnec (JIRA)" <ji...@apache.org> on 2011/01/16 13:36:47 UTC
[jira] Commented: (HARMONY-5114) support for Mac OS
[ https://issues.apache.org/jira/browse/HARMONY-5114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982289#action_12982289 ]
Pierre Queinnec commented on HARMONY-5114:
------------------------------------------
Hi guys,
I've made some progress towards a fully functional port for Mac OS X. Here is a rough patch that makes Harmony build successfully on Mac OS X 10.5 (see full environment in the attached verbose build log). It has been produced on branches/java6. I expect to be able to also port it to 10.6 once I get the chance.
It is still rough because I tried to keep it minimal and clean, but there were some parts where I was sure there was a better, canonical, way of doing things, so I left them out.
It builds successfully but fails trying to call hythread_allocate_library. I think it's mostly due to my still limited understanding of the interaction between the stub threadlib and the 'real' one ("hy.skip.thr" and friends). I will also attach the wrapper scripts I use to build.
Running ./java in the resulting JRE bin directory gives the following output (sorry for the lame printf's):
queinnec@pasiphae:/usr/local/src/harmony-java6-trunk/target/hdk/jdk/jre/bin$ ./java -version
PMQ - #2
PMQ - hyport_init_library#1
PMQ - hyport_create_library#4
PMQ - hyport_init_library#2 rc=0
dyld: lazy symbol binding failed: Symbol not found: _hythread_allocate_library
Referenced from: /usr/local/src/harmony-java6-trunk/target/hdk/jdk/jre/bin/libhyprt.dylib
Expected in: /usr/local/src/harmony-java6-trunk/target/hdk/jdk/jre/bin/libhythr.dylib
dyld: Symbol not found: _hythread_allocate_library
Referenced from: /usr/local/src/harmony-java6-trunk/target/hdk/jdk/jre/bin/libhyprt.dylib
Expected in: /usr/local/src/harmony-java6-trunk/target/hdk/jdk/jre/bin/libhythr.dylib
Trace/BPT trap
Interestingly I had to comment the version check in classlib/modules/portlib/src/main/native/port/shared/hyport.c. There are probably some hunks in the patch that could be applied to the trunk :
- classlib/modules/portlib/src/main/native/port/unix/makefile
- drlvm/vm/jitrino/src/codegenerator/ia32/Ia32CodeSelector.cpp (but I am C++-clueless)
Cheers!
-- Pierre
> support for Mac OS
> ------------------
>
> Key: HARMONY-5114
> URL: https://issues.apache.org/jira/browse/HARMONY-5114
> Project: Harmony
> Issue Type: New Feature
> Components: VM
> Environment: Operating system : Mac OS X 10.4+
> Reporter: Michel Rondeau
>
> Actually neither Sun nor Apple provide support for Java 1.6 on Leopard (OS X 10.6) while this release has been available for 11 months. The major migration issue will be the integration with the Cocoa framework (based on Objective-C 2.0). At this point however, a working version within the X11 environment would be a good starting point.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.