[meta-java] aarch64 openjre-8


joel.winarske@...
 

Hi,

I seeing runtime error on aarch64 dunfell when attempting to do "java --version".

I build and install the following packages:

update-alternatives-opkg_0.4.2-r0_aarch64.ipk

openjre-8_272-r0_aarch64.ipk

 

Strace output:

write(2, "Error: dl failure on line 893", 29Error: dl failure on line 893) = 29

write(2, "\n", 1

)                       = 1

write(2, "Error: failed /usr/lib/jvm/openj"..., 190Error: failed /usr/lib/jvm/openjre-8/lib/aarch64/server/libjvm.so, because /usr/lib/jvm/openjre-8/lib/aarch64/server/libjvm.so: undefined symbol: _ZN14ArrayAllocatorImL10MemoryType7EE4freeEv) = 190

write(2, "\n", 1

)                       = 1

exit_group(6)                           = ?

 

The failing code looks like this:

dlopen(jvmpath, RTLD_NOW + RTLD_GLOBAL)

 

It’s failing to load libjvm.so due to undefined symbol.

 

Dumping symbols in libjvm.so I see this:

    76: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND _ZN14ArrayAllocatorImL10M


What am I missing, or is this a known issue that I'm not able to find anywhere?

Thanks,
Joel


joel.winarske@...
 

I wrote a recipe for openjdk-17, and moved to that.  Only issue I see is the x11 dependency.