Shark and IcedTea7

Matthias Klose doko at ubuntu.com
Tue Aug 4 04:55:09 PDT 2009


On 03.08.2009 20:03, Andrew John Hughes wrote:
> I've forwardported the latest IcedTea6 changest to Shark to 7 and
> pushed them.  However, I haven't been able to successfully build with
> them.  The version of LLVM with which I was building was apparently
> now too old.  It seems the latest SVN may be too new:
>
> In file included from ../generated/incls/_sharkBuilder.cpp.incl:3,
>                   from
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/sharkBuilder.cpp:27:
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:
> In static member function 'static llvm::ConstantInt*
> LLVMValue::jbyte_constant(jbyte)':
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:31:
> error: 'class llvm::LLVMContext' has no member named 'getConstantInt'
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:
> In static member function 'static llvm::ConstantInt*
> LLVMValue::jint_constant(jint)':
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:39:
> error: 'class llvm::LLVMContext' has no member named 'getConstantInt'
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:
> In static member function 'static llvm::ConstantInt*
> LLVMValue::jlong_constant(jlong)':
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:47:
> error: 'class llvm::LLVMContext' has no member named 'getConstantInt'
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:
> In static member function 'static llvm::Constant*
> LLVMValue::jfloat_constant(jfloat)':
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:55:
> error: 'class llvm::LLVMContext' has no member named 'getConstantFP'
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:
> In static member function 'static llvm::Constant*
> LLVMValue::jdouble_constant(jdouble)':
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:66:
> error: 'class llvm::LLVMContext' has no member named 'getConstantFP'
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:
> In static member function 'static llvm::ConstantInt*
> LLVMValue::bit_constant(int)':
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:83:
> error: 'class llvm::LLVMContext' has no member named 'getConstantInt'
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:
> In static member function 'static llvm::ConstantInt*
> LLVMValue::intptr_constant(intptr_t)':
> /mnt/builder/shark7/openjdk-ecj/hotspot/src/share/vm/shark/llvmValue.hpp:91:
> error: 'class llvm::LLVMContext' has no member named 'getConstantInt'
> make[7]: *** [sharkCompiler.o] Error 1
>
> There was a change to the file containing getConstantInt last Thursday:
>
> ------------------------------------------------------------------------
> r77583 | evancheng | 2009-07-30 09:44:08 +0100 (Thu, 30 Jul 2009) | 4 lines
>
> I've changed the semantics of MERGE_VALUES a bit. It's now allowed to
> live until scheduling. It's deleted when the scheduler translate DAG
> nodes to machine instructions.
>
> This is currently used by X86 to handle atomic_load_add when the
> output of the node is not used. I believe there is a better solution.
> But I find MERGE_VALUES useful for selecting multi-output node when
> the dead output can be selected as a IMPLICIT_DEF.
>
> but this only seems to have altered a comment.
>
> Any ideas?  I've pushed because I assume that those working with Shark
> have been successfully building it even if I can't... :)

please check with the patch attached. It works for me building current IcedTea6.

   Matthias

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: llvm.diff
Url: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090804/2e893c1a/llvm.diff 


More information about the distro-pkg-dev mailing list