[cfe-dev] problem building wpa example

jignesh vasoya jigneshvasoya at gmail.com
Mon Jan 17 08:29:31 PST 2011


---------- Forwarded message ----------
From: jignesh vasoya <jigneshvasoya at gmail.com>
Date: Mon, Jan 17, 2011 at 9:47 PM
Subject: Re: [cfe-dev] problem building wpa example
To: arrowdodger <6yearold at gmail.com>



Hi even after changing these directories its not compiling....
Now i am getting these errors:

/.../clang//clang-wpa.cpp: In function ‘int main(int, char**)’:
/.../clang//clang-wpa.cpp:97: error: *no matching function for call to
‘clang::ASTUnit::LoadFromASTFile(const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&,
llvm::IntrusiveRefCntPtr<clang::Diagnostic>&)’*
/InternalData/project/15jan2011/llvm/tools/clang/include/clang/Frontend/ASTUnit.h:509:
note: candidates are: static clang::ASTUnit*
clang::ASTUnit::LoadFromASTFile(const std::string&,
llvm::IntrusiveRefCntPtr<clang::Diagnostic>, const
clang::FileSystemOptions&, bool, std::pair<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, const llvm::MemoryBuffer*>*,
unsigned int, bool)
/.../clang//clang-wpa.cpp:136: error: *‘AnalysisManager’ was not declared in
this scope*
/.../clang//clang-wpa.cpp:136: error: expected ‘;’ before ‘AMgr’
/.../clang//clang-wpa.cpp:146: error:* ‘TransferFuncs’ was not declared in
this scope*
/.../clang//clang-wpa.cpp:146: error: ‘TF’ was not declared in this scope
/.../clang//clang-wpa.cpp:146: error: ‘AMgr’ was not declared in this scope
/.../clang//clang-wpa.cpp:147: error: *‘MakeCFRefCountTF’ was not declared
in this scope*
/.../clang//clang-wpa.cpp:148: error: *‘ExprEngine’ was not declared in this
scope*
/.../clang//clang-wpa.cpp:148: error: expected ‘;’ before ‘Eng’
/.../clang//clang-wpa.cpp:150: error: *‘Eng’ was not declared in this scope*
/.../clang//clang-wpa.cpp:133: warning: unused variable ‘PP’
make[2]: ***
[tools/clang/examples/wpa/CMakeFiles/clang-wpa.dir/clang-wpa.cpp.o] Error 1
make[1]: *** [tools/clang/examples/wpa/CMakeFiles/clang-wpa.dir/all] Error 2
make: *** [all] Error 2




On Thu, Jan 13, 2011 at 3:08 PM, arrowdodger <6yearold at gmail.com> wrote:

> On Thu, Jan 13, 2011 at 12:12 PM, jignesh vasoya <jigneshvasoya at gmail.com>wrote:
>
>> Hi,
>> i have tried to build llvm-clang with examples but wpa(whole program
>> analysis) is not getting build.
>> it says some of the header files are not found:
>> Those header files are :
>> #include "clang/GR/PathSensitive/AnalysisManager.h"
>> #include "clang/GR/PathSensitive/ExprEngine.h"
>> #include "clang/GR/PathSensitive/TransferFuncs.h"
>> #include "clang/GR/Checkers/LocalCheckers.h"
>>
>> *
>> ___________________________________________________________________________
>> *
>>
>> -----------------------------------------------------------------------------------------------------------------------------
>>  *Jignesh Vasoya
>> CSE - IIT MADRAS*
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>> Directory layout of clang static analyzers have been changed recently. Now
> it resides in StaticAnalyzer/ dir.
>



-- 
*___________________________________________________________________________
*
-----------------------------------------------------------------------------------------------------------------------------
*
Jignesh Vasoya
CSE - IIT MADRAS
9962248684*




-- 
*___________________________________________________________________________
*
-----------------------------------------------------------------------------------------------------------------------------
*Jignesh Vasoya
CSE - IIT MADRAS
9962248684*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110117/7791bc8c/attachment.html>


More information about the cfe-dev mailing list