PPC64: Support for little endian execution model now functional [Resend to list] ?
Alexander Smundak
asmundak at google.com
Tue Apr 29 18:12:15 UTC 2014
You are probably using the default JDK installed in /usr/lib/jvm to
build this one.
The easiest solution is to go to that directory and make a symlink
called ppc64 pointing to ppc64le in jre/lib directory.
The longer explanation is that the default JDK treats little endian
PPC64 as a different architecture, and thus expectd libjvm.so is in
the ppc64le directory. My originial proposal to do the same was
rejected, and now little endian is treated as variant of the ppc64.
This did not cause any problem for JDK9 or JDK8, but due to the gamma
build trying to use freshly built JVM with bootstrap JDK this causes a
problem in JDK7.
On Tue, Apr 29, 2014 at 10:34 AM, Tiago Sturmer Daitx
<tdaitx at linux.vnet.ibm.com> wrote:
> On Tue, 2014-04-29 at 09:51 -0700, Alexander Smundak wrote:
>> It is working, that is, it builds and is capable of compiling itself.
>> However, it is not on par with big endian PPC64 as template
>> interpreter is not supported yet.
>>
>
> Alexander,
>
> Right now I'm facing some hotspot problems related to gamma and
> test_gama that I'm trying to track down and fix.
>
> The hotspot/outputdir/linux_ppc64_compiler2/product/test_gamma script is
> using ppc64 paths instead of ppc64le:
>
> LD_LIBRARY_PATH=.:${JAVA_HOME}/jre/lib/ppc64/native_threads:
> ${JAVA_HOME}/jre/lib/ppc64:
>
> and even after fixing LD_LIBRARY_PATH
> the /root/jdk7u/build/linux-ppc64/hotspot/outputdir/linux_ppc64_compiler2/product/gamma binary still uses ppc64:
>
> access("/usr/lib/jvm/java-7-openjdk-ppc64el/jre/lib/libjava.so", F_OK) =
> -1 ENOENT (No such file or directory)
> access("/usr/lib/jvm/java-7-openjdk-ppc64el/lib/ppc64/libjava.so", F_OK)
> = -1 ENOENT (No such file or directory)
> access("/usr/lib/jvm/java-7-openjdk-ppc64el/jre/lib/ppc64/libjava.so",
> F_OK) = -1 ENOENT (No such file or directory)
>
>
> Am I missing any additional flags when building on a PPC64LE system?
>
> Regards,
> Tiago
>
> --
> Tiago Sturmer Daitx
> Linux Technology Center [LTC|IBM]
> tdaitx at linux.vnet.ibm.com
>
More information about the ppc-aix-port-dev
mailing list