[cfe-dev] Error building clang

Richard Smith richard at metafoo.co.uk
Thu Aug 30 07:20:00 PDT 2012


On Wed, Aug 29, 2012 at 3:41 PM, Edward Diener <
eldlistmailingz at tropicsoft.com> wrote:

> Getting the latest LLVM and clang, when trying to 'make' I get:
>
> /home/suseldiener/dev/clang/**build/tools/clang/utils/**
> TableGen/Debug+Asserts/**TableGen.o: In function `llvm::**SmallVectorTemplateBase<char
> const*, true>::grow(unsigned long)':
> /opt/LinuxShare/VCS/svn16/**llvm_trunk/include/llvm/ADT/**SmallVector.h:334:
> undefined reference to `llvm::SmallVectorBase::grow_**pod(unsigned long,
> unsigned long)'
>

This suggests your LLVM libraries are from revision 162331 or later, but
your LLVM headers are from an earlier revision.
[...]

I am under SUSE 11.4. The clang version is clang version 3.2 (trunk
> 161314). The gcc version is 4.5.1. Any ideas why I am seeing the error
> above ?
>

You have some kind of version mismatch between your LLVM headers and LLVM
libraries. Are you building clang and LLVM together at the same SVN
revision?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120830/b0ba4d69/attachment.html>


More information about the cfe-dev mailing list