[LLVMdev] Build is broken, errors: too many arguments to function ‘llvm::ModulePass* llvm::createAddressSanitizerModulePass()

Alexey Samsonov vonosmas at gmail.com
Sat Jul 12 21:04:03 PDT 2014


Hi, looks like you've updated LLVM checkout, but not Clang checkout.
Generally they should be synced to the same revision number.

On Sat, Jul 12, 2014 at 2:59 PM, Yuri <yuri at rawbw.com> wrote:

> When I am trying to build rev.212880 - rev.212883, I am getting these
> errors. Buildling with gcc-4.8.2
>
> Yuri
>
> ---- errors ----
> llvm[4]: Compiling CommonOptionsParser.cpp for Release build
> /xpool/llvm/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp: In function
> ‘void addAddressSanitizerPasses(const llvm::PassManagerBuilder&,
> llvm::legacy::PassManagerBase&)’:
> /xpool/llvm/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp:187:72: error:
> too many arguments to function ‘llvm::ModulePass* llvm::
> createAddressSanitizerModulePass()’
> PM.add(createAddressSanitizerModulePass(CGOpts.SanitizerBlacklistFile));
>

This code was changed in r212505.


> ^
> In file included from /xpool/llvm/llvm/tools/clang/
> lib/CodeGen/BackendUtil.cpp:38:0:
> /xpool/llvm/llvm/include/llvm/Transforms/Instrumentation.h:68:13: note:
> declared here
>  ModulePass *createAddressSanitizerModulePass();
>              ^
> /xpool/llvm/llvm/tools/clang/lib/Lex/PTHLexer.cpp: In static member
> function ‘static clang::PTHManager* clang::PTHManager::Create(const
> string&, clang::DiagnosticsEngine&)’:
> /xpool/llvm/llvm/tools/clang/lib/Lex/PTHLexer.cpp:445:45: error: no
> matching function for call to ‘llvm::MemoryBuffer::getFile(const string&,
> std::unique_ptr<llvm::MemoryBuffer>&)’
>    if (llvm::MemoryBuffer::getFile(file, File)) {
>                                              ^
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



-- 
Alexey Samsonov
vonosmas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140712/bd88acbb/attachment.html>


More information about the llvm-dev mailing list