Error on clang::CodeGen::CGBuilderTy while building clang from svn trunk

error: ‘clang::CodeGen::CGBuilderTy’ has no member named ‘DisableDebugLocations’
Builder.DisableDebugLocations();
^
llvm/tools/clang/lib/CodeGen/CGBlocks.cpp:1174:13: error: ‘clang::CodeGen::CGBuilderTy’ has no member named ‘EnableDebugLocations’
Builder.EnableDebugLocations();
^

And I’m building the svn revision

$ svn info
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 186794
Node Kind: directory
Schedule: normal
Last Changed Author: rafael
Last Changed Rev: 186792
Last Changed Date: 2013-07-21 14:58:07 +0200 (dom, 21 lug 2013)

with the following configuration

CXX=/PATH/TO/LOCAL/bin/g++
CC=/PATH/TO/LOCAL/bin/gcc
LDFLAGS="-L/PATH/TO/LOCAL/lib/gcc/x86_64-unknown-linux-gnu/lib64/"
…/llvm/configure
–prefix=/PATH/TO/INSTALLATION/
–enable-optimized
–enable-cxx11
–enable-assertions
–enable-shared
–enable-doxygen
–enable-optimized
–enable-debug-runtime
–enable-ltdl-install
–enable-gold
–enable-plugins
–with-binutils-include=/usr/include

And I’m under linux 64 bit as you can guess. I replaced the full path for given directories with uppercase words to simplify the post above, but basically what was working before, doesn’t work right now.

I’m actually building out of tree of course with the following project in my trunk copy:

  • llvm
  • clang ( cfe )
  • clang-tools-extra
  • compiler-rt
  • lldb

any idea about what is wrong with this ?

Your revisions are probably out of sync. Updating the LLVM checkout won’t
update the clang checkout or vice-versa.

John.