Error building hotspot with shark/zero

Alejandro E Murillo alejandro.murillo at oracle.com
Mon Feb 3 17:05:10 PST 2014


I believe this has to do with this bug: 
https://bugs.openjdk.java.net/browse/JDK-8024648
there seems to be a fix for this, but  unfortunately the patch hasn't 
been supplied

Thanks

Alejandro

On 2/3/2014 5:08 PM, Christian Thalinger wrote:
> I haven’t tried LLVM 3.4 yet (compiling it right now) but it seems some method signatures have changed. Let’s see if I can make it work...
>
> On Feb 3, 2014, at 11:50 AM, Neale Ferguson <neale at sinenomine.net> wrote:
>
>> Hi,
>> I'm attempting build openJDK7 with SHARK/ZERO and am encountering the following when using llvm-3.4:
>>
>> In file included from /home/neale/openjdk7/hotspot/src/share/vm/shark/llvmValue.hpp:30,
>>                  from /home/neale/openjdk7/hotspot/src/share/vm/shark/sharkBlock.cpp:29:
>> /home/neale/openjdk7/hotspot/src/share/vm/shark/sharkContext.hpp: In member function 'llvm::Constant* SharkContext::get_external(const char*, const llvm::FunctionType*)':
>> /home/neale/openjdk7/hotspot/src/share/vm/shark/sharkContext.hpp:72: error: invalid conversion from 'const llvm::FunctionType*' to 'llvm::FunctionType*'
>> /home/neale/openjdk7/hotspot/src/share/vm/shark/sharkContext.hpp:72: error:   initializing argument 2 of 'llvm::Constant* llvm::Module::getOrInsertFunction(llvm::StringRef, llvm::FunctionType*)'
>>
>> line 72 looks like:
>>
>>   llvm::Constant* get_external(const char*               name,
>>                                const llvm::FunctionType* sig) {
>>     return module()->getOrInsertFunction(name, sig);
>>   }
>>
>> Before I go too far with this I thought I'd find out if this was a known issue. I note there were other issues getting this far, like where 3.4 keeps its include files (in /usr/include/llvm/IR/...) so there are probably other changes of significance.
>>
>> Neale

-- 
Alejandro



More information about the hotspot-dev mailing list