[oe] [meta-java] rpath problem for llvm libs?

Tom Rini tom.rini at gmail.com
Sat Dec 3 15:42:36 UTC 2011


On Fri, Dec 2, 2011 at 2:46 AM, Koen Kooi <koen at dominion.thruhere.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I installed openjdk + openjdk-shark on my target and I get:
>
> root at beaglebone:~# java
> dl failure on line 696Error: failed
> /usr/lib/jvm/java-6-openjdk/jre/lib/arm/shark/libjvm.so, because
> libLLVMARMCodeGen.so: cannot open shared object file: No such file or directory
>
> The 'fix' I used:
>
> root at beaglebone:~# for i in /usr/lib/llvm2.9/libLLVM*.so ; do ln -sf $i
> /usr/lib ; done
>
> root at beaglebone:~# java
> Usage: java [-options] class [args...]
>           (to execute a class)
>
> I came up with a number of workarounds, but I'm not sure which is best:
>
> 1) do the for ; ln thing in a postinst
> 2) have llvm install into ${libdir} instead of ${libdir}${LLVM_RELEASE}
> 3) Use u-a for the libs
> 4) add rpaths
> 5) convince people java is evil and have them switch to C
>
> I have a preference for 5), but I suspect Henning would like a different
> solution :)

Well, what's Fedora or Debian/Ubuntu look like here?

-- 
Tom




More information about the Openembedded-devel mailing list