[LLVMdev] Build errors for vmkit

Michael Wu mmwu at Princeton.EDU
Sat Oct 17 10:16:19 PDT 2009


Hi,

    I can't seem to get VMKit to compile correctly. I'm on a 64 bit 
Jaunty system. I compiled llvm and llvm-gcc from the subversion source 
no problem, but when I try to compile VMKit I get some issue with 
GCAllocator:

/home/mmwu/Download/llvm$ ./configure
/home/mmwu/Download/llvm$ make ENABLE_OPTIMIZED=1
/home/mmwu/Download/llvm$ make ENABLE_OPTIMIZED=1 install

...

/home/mmwu/Download/$ sudo apt-get install classpath

...

/home/mmwu/Download/vmkit$ ./configure 
--with-llvmsrc=/home/mmwu/Download/llvm 
--with-llvmobj=/home/mmwu/Download/llvm 
--with-gnu-classpath-glibj=/usr/share/classpath/glibj.zip 
--with-gnu-classpath-libs=/usr/lib/classpath
/home/mmwu/Download/vmkit$ make ENABLE_OPTIMIZED=1

make[2]: Entering directory `/home/mmwu/Download/vmkit/tools/vmkit'
llvm[2]: Linking Release executable vmkit (without symbols)
/home/mmwu/Download/vmkit/Release/lib/libGCMmap2.a(gcinit.o): In 
function `mvm::Collector::destroy()':
gcinit.cpp:(.text+0x34): undefined reference to 
`GCAllocator::~GCAllocator()'
gcinit.cpp:(.text+0x3c): undefined reference to `GCAllocator::operator 
delete(void*)'
/home/mmwu/Download/vmkit/Release/lib/libGCMmap2.a(gcinit.o): In 
function `mvm::Collector::initialise()':
gcinit.cpp:(.text+0x216): undefined reference to `GCAllocator::operator 
new(unsigned long)'
gcinit.cpp:(.text+0x221): undefined reference to 
`GCAllocator::GCAllocator()'
gcinit.cpp:(.text+0x2d5): undefined reference to `GCAllocator::operator 
delete(void*)'
collect2: ld returned 1 exit status
make[2]: *** [/home/mmwu/Download/vmkit/Release/bin/vmkit] Error 1
make[2]: Leaving directory `/home/mmwu/Download/vmkit/tools/vmkit'
make[1]: *** [vmkit/.makeall] Error 2
make[1]: Leaving directory `/home/mmwu/Download/vmkit/tools'
make: *** [all] Error 1

I would really appreciate any help I could get.

Thanks,
Michael



More information about the llvm-dev mailing list