It looks to me like your libLLVMSupport.a didn't get built or you didn't
update all of LLVM. Please make sure you update from the root of the
tree with the command:
cvs update -ARPd
Reid.
On Sat, 2006-06-24 at 13:16 +0100, Lexington Luthor
wrote:> Hi,
>
> While attempting to build the LLVM code from CVS today using gcc 4.1, I
> encountered the following error. Any idea how to proceed with the build?
>
> llvm[2]: Linking Debug executable llvm-as
>
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMAsmParser.a(llvmAsmParser.o):
> In function `__static_initialization_and_destruction_0':
> /home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133: undefined
> reference to `llvm::IncludeFile::IncludeFile(void*)'
>
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o):
> In function `__static_initialization_and_destruction_0':
> /home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133: undefined
> reference to `llvm::IncludeFile::IncludeFile(void*)'
>
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o):
> In function `llvm::WriteBytecodeToFile(llvm::Module const*,
> std::basic_ostream<char, std::char_traits<char> >&,
bool)':
> /home/ll/repositories/cvs/llvm/lib/Bytecode/Writer/Writer.cpp:1224:
> undefined reference to `llvm::sys::Program::ChangeStdoutToBinary()'
>
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o):
> In function `StatisticBase':
> /home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:37:
> undefined reference to `vtable for llvm::StatisticBase'
>
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o):
> In function `~Statistic':
> /home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:73:
> undefined reference to `llvm::StatisticBase::~StatisticBase()'
> /home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:73:
> undefined reference to `llvm::StatisticBase::~StatisticBase()'
> /home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:73:
> undefined reference to `llvm::StatisticBase::~StatisticBase()'
> /home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:73:
> undefined reference to `llvm::StatisticBase::~StatisticBase()'
>
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o):(.rodata._ZTIN4llvm9StatisticIjEE[typeinfo
> for llvm::Statistic<unsigned int>]+0x10): undefined reference to
> `typeinfo for llvm::StatisticBase'
>
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(SlotCalculator.o):
> In function `__static_initialization_and_destruction_0':
> /home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133: undefined
> reference to `llvm::IncludeFile::IncludeFile(void*)'
> /home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMCore.a(AsmWriter.o):
> In function `__static_initialization_and_destruction_0':
> /home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133: undefined
> reference to `llvm::IncludeFile::IncludeFile(void*)'
> /home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMCore.a(Function.o):
> In function `__static_initialization_and_destruction_0':
> /home/ll/repositories/cvs/llvm/include/llvm/IntrinsicInst.h:321:
> undefined reference to `llvm::IncludeFile::IncludeFile(void*)'
> /home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMCore.a(InlineAsm.o):
> In function `__static_initialization_and_destruction_0':
> /home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133: undefined
> reference to `llvm::IncludeFile::IncludeFile(void*)'
>
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMCore.a(IntrinsicInst.o):
> In function `__static_initialization_and_destruction_0':
> /home/ll/repositories/cvs/llvm/include/llvm/IntrinsicInst.h:321:
> undefined reference to `llvm::IncludeFile::IncludeFile(void*)'
>
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMCore.a(Verifier.o):/home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133:
> more undefined references to `llvm::IncludeFile::IncludeFile(void*)'
follow
> collect2: ld returned 1 exit status
> make[2]: *** [/home/ll/programs/source/scm/cvs/llvm/Debug/bin/llvm-as]
> Error 1
> make[2]: Leaving directory
> `/home/ll/programs/source/scm/cvs/llvm/tools/llvm-as'
> make[1]: *** [llvm-as/.makeall] Error 2
> make[1]: Leaving directory
`/home/ll/programs/source/scm/cvs/llvm/tools'
> make: *** [all] Error 1
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20060624/315613c8/attachment.sig>