[LLVMdev] VMKIT: Assertion at build

Nicolas Geoffray nicolas.geoffray at gmail.com
Thu Jun 7 08:12:06 PDT 2012


On Thu, Jun 7, 2012 at 4:27 PM, Foivos S. Zakkak <foivos at zakkak.net> wrote:

>  Hi Nicolas,
>
> I thought MMTk is written in java and it is compiled by javac.
>

It is compiled by javac to produce Java bytecode. Then vmkit runs the
initialization code of MMTk (through the JIT) and generates the binary code
through llvm.


> retried a clean build with JIT enabled
>
> llvm configuration
> ../../llvm/configure --enable-doxygen --enable-optimized --enable-jit
>
>
> vmkit configuration
> ../../llvm/vmkit/configure --with-llvmsrc=/home1/public/zakkak/llvm/
> --with-llvmobj=/home1/public/zakkak/java/llvm/
> --with-gnu-classpath-glibj=/home1/public/zakkak/java/classpath-0.97.2/lib/glibj.zip--with-gnu-classpath-libs=/home1/public/zakkak/java/classpath-0.97.2/lib/
>
> and the problem persists
>

Could you do make ENABLE_OPTIMIZED=1 clean and then make ENABLE_OPTIMIZED=1
? Some files may have not been generated because of the missing JIT and
that screwed up the Makefile.

Nicolas


>
>
> Foivos
>
>
> On 07/06/12 16:54, Nicolas Geoffray wrote:
>
> Hi Fovios,
>
> On Thu, Jun 7, 2012 at 3:51 PM, Foivos <fivosz at gmail.com> wrote:
>
>>  Hi,
>>
>> My machine is running Ubuntu server 64-bit
>> And the revision from the trunk is 158095 for llvm, clang and vmkit
>>
>> llvm configuration
>> ../../llvm/configure --enable-doxygen --enable-optimized --disable-jit
>>
>
>  Why do you disable the JIT? VMKit needs it to compile MMTk.
>
>  Cheers,
> Nicolas
>
>
>>  vmkit configuration
>> ../../llvm/vmkit/configure --with-llvmsrc=/home1/public/zakkak/llvm/
>> --with-llvmobj=/home1/public/zakkak/java/llvm/
>> --with-gnu-classpath-glibj=/home1/public/zakkak/java/classpath-0.97.2/lib/glibj.zip--with-gnu-classpath-libs=/home1/public/zakkak/java/classpath-0.97.2/lib/
>>
>> Thank you
>> Foivos
>>
>>
>> On 06/06/12 22:35, Nicolas Geoffray wrote:
>>
>> Hi Fivos,
>>
>>  I cannot reproduce on my machine (ubuntu 64bit, clang/llvm/vmkit on svn
>> trunk). What's your configuration?
>>
>>  Cheers,
>> Nicolas
>>
>>  On Tue, Jun 5, 2012 at 3:08 PM, Fivos <fivosz at gmail.com> wrote:
>>
>>> Hello,
>>>
>>> after completing the build i get
>>>
>>> ...
>>> BUILD SUCCESSFUL
>>> Total time: 5 seconds
>>> llvm[2]: Building Release+Asserts mmtk-vmkit.jar all
>>> vmjc: /home1/public/zakkak/llvm/lib/VMCore/Type.cpp:747: static
>>> llvm::PointerType *llvm::PointerType::get(llvm::Type *, unsigned int):
>>> Assertion `EltTy && "Can't get a pointer to <null> type!"' failed.
>>> 0  vmjc            0x0000000000d24e1f
>>> 1  vmjc            0x0000000000d25334
>>> 2  libpthread.so.0 0x00002b398f36b8f0
>>> 3  libc.so.6       0x00002b3990178a75 gsignal + 53
>>> 4  libc.so.6       0x00002b399017c5c0 abort + 384
>>> 5  libc.so.6       0x00002b3990171941 __assert_fail + 241
>>> 6  vmjc            0x0000000000cd7fde
>>> llvm::PointerType::get(llvm::Type*, unsigned int) + 478
>>> 7  vmjc            0x0000000000564317
>>> j3::J3Intrinsics::init(llvm::Module*) + 199
>>> 8  vmjc            0x000000000054f86d
>>> j3::JavaAOTCompiler::JavaAOTCompiler(std::string const&) + 1597
>>> 9  vmjc            0x0000000000502b8d main + 141
>>> 10 libc.so.6       0x00002b3990163c4d __libc_start_main + 253
>>> 11 vmjc            0x0000000000502a39
>>> Aborted
>>> make[2]: *** [all] Error 134
>>> make[2]: Leaving directory
>>> `/home1/public/zakkak/java/vmkit_build/mmtk/java'
>>> make[1]: *** [all] Error 1
>>> make[1]: Leaving directory `/home1/public/zakkak/java/vmkit_build/mmtk'
>>> make: *** [all] Error 1
>>>
>>> any ideas, how to fix this?
>>>
>>> Thank you
>>> Foivos
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120607/6d7bbdb0/attachment.html>


More information about the llvm-dev mailing list