[LLVMdev] VMKit Development

Duncan Sands baldrick at free.fr
Tue Aug 23 22:36:41 PDT 2011


Hi Akshat,

> Going ahead, the llvm-ld seems to segfault (build on Linux with llvm-ld v3.0svn
> build):

try updating to latest LLVM from svn - this was fixed a day or two ago.

Ciao, Duncan.

>
> make[2]: Entering directory `/root/code/vmkit/mmtk/mmtk-j3'
> llvm[2]: Building Debug+Asserts Bytecode Module MMTKRuntime.bc
> 0  llvm-ld   0x0884c66e
> 1  llvm-ld   0x0884c3fb
> 2            0xb7891400 __kernel_sigreturn + 0
> 3  llvm-ld   0x083be9e9 llvm::isa_impl<llvm::Constant,
> llvm::Value>::doit(llvm::Value const&) + 29
> 4  llvm-ld   0x083ccba4 llvm::isa_impl_cl<llvm::Constant,
> llvm::Value*>::doit(llvm::Value const*) + 29
> 5  llvm-ld   0x083cb81c llvm::isa_impl_wrap<llvm::Constant, llvm::Value*,
> llvm::Value*>::doit(llvm::Value* const&) + 31
> 6  llvm-ld   0x083c94bf llvm::isa_impl_wrap<llvm::Constant, llvm::Use,
> llvm::Value*>::doit(llvm::Use const&) + 43
> 7  llvm-ld   0x083c5fe3 bool llvm::isa<llvm::Constant, llvm::Use>(llvm::Use
> const&) + 29
> 8  llvm-ld   0x083c1cc6 llvm::cast_retty<llvm::Constant, llvm::Use>::ret_type
> llvm::cast<llvm::Constant, llvm::Use>(llvm::Use const&) + 29
> 9  llvm-ld   0x083c04de llvm::GlobalAlias::getOperand(unsigned int) const + 70
> 10 llvm-ld   0x083de0d1 llvm::GlobalAlias::getAliasee() + 37
> 11 llvm-ld   0x083dc3c6
> 12 llvm-ld   0x083dcdb5
> 13 llvm-ld   0x083dce74 llvm::Linker::LinkModules(llvm::Module*, llvm::Module*,
> std::string*) + 64
> 14 llvm-ld   0x083d949a llvm::Linker::LinkInModule(llvm::Module*, std::string*) + 46
> 15 llvm-ld   0x083d926c llvm::Linker::LinkInFile(llvm::sys::Path const&, bool&)
> + 1524
> 16 llvm-ld   0x083d943d llvm::Linker::LinkInFiles(std::vector<llvm::sys::Path,
> std::allocator<llvm::sys::Path> > const&) + 67
> 17 llvm-ld   0x083ad740 main + 1329
> 18 libc.so.6 0xb75d3cc6 __libc_start_main + 230
> 19 llvm-ld   0x083a67c1
> Stack dump:
> 0.    Program arguments: /root/code/llvm/Debug+Asserts/bin/llvm-ld -r -o
> /root/code/vmkit/Debug+Asserts/lib/MMTKRuntime.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/ActivePlan.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Assert.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Collection.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/FinalizableProcessor.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Lock.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/MMTk_Events.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Memory.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/ObjectModel.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/ReferenceProcessor.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/RuntimeHelpers.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Scanning.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Selected.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Statistics.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Strings.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/SynchronizedCounter.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/TraceInterface.bc
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/VM.bc
> make[2]: *** [/root/code/vmkit/Debug+Asserts/lib/MMTKRuntime.bc] Segmentation fault
> make[2]: Leaving directory `/root/code/vmkit/mmtk/mmtk-j3'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/root/code/vmkit/mmtk'
> make: *** [all] Error 1
>
> Any pointers on how I can debug this?
>
> Thanks,
> Akshat
>
> On Thu, Aug 18, 2011 at 1:45 AM, Nicolas Geoffray <nicolas.geoffray at gmail.com
> <mailto:nicolas.geoffray at gmail.com>> wrote:
>
>     Hi Akshat,
>
>     Did you compile LLVM before compiling VMKit? libLLVMLinker.so is a shared
>     library from LLVM.
>
>     Cheers,
>     Nicolas
>
>     On Thu, Aug 18, 2011 at 3:42 AM, Akshat Gupta <g.akshat at gmail.com
>     <mailto:g.akshat at gmail.com>> wrote:
>
>         Hi,
>         I was just curious if VMKit development is still going on.
>
>         Also while building VMKit I am getting error at link stage:
>
>         make[1]: Entering directory `/code/vmkit/tools/vmjc'
>         llvm[1]: Linking Debug+Asserts executable vmjc
>         /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld:
>         cannot find -lLLVMLinker
>         collect2: ld returned 1 exit status
>
>         I have installed but I am not able to use the llvm linker to link this
>         application.
>         I tried using LD=llvm-ld  during make, but it does not help.
>
>         Any idea on how this can be solved?
>
>         Thanks,
>         Akshat
>         _______________________________________________
>         LLVM Developers mailing list
>         LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu> http://llvm.cs.uiuc.edu
>         http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>
>
>
> --
> Akshat Gupta
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list