Folks,

PPC isn't a currently supported architecture for OpenJDK - that is, no one has contributed any code to support it. I do know of several proprietary ports, but that doesn't help. :-) I don't even remember the last time it was potentially supported (I'm pretty sure that PPC never was supported in the OpenJDK project).

To put in more bluntly, no one has built OpenJDK on PPC here at Oracle for a *very* long time, and I don't know of any Open port anywhere else.

It certainly would be nice for someone to come forward with a port of Hotspot to the PPC/Power architecture, as the Freescale stuff (in particular) is becoming very popular for embedded work. Now that IBM is part of OpenJDK, maybe they'll be interested? (who knows)

FYI - "Zero" the architecture, is for a zero-assembly version of Hotspot (that is, a Hotspot version with as little architecture-specific customizations as possible). If I were porting Hotspot, I'd start with the Zero codebase, and work from there. But that's just me.

-Erik


On 7/10/2011 8:41 AM, John Yeary wrote:
Hello Max,

I have not been able to get it to compile either and at this point no one has responded to my post about PPC. I am not sure if it will compile for our platform any more.

Does anyone have a successful recent build?

John

On Sun, Jul 10, 2011 at 6:11 AM, Max Pole <max_p...@gmx.de <mailto:max_p...@gmx.de>> wrote:

    Hi,

    I hope it's the right mailing list for my question...

    I'm trying to build opendjdk7 (bsd-port) in my PowerPC Mac. I
    downloaded a right bootstrap VM and got platform-independent code
    (corba, jaxp, jaxws etc) successfully compiled.

    Unfortunately I cannot compile hotspot VM because of the following
    error:

    g++-4.0 -D_ALLBSD_SOURCE -D_GNU_SOURCE -DCC_INTERP -DZERO -DPPC
    -DZERO_LIBARCH=\"ppc\" -DPRODUCT -I.
    -I/Users/maxim/bsd-port/hotspot/src/share/vm/prims
    -I/Users/maxim/bsd-port/hotspot/src/share/vm
    -I/Users/maxim/bsd-port/hotspot/src/cpu/zero/vm
    -I/Users/maxim/bsd-port/hotspot/src/os_cpu/bsd_zero/vm
    -I/Users/maxim/bsd-port/hotspot/src/os/bsd/vm
    -I/Users/maxim/bsd-port/hotspot/src/os/posix/vm -I../generated
    -DHOTSPOT_RELEASE_VERSION="\"21.0-b17\""
    -DHOTSPOT_BUILD_TARGET="\"product\""
    -DHOTSPOT_BUILD_USER="\"maxim\"" -DHOTSPOT_LIB_ARCH=\"ppc\"
    -DJRE_RELEASE_VERSION="\"1.7.0-internal-maxim_2011_07_09_02_30-b00\""
    -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DTARGET_OS_FAMILY_bsd
    -DTARGET_ARCH_zero -DTARGET_ARCH_MODEL_zero
    -DTARGET_OS_ARCH_bsd_zero -DTARGET_OS_ARCH_MODEL_bsd_zero
    -DTARGET_COMPILER_gcc -I/usr/include/ffi -fPIC -fno-rtti
    -fno-exceptions -pthread -fcheck-new -m32 -pipe -O3
    -fno-strict-aliasing -I/usr/local/include -Werror -Wpointer-arith
    -Wconversion -Wsign-compare    -D_XOPE!
     N_SOURCE -D_DARWIN_C_SOURCE -c -MMD -MP -MF
    ../generated/dependencies/precompiled.hpp.gch.d -x c++-header
    /Users/maxim/bsd-port/hotspot/src/share/vm/precompiled.hpp -o
    precompiled.hpp.gch
    In file included from
    /Users/maxim/bsd-port/hotspot/src/share/vm/ci/ciMethod.hpp:33,
                    from
    /Users/maxim/bsd-port/hotspot/src/share/vm/code/debugInfoRec.hpp:30,
                    from
    /Users/maxim/bsd-port/hotspot/src/share/vm/ci/ciEnv.hpp:31,
                    from
    /Users/maxim/bsd-port/hotspot/src/share/vm/ci/ciUtilities.hpp:28,
                    from
    /Users/maxim/bsd-port/hotspot/src/share/vm/ci/ciNullObject.hpp:30,
                    from
    /Users/maxim/bsd-port/hotspot/src/share/vm/ci/ciConstant.hpp:29,
                    from
    /Users/maxim/bsd-port/hotspot/src/share/vm/precompiled.hpp:36:
    /Users/maxim/bsd-port/hotspot/src/share/vm/prims/methodHandles.hpp:727:35:
    error: methodHandles_zero.hpp: No such file or directory
    make[6]: *** [precompiled.hpp.gch] Error 1
    make[5]: *** [the_vm] Error 2
    make[4]: *** [productzero] Error 2
    make[3]: *** [generic_buildzero] Error 2
    make[2]: *** [productzero] Error 2
    make[1]: *** [hotspot-build] Error 2
    make: *** [build_product_image] Error 2

    ---------------------------------------------------------------------

    The missing source is there but the complation script seems to be
    unable to locate it.
    Moreover, I found out that the platform-specific code (PPC in my
    case) is NOT there! The directory

    /Users/maxim/bsd-port/hotspot/src/cpu

    doesn't contain any PPC-related code but only those for sparc, x86
    and zero. I have no idea what the latter means though...

    My Question: Is PPC arch deprecated meanwhile? If not, what's the
    reason to strip it out from the distribution?

    Is there any possibility to obtain the PPC code for that VM?

    Any help would be highly appreciated. I'm about to contribute to a
    open-source project related on Java 1.6 but I cannot run that
    software because Apple discontinued PPC macs, their support and
    Java development for PPC. So openjdk is my only way to proceed...

    Info on system I use:

    Processor: PowerPC G5 2.1 GHz
    System: Mac OS X 10.5.8

    Best regards
    Maxim Poliakovski
    --
    NEU: FreePhone - kostenlos mobil telefonieren!
    Jetzt informieren: http://www.gmx.net/de/go/freephone




--
John Yeary
--
http://javaevangelist.blogspot.com
http://www.johnyeary.com
*@jyeary*

"Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the gray twilight that knows not victory nor defeat."
-- Theodore Roosevelt


--
Erik Trimble
Java Platform Group Infrastructure
Mailstop:  usca22-317
Phone:  x67195
Santa Clara, CA
Timezone: US/Pacific (UTC-0800)

Reply via email to