Build failure on x86_64

Hello!

I see the following build failure of the sources at the top of the trunk, on x86_64.

make[2]: Entering directory `/build/llvm/lib/AsmParser’
llvm[2]: Compiling LLLexer.cpp for Release build
llvm[2]: Compiling LLParser.cpp for Release build
/src/llvm/lib/AsmParser/LLParser.cpp: In member function ‘bool llvm::LLParser::ParseGlobal(const std::string&, const char*, unsigned int, bool, unsigned int)’:
/src/llvm/lib/AsmParser/LLParser.cpp:446: warning: ‘IsConstant’ may be used uninitialized in this function
llvm[2]: Compiling Parser.cpp for Release build
llvm[2]: Compiling llvmAsmParser.cpp for Release build
/src/llvm/lib/AsmParser/llvmAsmParser.y:15:29: error: ParserInternals.h: No such file or directory
/src/llvm/lib/AsmParser/llvmAsmParser.y:83: error: ‘ValID’ was not declared in this scope
/src/llvm/lib/AsmParser/llvmAsmParser.y:83: error: template argument 1 is invalid
/src/llvm/lib/AsmParser/llvmAsmParser.y:83: error: template argument 3 is invalid
/src/llvm/lib/AsmParser/llvmAsmParser.y:83: error: template argument 4 is invalid
/src/llvm/lib/AsmParser/llvmAsmParser.y:88: error: ‘ValID’ was not declared in this scope
/src/llvm/lib/AsmParser/llvmAsmParser.y:88: error: template argument 1 is invalid
/src/llvm/lib/AsmParser/llvmAsmParser.y:88: error: template argument 2 is invalid
/src/llvm/lib/AsmParser/llvmAsmParser.y:88: error: template argument 4 is invalid
/src/llvm/lib/AsmParser/llvmAsmParser.y:96: error: ‘ValID’ was not declared in this scope
/src/llvm/lib/AsmParser/llvmAsmParser.y:96: error: template argument 2 is invalid
/src/llvm/lib/AsmParser/llvmAsmParser.y:96: error: template argument 1 is invalid
/src/llvm/lib/AsmParser/llvmAsmParser.y:96: error: template argument 3 is invalid
/src/llvm/lib/AsmParser/llvmAsmParser.y:96: error: template argument 4 is invalid
/src/llvm/lib/AsmParser/llvmAsmParser.y:136: error: ‘ValID’ has not been declared

<…>

I configured the build as follows:

/src/llvm/configure --with-llvmgccdir=/install/llvm-gcc-4.2 --enable-optimized --enable-jit --prefix=/install/llvm

$ svn info
Path: .
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: 61936
Node Kind: directory
Schedule: normal
Last Changed Author: lattner
Last Changed Rev: 61934
Last Changed Date: 2009-01-08 14:28:38 -0500 (Thu, 08 Jan 2009)

$ uname -a
Linux 2.6.24-19-generic #1 SMP Fri Jul 11 21:01:46 UTC 2008 x86_64 GNU/Linux
$ cat /etc/issue
Ubuntu 8.04.1 \n \l

The above configuration has been working with earlier versions (though I am not sure of the exact version).

Is this a known issue?

Thanks,

Bharadwaj

Me too, so I removed the old AsmParser directory and re-checked it out from SVN to get the latest and the build finished OK.

Brian Watt, IBM