OpenJDK 8 and Shark

Andrew Haley aph at redhat.com
Mon Jan 5 11:08:55 UTC 2015


On 03/01/15 13:32, Andrew Johnson wrote:
> Has anyone tried to do a Shark build recently from the OpenJDK-8 sources (or one 
> of the associated ports)?  It appears to be broken on several levels:
> 
> 1) llvmHeaders.h needs to include the llvm/IR path for several of the headers.  
> I'm not sure when they moved from the top-level llvm include directory to 
> llvm/IR, but the top level directory is where llvmHeaders.h assumes that they are.
> 
> 2) What was the last version of LLVM that anyone used to build Shark?  The 
> latest gcc compiler complains about "#elif _MSC_VER" not being defined in the 
> llvm 3.4 headers.  Changing it to "#elif defined(_MSC_VER)" solves the problem.
> 
> 3) There are still compilation errors when trying to build Shark that aren't 
> present when building Zero, so obviously Zero is being built on a regular basis 
> and Shark is not.
> 
> I a mostly interested in building Shark for doing some experiments.  I am 
> assuming that Hotspot will out-perform Shark, but it would be useful getting 
> some figures to prove it.

You'll have to fix it, I'm afraid.  We discovered that LLVM was so
unstable that even minor point releases would break Shark, and LLVM's
JIT interface was substantially redesigned.  If its JIT interface is
now stable it'd be nice to fix Shark so that it's a viable OpenJDK
target again.

Andrew.


More information about the distro-pkg-dev mailing list