VMKit build broken

Hi,

             I just thought of trying vmkit and checked out the source
from the svn repo a few minutes back. The build is failing with the
following error.

llvm[4]: Compiling CGCleanup.cpp for Release+Asserts build
CGCleanup.cpp:507:36: error: no member named 'getCaseSuccessor' in
'llvm::SwitchInst'; did you mean 'getSuccessor'?
      llvm::BranchInst::Create(si->getCaseSuccessor(0), si);
                                   ^~~~~~~~~~~~~~~~
                                   getSuccessor
/home/ganapathy/projects/llvm/include/llvm/Instructions.h:2727:15:
note: 'getSuccessor' declared here
  BasicBlock *getSuccessor(unsigned idx) const {
              ^
1 error generated.
make[4]: *** [/home/ganapathy/projects/llvm/tools/clang/lib/CodeGen/Release+Asserts/CGCleanup.o]
Error 1
make[4]: Leaving directory
`/home/ganapathy/projects/llvm/tools/clang/lib/CodeGen'
make[3]: *** [CodeGen/.makeall] Error 2
make[3]: Leaving directory `/home/ganapathy/projects/llvm/tools/clang/lib'

I have filed a bug for this as well. I might have categorised it wrong
as there was no category for vmkit there. Can someone help me with
this ? If people can give pointers, I can try to fix this as well.
Thanks

Hi Balachandran,

If this is a bug, it should be filed to clang, since you’re compiling a file located in the clang project. But it looks like your llvm tree and clang tree are not in sync. Could you svn update both and see if that fixes it?

Nicolas

Hi,

Hi,

Hi,

 Thanks, I had done an svn up on one of the sub directories and

hence it had been out of sync. But had completely missed that point.
Just did an svn up and started off the build again. Thanks

     The clang build went on fine. But subsequently, when I build
vmkit, the compilation goes through fine, but when it links and does
the binary creation, it fails with errors like this:

/bin/sh: 1: /home/ganapathy/projects/vmkit/utils/llvm-build/llvm-build:
not found
llvm[2]: Building Release+Asserts Bytecode Module MMTKRuntime.bc
make[2]: r: Command not found
make[2]: [/home/ganapathy/projects/vmkit/Release+Asserts/lib/MMTKRuntime.bc]
Error 127 (ignored)
make[2]: Leaving directory `/home/ganapathy/projects/vmkit/mmtk/mmtk-j3'
make[2]: Entering directory `/home/ganapathy/projects/vmkit/mmtk/mmtk-alloc'
llvm[2]: Constructing LLVMBuild project information.
/bin/sh: 1: /home/ganapathy/projects/vmkit/utils/llvm-build/llvm-build:
not found
llvm[2]: Building Release+Asserts Bytecode Module MMTKAlloc.bc

Can someone help with this please ? Thanks

Hi Balachandran,

Hi,

Hi,

Thanks, I had done an svn up on one of the sub directories and
hence it had been out of sync. But had completely missed that point.
Just did an svn up and started off the build again. Thanks

The clang build went on fine. But subsequently, when I build
vmkit, the compilation goes through fine, but when it links and does
the binary creation, it fails with errors like this:

/bin/sh: 1: /home/ganapathy/projects/vmkit/utils/llvm-build/llvm-build:
not found
llvm[2]: Building Release+Asserts Bytecode Module MMTKRuntime.bc
make[2]: r: Command not found
make[2]: [/home/ganapathy/projects/vmkit/Release+Asserts/lib/MMTKRuntime.bc]
Error 127 (ignored)
make[2]: Leaving directory /home/ganapathy/projects/vmkit/mmtk/mmtk-j3' make[2]: Entering directory /home/ganapathy/projects/vmkit/mmtk/mmtk-alloc’
llvm[2]: Constructing LLVMBuild project information.
/bin/sh: 1: /home/ganapathy/projects/vmkit/utils/llvm-build/llvm-build:
not found
llvm[2]: Building Release+Asserts Bytecode Module MMTKAlloc.bc

Can someone help with this please ? Thanks

I have just fixed the problem (vmkit used to use llvm-ld but llvm-ld has been replaced with llvm-link). Please try to update both llvm and vmkit repos and compile. Let me know if it worked for you!

Nicolas

Hi Nicolas,