On Fri, Aug 26, 2011 at 1:08 AM, Akshat Gupta <span dir="ltr"><<a href="mailto:g.akshat@gmail.com">g.akshat@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>Here are my build details.<br>OS:<br>Linux scop 2.6.38-gentoo-r6 #1 SMP Sat Jul 9 13:07:18 EST 2011 i686 Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz GenuineIntel GNU/Linux<br>Machine: VirtualBox (32 bit)<br><br>Configure (VMKit):<br>
./configure --with-llvmsrc=/root/code/llvm --with-llvmobj=~/code/llvm --with-gnu-classpath-libs=/usr/gnu-classpath-0.98/lib/classpath LD=/usr/bin/llvm-ld --with-gnu-classpath-glibj=/usr/gnu-classpath-0.98/share/classpath/glibj.zip<br>
</blockquote><div><br></div><div>Why do you need to specify LD? Also are you compiling vmkit with clang or llvm-gcc? (Note that you *need* an llvm-based C++ compiler to build vmkit).</div><div><br></div><div>Nicolas</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>For LLVM just did a ./configure and make; make install<br><br>Hope this helps.<br>Thanks,<br>Akshat<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Aug 25, 2011 at 3:40 AM, Nicolas Geoffray <span dir="ltr"><<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Akshat,<br><br><div>Could you give us your configuration? CPU/OS? How did you configure and build llvm and vmkit?</div>
<div><br></div><font color="#888888"><div>Nicolas</div></font><div><div></div><div><div><br><div class="gmail_quote">On Thu, Aug 25, 2011 at 4:12 AM, Akshat Gupta <span dir="ltr"><<a href="mailto:g.akshat@gmail.com" target="_blank">g.akshat@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>I tried building again with the latest llvm.<br>I am getting another seg fault:<br><br>make[2]: Entering directory `/root/code/vmkit/mmtk/java'<br>
Buildfile: /root/code/vmkit/mmtk/java/build.xml<br><br>main:<br>
[javac] /root/code/vmkit/mmtk/java/build.xml:4: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds<br> [javac] Compiling 1 source file to /root/code/vmkit/mmtk/java/classes<br>
[jar] Building jar: /root/code/vmkit/mmtk/java/mmtk-vmkit.jar<br><br>BUILD SUCCESSFUL<br>Total time: 3 seconds<br>llvm[2]: Building Debug+Asserts mmtk-vmkit.jar all<br>0 vmjc 0x0904fd0a<br>1 vmjc 0x0904fa97<br>
2 0xb78e7400 __kernel_sigreturn + 0<br>3 libstdc++.so.6 0xb7835532 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, unsigned int, std::allocator<char> const&) + 50<br>
4 vmjc 0x08653213 llvm::StringRef::str() const + 91<br>5 vmjc 0x09064883 llvm::Twine::str() const + 131<br>6 vmjc 0x087092ca llvm::Triple::Triple(llvm::Twine const&) + 36<br>7 vmjc 0x0889eb47 llvm::X86_MC::ParseX86Triple(llvm::StringRef) + 59<br>
8 vmjc 0x0889efe4 llvm::X86_MC::createX86MCSubtargetInfo(llvm::StringRef, llvm::StringRef, llvm::StringRef) + 45<br>9 vmjc 0x0869d5b8 j3::JavaAOTCompiler::JavaAOTCompiler(std::string const&) + 1144<br>
10 vmjc 0x08652435 main + 216<br>11 libc.so.6 0xb7614cc6 __libc_start_main + 230<br>12 vmjc 0x08651cc1<br>make[2]: *** [all] Segmentation fault<br><br>Anything that I am overlooking.<br>Thanks,<br>
Akshat<br><br>Thanks,<br>Akshat<div><div></div><div><br><br><div class="gmail_quote">On Wed, Aug 24, 2011 at 1:36 AM, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Akshat,<br>
<div><br>
> Going ahead, the llvm-ld seems to segfault (build on Linux with llvm-ld v3.0svn<br>
> build):<br>
<br>
</div>try updating to latest LLVM from svn - this was fixed a day or two ago.<br>
<br>
Ciao, Duncan.<br>
<div><div></div><div><br>
><br>
> make[2]: Entering directory `/root/code/vmkit/mmtk/mmtk-j3'<br>
> llvm[2]: Building Debug+Asserts Bytecode Module MMTKRuntime.bc<br>
> 0 llvm-ld 0x0884c66e<br>
> 1 llvm-ld 0x0884c3fb<br>
> 2 0xb7891400 __kernel_sigreturn + 0<br>
> 3 llvm-ld 0x083be9e9 llvm::isa_impl<llvm::Constant,<br>
> llvm::Value>::doit(llvm::Value const&) + 29<br>
> 4 llvm-ld 0x083ccba4 llvm::isa_impl_cl<llvm::Constant,<br>
> llvm::Value*>::doit(llvm::Value const*) + 29<br>
> 5 llvm-ld 0x083cb81c llvm::isa_impl_wrap<llvm::Constant, llvm::Value*,<br>
> llvm::Value*>::doit(llvm::Value* const&) + 31<br>
> 6 llvm-ld 0x083c94bf llvm::isa_impl_wrap<llvm::Constant, llvm::Use,<br>
> llvm::Value*>::doit(llvm::Use const&) + 43<br>
> 7 llvm-ld 0x083c5fe3 bool llvm::isa<llvm::Constant, llvm::Use>(llvm::Use<br>
> const&) + 29<br>
> 8 llvm-ld 0x083c1cc6 llvm::cast_retty<llvm::Constant, llvm::Use>::ret_type<br>
> llvm::cast<llvm::Constant, llvm::Use>(llvm::Use const&) + 29<br>
> 9 llvm-ld 0x083c04de llvm::GlobalAlias::getOperand(unsigned int) const + 70<br>
> 10 llvm-ld 0x083de0d1 llvm::GlobalAlias::getAliasee() + 37<br>
> 11 llvm-ld 0x083dc3c6<br>
> 12 llvm-ld 0x083dcdb5<br>
> 13 llvm-ld 0x083dce74 llvm::Linker::LinkModules(llvm::Module*, llvm::Module*,<br>
> std::string*) + 64<br>
> 14 llvm-ld 0x083d949a llvm::Linker::LinkInModule(llvm::Module*, std::string*) + 46<br>
> 15 llvm-ld 0x083d926c llvm::Linker::LinkInFile(llvm::sys::Path const&, bool&)<br>
> + 1524<br>
> 16 llvm-ld 0x083d943d llvm::Linker::LinkInFiles(std::vector<llvm::sys::Path,<br>
> std::allocator<llvm::sys::Path> > const&) + 67<br>
> 17 llvm-ld 0x083ad740 main + 1329<br>
> 18 libc.so.6 0xb75d3cc6 __libc_start_main + 230<br>
> 19 llvm-ld 0x083a67c1<br>
> Stack dump:<br>
> 0. Program arguments: /root/code/llvm/Debug+Asserts/bin/llvm-ld -r -o<br>
> /root/code/vmkit/Debug+Asserts/lib/MMTKRuntime.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/ActivePlan.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Assert.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Collection.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/FinalizableProcessor.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Lock.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/MMTk_Events.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Memory.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/ObjectModel.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/ReferenceProcessor.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/RuntimeHelpers.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Scanning.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Selected.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Statistics.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/Strings.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/SynchronizedCounter.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/TraceInterface.bc<br>
> /root/code/vmkit/mmtk/mmtk-j3/Debug+Asserts/VM.bc<br>
> make[2]: *** [/root/code/vmkit/Debug+Asserts/lib/MMTKRuntime.bc] Segmentation fault<br>
> make[2]: Leaving directory `/root/code/vmkit/mmtk/mmtk-j3'<br>
> make[1]: *** [all] Error 1<br>
> make[1]: Leaving directory `/root/code/vmkit/mmtk'<br>
> make: *** [all] Error 1<br>
><br>
> Any pointers on how I can debug this?<br>
><br>
> Thanks,<br>
> Akshat<br>
><br>
> On Thu, Aug 18, 2011 at 1:45 AM, Nicolas Geoffray <<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a><br>
</div></div><div>> <mailto:<a href="mailto:nicolas.geoffray@gmail.com" target="_blank">nicolas.geoffray@gmail.com</a>>> wrote:<br>
><br>
> Hi Akshat,<br>
><br>
> Did you compile LLVM before compiling VMKit? libLLVMLinker.so is a shared<br>
> library from LLVM.<br>
><br>
> Cheers,<br>
> Nicolas<br>
><br>
> On Thu, Aug 18, 2011 at 3:42 AM, Akshat Gupta <<a href="mailto:g.akshat@gmail.com" target="_blank">g.akshat@gmail.com</a><br>
</div><div>> <mailto:<a href="mailto:g.akshat@gmail.com" target="_blank">g.akshat@gmail.com</a>>> wrote:<br>
><br>
> Hi,<br>
> I was just curious if VMKit development is still going on.<br>
><br>
> Also while building VMKit I am getting error at link stage:<br>
><br>
> make[1]: Entering directory `/code/vmkit/tools/vmjc'<br>
> llvm[1]: Linking Debug+Asserts executable vmjc<br>
> /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld:<br>
> cannot find -lLLVMLinker<br>
> collect2: ld returned 1 exit status<br>
><br>
> I have installed but I am not able to use the llvm linker to link this<br>
> application.<br>
> I tried using LD=llvm-ld during make, but it does not help.<br>
><br>
> Any idea on how this can be solved?<br>
><br>
> Thanks,<br>
> Akshat<br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
</div>> <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <mailto:<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<div><div></div><div>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Akshat Gupta<br>
><br>
><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br><font color="#888888">Akshat Gupta<br>
</font><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br><font color="#888888">Akshat Gupta<br>
</font></blockquote></div><br>