LLVM 2.7 build failure: no matching function for call to 'llvm::MemoryBuffer::getFile

make[4]: Entering directory `/usr/local/src/llvm-2.7/tools/clang/lib/Basic'
llvm[4]: Compiling Builtins.cpp for Release build
llvm[4]: Compiling ConvertUTF.c for Release build
llvm[4]: Compiling Diagnostic.cpp for Release build
llvm[4]: Compiling FileManager.cpp for Release build
llvm[4]: Compiling IdentifierTable.cpp for Release build
llvm[4]: Compiling SourceLocation.cpp for Release build
llvm[4]: Compiling SourceManager.cpp for Release build
SourceManager.cpp: In member function 'const llvm::MemoryBuffer*
clang::SrcMgr::ContentCache::getBuffer(clang::Diagnostic&, const
clang::SourceManager&, clang::SourceLocation, bool*) const':
SourceManager.cpp:74: error: no matching function for call to
'llvm::MemoryBuffer::getFile(const char*, std::string*, off_t, stat*)'
/usr/local/src/llvm-2.7/include/llvm/Support/MemoryBuffer.h:60: note:
candidates are: static llvm::MemoryBuffer*
llvm::MemoryBuffer::getFile(llvm::StringRef, std::string*, int64_t)
make[4]: ***
[/usr/local/src/llvm-2.7/tools/clang/lib/Basic/Release/SourceManager.o]
Error 1
make[4]: Leaving directory `/usr/local/src/llvm-2.7/tools/clang/lib/Basic'

I'm using the LLVM 2.7 release and the pre-compiled clang 2.7 on Fedora
12. Its version is:

clang version 1.1 (branches/release_27)
Target: x86_64-unknown-linux-gnu
Thread model: posix

I configured with './configure --enable-optimized
--with-clang=/usr/local/clang+llvm-2.7-x86_64-linux/bin/clang
--enable-targets=host --enable-doxygen'

Let me know if you need any additional information or if you'd like me
to try something. (Hopefully it's not a cockpit error.)

--- Vladimir

-- Vladimir G. Ivanovic http://www.leonora.org
   +1 650 450 4101 vladimir@acm.org