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

Vladimir G. Ivanovic vladimir at acm.org
Tue Apr 27 11:33:24 PDT 2010


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 at acm.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100427/d585828d/attachment.sig>


More information about the llvm-dev mailing list