compile error on mac ppc box

Tony Piselli tpisellijr at
Mon May 6 08:43:03 PDT 2013

Hi Volker,
Using the AIX-Linux-PPC project I've started to add BSD/Mac/PPC support in. I've been able to identify PPC boxes and in particular the 64 bit cpu (ppc970) and have gotten to the point where the build makes it into the hotspot project. Looking at the AIX hotspot code it appears that things are coded for the xlc compiler tool set whereas the Linux/PPC code appears to be coded for the gcc tool set. The last version of tools from Apple for PPC (Mac OS 10.5.8 and XCode 3.1.4) included the gcc and LLVM tool sets. Based on this I'm going to guess that I should use the Linux/PPC code (hotspot/src/os_cpu/linux_ppc/vm) as the starting point for BSD/PPC support and not the AIX code? Searching around on the web I did find references to xlc tools for Mac OS but it doesn't appear to be available and I'm not sure if that would be the best way to go since it wasn't part of the Apple provided tools.


On Apr 03, 2013, at 03:41 AM, Volker Simonis <volker.simonis at> wrote:


I just want to mention that the current ppc-aix  code is 64-bit only. Unfortunately I'm not familiar at all with Mac/PPC and I don't know if it supports 64-bit PPC binaries. If it does I think it should be possible to combine our port with the bits from the MacOS port to get C2-JIT support on Mac/PPC. If not it would be a considerable effort to implement 32-bit PPC support for the ppc-aix port and we don't plan to do that.

We've just lifted the JDK7 version of the ppc-aix port to hsx24 (with the new JSR292 implementation) and it builds and runs fairly well on Linux and AIX (if not please let me know:).

For the next month will now concentrate on JDK8 (we already have a running hsx25 for PPC64 but still have to do all the other class-library, build, etc.. stuff).


On Tue, Apr 2, 2013 at 1:40 PM, Tony Piselli <tpisellijr at> wrote:
Kurt & others,
Thanks for your time and feedback. I'll take a look at the ppc-aix code and see what I can do to get started.

On Apr 01, 2013, at 12:37 PM, Kurt Miller <kurt at> wrote:

On Monday 01 April 2013 10:40:53 am Christophe Phi wrote:
> Hi
> (Sorry for the delayed response.. see below)
> On 2013-Apr-1, at 8:40 AM, Tony Piselli wrote:
> > Hi Kurt,
> > I'm willing to put some time and effort into this. Would you mind 
> > pointing me in the best direction in order to get this going again?
> > Thanks,
> > Tony
> >
> > Sent from my iPhone
> >
> > On Mar 29, 2013, at 9:10 AM, Kurt Miller 
> > <kurt at> wrote:
> >
> >> Hi Tony,
> >>
> >> On 03/26/13 12:03, Tony Piselli wrote:
> >>> Chris,
> >>> Sorry for my ignorance with this as it's the first time I've tried 
> >>> to do
> >>> an OpenJDK build. I basically followed the directions from the 
> >>> following
> >>> Wiki page:
> >>>
> >>>
> >>> which calls for the following to pull down the code:
> >>> |hg clone http:||//|
> >>>
> >>> I hope this is what you were looking for. Please let me knowif you 
> >>> need
> >>> any more information.
> >>> Thanks,
> >>
> >> A while back I was working on this in bsd-port. In the end it worked
> >> ok on single processor systems, but I couldn't stabilize it on SMP
> >> systems. Since then I haven't had time to keep up with bsd-port zero
> >> ppc testing and builds.
> >>
> >> -Kurt
> >>
> >>> On Mar 26, 2013, at 11:40 AM, "Chris Phillips @ T O"
> >>> <ChrisPhi at LGonQn.Org> wrote:
> >>>
> >>>> Hi
> >>>>
> >>>> On 26/03/13 11:00 AM, Andrew Hughes wrote:
> >>>>> 'get_ek_adapter_opt_swap_rot_info' is not a member of 
> >>>>> 'MethodHandles'
> >>>>
> >>>> This looks like old code that shouldn't be there ... what version 
> >>>> of
> >>>> (and what repo) is this built from (That code was for the pre- 
> >>>> Richochet
> >>>> version)? (If its an old repo you may need TARGET_ARCH_NYI_693986 
> >>>> set ).
> >>>>
> >>>> Chris
> >>>>
> I think Kurt provided an early jdk7 binary for ppc... the follow ing 
> url has some good ptrs:
> NB The old zero (pre -hsx24) was not tracking the jsr292 Ricochet 
> frames stuff very well,
> and they (Ricochet frames are gone after hsx24 (b31?) and also in jdk 
> 8. jdk8 has the best Zero/Shark
> implementation at the moment (thanks Roman!) jdk8 might work best as 
> it has macosx stuff too
> (although its more recent osx ? I am not an osx guru so ymmv ).
> Chris
> PS
> When I get "some time"tm I intend to try to build jdk7 on ppc . 
> (Both Linux
> and Mac OSX 10.5 but the latter is tricky.)
> I would probably use the current jdk7u Zero with the patch that 
> Volker Simonis
> provided after that I would try to build Volkers aix-ppc jvm. Again, 
> no idea of
> osx gotcha's for these, built Volkers aix-ppc on linux and it would 
> build itself
> last year, but haven't kept up since then.

Based on the information provided so far, if I were to start working
on ppc for OS X now, I'd start with ppc-aix-port. Zero while functional,
was extreemly slow. Native support would be best.

Looking at this tree:

I see that it is following jdk7u and has tags for jdk7u14 so it has
MacOS x86 support that was merged in around 7u6. 

The hardest part of the work will be in taking the code here:

and porting it to


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the bsd-port-dev mailing list