Broken build on OSX

Hello,

I have been toying with lldb on and off for a couple of month. For the first time today I have updated llvm, clang and lldb from svn and I now get tons of errors from Xcode.
Is there a stable revision I can get for the projects?
Any change to see a fix soon?

Thanks in advance,

S.

PS: build errors:

/Users/meeloo/work/llvm/tools/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
/Users/meeloo/work/llvm/tools/lldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp:50:25: No member named ‘countTrailingZeros’ in namespace ‘llvm’
/Users/meeloo/work/llvm/tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
/Users/meeloo/work/llvm/tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp:21:10: ‘llvm/MC/MCRelocationInfo.h’ file not found
/Users/meeloo/work/llvm/tools/lldb/source/Expression/IRExecutionUnit.cpp
/Users/meeloo/work/llvm/tools/lldb/source/Expression/IRExecutionUnit.cpp:304:30: Allocating an object of abstract class type ‘lldb_private::IRExecutionUnit::MemoryManager’
/Users/meeloo/work/llvm/tools/lldb/llvm/include/llvm/ExecutionEngine/RuntimeDyld.h:68:16: Unimplemented pure virtual method ‘applyPermissions’ in ‘MemoryManager’
/Users/meeloo/work/llvm/tools/lldb/llvm/include/llvm/ExecutionEngine/JITMemoryManager.h:120:20: Unimplemented pure virtual method ‘startExceptionTable’ in ‘MemoryManager’
/Users/meeloo/work/llvm/tools/lldb/llvm/include/llvm/ExecutionEngine/JITMemoryManager.h:125:16: Unimplemented pure virtual method ‘endExceptionTable’ in ‘MemoryManager’
/Users/meeloo/work/llvm/tools/lldb/llvm/include/llvm/ExecutionEngine/JITMemoryManager.h:132:16: Unimplemented pure virtual method ‘deallocateExceptionTable’ in ‘MemoryManager’
/Users/meeloo/work/llvm/tools/lldb/source/Expression/ASTResultSynthesizer.cpp
/Users/meeloo/work/llvm/tools/lldb/source/Expression/ASTResultSynthesizer.cpp:360:48: Too few arguments to function call, expected 9, have 8
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/Decl.h:757:3: ‘Create’ declared here
/Users/meeloo/work/llvm/tools/lldb/source/Expression/ASTResultSynthesizer.cpp:380:48: Too few arguments to function call, expected 9, have 8
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/Decl.h:757:3: ‘Create’ declared here
/Users/meeloo/work/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp
/Users/meeloo/work/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp:1832:74: Too few arguments to function call, expected 11, have 10
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/DeclCXX.h:1594:3: ‘Create’ declared here
/Users/meeloo/work/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp:1861:70: Too few arguments to function call, expected 11, have 10
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/DeclCXX.h:1594:3: ‘Create’ declared here
/Users/meeloo/work/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp:1889:52: Too few arguments to function call, expected 10, have 9
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/Decl.h:1178:3: ‘Create’ declared here
/Users/meeloo/work/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp:2066:46: Too few arguments to function call, expected 9, have 8
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/Decl.h:757:3: ‘Create’ declared here
/Users/meeloo/work/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp:2662:68: Too few arguments to function call, expected 10, have 9
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/Decl.h:1178:3: ‘Create’ declared here
/Users/meeloo/work/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp:2830:56: Too few arguments to function call, expected 10, have 9
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/Decl.h:1178:3: ‘Create’ declared here
/Users/meeloo/work/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp:5536:34: Too few arguments to function call, expected 10, have 9
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/Decl.h:1178:3: ‘Create’ declared here
/Users/meeloo/work/llvm/tools/lldb/source/Expression/ClangASTSource.cpp
/Users/meeloo/work/llvm/tools/lldb/source/Expression/ClangASTSource.cpp:480:52: No member named ‘containsDecl’ in ‘clang::DeclContext’
/Users/meeloo/work/llvm/tools/lldb/source/Expression/ClangASTSource.cpp:485:42: No member named ‘containsDecl’ in ‘clang::DeclContext’
/Users/meeloo/work/llvm/tools/lldb/source/Expression/ClangASTSource.cpp:1728:55: Too few arguments to function call, expected 9, have 8
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/Decl.h:757:3: ‘Create’ declared here
/Users/meeloo/work/llvm/tools/lldb/source/Expression/ClangASTSource.cpp:1782:63: Too few arguments to function call, expected 10, have 9
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/Decl.h:1178:3: ‘Create’ declared here
/Users/meeloo/work/llvm/tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp
/Users/meeloo/work/llvm/tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeVendor.cpp:406:64: Too few arguments to function call, expected 10, have 9
/Users/meeloo/work/llvm/tools/lldb/llvm/tools/clang/include/clang/AST/Decl.h:1178:3: ‘Create’ declared here

Hi Sebastien,

That's the risk of living on the bleeding edge :slight_smile: Normally, this kind of
failures appears rarely and are pickup up quickly by the buildbots. From
there, you have 2 options :
- wait a bit and run a svn up on llvm+clang+lldb...
- propose a patch to fix it

Another option is to checkout the release tag (3.3rc2).

Cheers,

Hi Sebastien,

The build errors that you mention were addressed in r181387 of lldb. Basically, lldb was out of step with changes to llvm (i.e. pure virtuals in JITMemoryManager.h and RuntimeDyld.h). I’m guessing that the build will work for you if you have the same svn revision of llvm, clang, and lldb, and a clean checkout. If not, I suspect that r181387 will point you in the direction of a fix,

  • Ashok

If using Xcode to build, you may have to manually remove the llvm-build directory if updating llvm/clang in my experience.

Hi Sebastien,

The build errors that you mention were addressed in r181387 of lldb. Basically, lldb was out of step with changes to llvm (i.e. pure virtuals in JITMemoryManager.h and RuntimeDyld.h). I’m guessing that the build will work for you if you have the same svn revision of llvm, clang, and lldb, and a clean checkout. If not, I suspect that r181387 will point you in the direction of a fix,

  • Ashok