[LLVMdev] Port succesful

Žiga Osolin ziga.osolin at gimb.org
Sun Nov 5 01:29:47 PST 2006


Anton Korobeynikov pravi:
> Hello, Ziga.
>   
>   
>> VCPP throws a warning that class is previously declared as struct. 
>> Either it must be struct everywhere or class everywhere.
>> Declaration uses struct, while the definition uses class.
>>     
> Nice! However it will be better to do the opposite: have it struct
> everywhere. I'll fix this.
>   
>> I think VCPP had some problems with it this. Otherwise, all methods 
>> declarations are in one line, i don't know why this one woudn't be:)
>>     
> :) LLVM source files has fixed width of no more, than 80 cols. That's
> why the line was broken. Could you please check, whether your patch for
> this is necessary?
>
>   
I tried rebuilding and found out that patch for this is not necesary. So 
feel free to toss it away.
>> Ok, I am sending the logs for all main projects. All others have minumum 
>> to no warnings.
>>     
> Ok.
>
>   
I tried to build bugpoint and I got this linker errors:

BugDriver.obj : error LNK2019: unresolved external symbol "public: bool 
__thiscall llvm::BugDriver::runManyPasses(class std::vector<class 
llvm::PassInfo const *,class std::allocator<class llvm::PassInfo const 
*> > const &)" 
(?runManyPasses at BugDriver@llvm@@QAE_NABV?$vector at PBVPassInfo@llvm@@V?$allocator at PBVPassInfo@llvm@@@std@@@std@@@Z) 
referenced in function "public: bool __thiscall 
llvm::BugDriver::run(void)" (?run at BugDriver@llvm@@QAE_NXZ)
bugpoint.obj : error LNK2001: unresolved external symbol "public: 
virtual bool __thiscall llvm::CallTargetFinder::runOnModule(class 
llvm::Module &)" (?runOnModule at CallTargetFinder@llvm@@UAE_NAAVModule at 2@@Z)
bugpoint.obj : error LNK2001: unresolved external symbol "public: 
virtual void __thiscall llvm::CallTargetFinder::getAnalysisUsage(class 
llvm::AnalysisUsage &)const " 
(?getAnalysisUsage at CallTargetFinder@llvm@@UBEXAAVAnalysisUsage at 2@@Z)
bugpoint.obj : error LNK2001: unresolved external symbol "public: 
virtual void __thiscall llvm::CallTargetFinder::print(class 
std::basic_ostream<char,struct std::char_traits<char> > &,class 
llvm::Module const *)const " 
(?print at CallTargetFinder@llvm@@UBEXAAV?$basic_ostream at DU?$char_traits at D@std@@@std@@PBVModule at 2@@Z)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: 
static class llvm::GCC * __cdecl llvm::GCC::create(class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &,class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > &)" 
(?create at GCC@llvm@@SAPAV12 at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AAV34@@Z) 
referenced in function "private: bool __thiscall 
llvm::BugDriver::initializeExecutionEnvironment(void)" 
(?initializeExecutionEnvironment at BugDriver@llvm@@AAE_NXZ)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: 
static class llvm::AbstractInterpreter * __cdecl 
llvm::AbstractInterpreter::createLLI(class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > &,class std::vector<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> >,class std::allocator<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > > > const *)" 
(?createLLI at AbstractInterpreter@llvm@@SAPAV12 at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AAV34 at PBV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@4@@Z) 
referenced in function "private: bool __thiscall 
llvm::BugDriver::initializeExecutionEnvironment(void)" 
(?initializeExecutionEnvironment at BugDriver@llvm@@AAE_NXZ)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: 
static class llvm::LLC * __cdecl 
llvm::AbstractInterpreter::createLLC(class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > &,class std::vector<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> >,class std::allocator<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > > > const *)" 
(?createLLC at AbstractInterpreter@llvm@@SAPAVLLC at 2@ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AAV45 at PBV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@5@@Z) 
referenced in function "private: bool __thiscall 
llvm::BugDriver::initializeExecutionEnvironment(void)" 
(?initializeExecutionEnvironment at BugDriver@llvm@@AAE_NXZ)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: 
static class llvm::AbstractInterpreter * __cdecl 
llvm::AbstractInterpreter::createJIT(class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > &,class std::vector<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> >,class std::allocator<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > > > const *)" 
(?createJIT at AbstractInterpreter@llvm@@SAPAV12 at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AAV34 at PBV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@4@@Z) 
referenced in function "private: bool __thiscall 
llvm::BugDriver::initializeExecutionEnvironment(void)" 
(?initializeExecutionEnvironment at BugDriver@llvm@@AAE_NXZ)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: 
static class llvm::CBE * __cdecl 
llvm::AbstractInterpreter::createCBE(class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &,class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > &,class std::vector<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> >,class std::allocator<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > > > const *)" 
(?createCBE at AbstractInterpreter@llvm@@SAPAVCBE at 2@ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AAV45 at PBV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@5@@Z) 
referenced in function "private: bool __thiscall 
llvm::BugDriver::initializeExecutionEnvironment(void)" 
(?initializeExecutionEnvironment at BugDriver@llvm@@AAE_NXZ)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: 
int __thiscall llvm::GCC::MakeSharedObject(class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > const &,enum llvm::GCC::FileType,class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > &,class std::vector<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> >,class std::allocator<class 
std::basic_string<char,struct std::char_traits<char>,class 
std::allocator<char> > > > const &)" 
(?MakeSharedObject at GCC@llvm@@QAEHABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@W4FileType at 12@AAV34 at ABV?$vector at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@V?$allocator at V?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@@2@@4@@Z) 
referenced in function "public: class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > __thiscall 
llvm::BugDriver::compileSharedObject(class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > const &)" 
(?compileSharedObject at BugDriver@llvm@@QAE?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@ABV34@@Z)
E:\llvm\llvm\win32\Debug/bugpoint.exe : fatal error LNK1120: 10 
unresolved externals

What I am forgeting to include into build, and is bugpoint GCC based 
(since it needs llvm::GCC..)

Regards,
Žiga



More information about the llvm-dev mailing list