Thanks Alysson.
Unfortunately, those instructions don't work for me (I followed them exactly
using
a clean system) -- probably because of the recent changes
to the svn heads.
After fixing EscapeAnalysis in vmkit to use the updated
CallInst.getArgOperand interface
I hit the error below.
I was interested in using mmtk with the system (as recommended), but that
requires a llvm-gcc build (and additional
config parameters). None of this works for me despite multiple tries (32bit,
64bit, different distros of Ubuntu).
If anyone is able to build vmkit and get it to run without a segfault (for
any
distro/arch), using mmtk or the default collector/installation (as described
in the vmkit page or
Alysson's writeup) using the svn head of llvm and vmkit, please let me
know.
thanks
Z
...
llvm[1]: Compiling vmjc.cpp for Debug build
llvm[1]: Linking Debug executable vmjc
/home/zoewolk/RESEARCH/vmkit/Debug/lib/libGCMmap2.a(gcinit.o): In function
`mvm::Collector::initialise()':
/home/zoewolk/RESEARCH/vmkit/lib/Mvm/GCMmap2/gcinit.cpp:22: undefined
reference to `GCAllocator::operator new(unsigned long)'
/home/zoewolk/RESEARCH/vmkit/lib/Mvm/GCMmap2/gcinit.cpp:22: undefined
reference to `GCAllocator::GCAllocator()'
/home/zoewolk/RESEARCH/vmkit/Debug/lib/libGCMmap2.a(gcinit.o): In function
`mvm::Collector::destroy()':
/home/zoewolk/RESEARCH/vmkit/lib/Mvm/GCMmap2/gcinit.cpp:42: undefined
reference to `GCAllocator::~GCAllocator()'
/home/zoewolk/RESEARCH/vmkit/lib/Mvm/GCMmap2/gcinit.cpp:42: undefined
reference to `GCAllocator::operator delete(void*)'
collect2: ld returned 1 exit status
make[1]: *** [/home/zoewolk/RESEARCH/vmkit/Debug/bin/vmjc] Error 1
make[1]: Leaving directory `/home/zoewolk/RESEARCH/vmkit/tools/vmjc'
On Sun, Jul 4, 2010 at 6:58 PM, Alysson <aishofpf at gmail.com> wrote:
> Hi Zoe,
> maybe you've already solved your problem with VMKit configuration, but
here
> you can find a mini-tutorial
> that I've done to guide people on VMKit installation.
>
> http://www2.dcc.ufmg.br/laboratorios/llp/wiki/doku.php?id=afpf
>
> Best regards,
> Alysson
>
>
> On Wed, Jun 30, 2010 at 1:34 PM, nicolas geoffray <
> nicolas.geoffray at gmail.com> wrote:
>
>> Hi Zoe,
>>
>> Unfortunately, I don't have access to a x64 machine anymore, so I
can't
>> test that architecture on vmkit. Could you install a virtual machine on
your
>> machine that is x86_32? I know it has been successfully built and ran
on
>> x86_32 on different systems.
>>
>> Cheers,
>> Nicolas
>>
>>
>>
>> On Wed, Jun 30, 2010 at 7:49 AM, Zoe Wolk <zoewolk at gmail.com>
wrote:
>>
>>> Hi again Nicolas,
>>>
>>> Can you please tell me the output of your llvm-gcc -v
>>> and llvm-config -version?
>>> Mine is below, perhaps its because I built llvm with enable-jit?
>>>
>>> Do you have users of vmkit? ie has anyone other than
>>> the llvm team been successful at building and running
>>> vmkit?
>>>
>>> I tried on a core2 machine (albeit also karmic) and have
>>> the same problem.
>>>
>>> Can you build a fresh machine (virtual machine)
>>> using svn llvm, llvm-gcc, and vmkit successfully
>>> and send out your steps? If not, can you please send
>>> me the output of 'dpkg -l |grep ii'?
>>>
>>> thanks
>>> Z
>>>
>>> llvm-gcc -v
>>>
>>> Using built-in specs.
>>> Target: x86_64-unknown-linux-gnu
>>> Configured with: ../llvm-gcc-4.2/configure
>>> --prefix=/home/zoewolk/RESEARCH/LLVMSystem --enable-languages=c,c++
>>> --enable-checking
--enable-llvm=/home/zoewolk/RESEARCH/LLVMSystem/llvm
>>> --disable-bootstrap --disable-multilib --program-prefix=llvm-
>>> Thread model: posix
>>>
>>> llvm config.status:
>>> It was created by llvm configure 2.8svn, which was
>>> generated by GNU Autoconf 2.60. Invocation command line was
>>>
>>> $ ./configure --prefix=/home/zoewolk/RESEARCH/LLVMSystem
>>> --enable-optimized --enable-jit --enable-targets=x86,cpp
>>> --with-udis86=/home/zoewolk/RESEARCH/udis86/lib
>>> --with-llvmgccdir=/home/zoewolk/RESEARCH/LLVMSystem
>>>
>>> Linux karmic kernel 2.6.27.5 x86_64 SMP
>>> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build)
>>>
>>>
>>>
>>> On Tue, Jun 29, 2010 at 6:58 PM, Zoe Wolk <zoewolk at
gmail.com> wrote:
>>>
>>>> Hi Nicolas,
>>>> No, I built llvm-gcc myself by checking it out via svn, using
>>>> these instructions:
>>>> http://llvm.org/docs/GCCFEBuildInstrs.html
>>>> thanks
>>>> -Z
>>>>
>>>>
>>>>
>>>> > Hi Zoe
>>>> > (Please, try to reply to the same thread)
>>>> > I think you may have an old version of llvm-gcc. Did you
compile
>>>> > llvm-gcc yourself? The provided llvm-gcc binary for llvm
2.7 is
>>>> > too old for vmkit.
>>>> >
>>>> > Nicolas
>>>> >
>>>>
>>>>
>>>
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>>
>>>
>>
>> _______________________________________________
>> 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/20100706/69387ad6/attachment.html>