Did anyone build clang/llvm on visual studio.

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Did anyone build clang/llvm on visual studio.

kalyan ponnala

Hi,

I am trying to build clang/llvm solution on visual studio 2008. The all build solution works but the Clang-test solution doesn't.
Does anyone know if those tests are "complete". I mean some of the .c or .h files inside clang-test, project look incomplete. one of them had just #include<stdio.h>
and the regression test kept failing when i started building it. The errors were something like the ones below. If you guys did built the regression tests, could you tell me
how did you do it?
---------------------------------------------------------------------------
1>------ Build started: Project: clang-test, Configuration: Debug Win32 ------
1>Running Clang regression tests
1>-- Testing: 2012 tests, 2 threads --
1>FAIL: Clang :: CodeGen/lineno-dbginfo.c (450 of 2012)
1>******************** TEST 'Clang :: CodeGen/lineno-dbginfo.c' FAILED ********************
1>Script:
1>--
1>echo "#include <stdio.h>" > C:\Users\Kalyan\llvm\binariesbuild\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.h
1>C:/Users/Kalyan/llvm/binariesbuild/bin/Debug\clang.EXE  -S -save-temps -g -include C:\Users\Kalyan\llvm\binariesbuild\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.h C:\Users\Kalyan\llvm\tools\clang\test\CodeGen\lineno-dbginfo.c -emit-llvm -o C:\Users\Kalyan\llvm\binariesbuild\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.ll
1>grep "i32 5" C:\Users\Kalyan\llvm\binariesbuild\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.ll
1>rm -f lineno-dbginfo.i
1>--
1>Exit Code: 1
1>Command Output (stdout):
1>--
1>Command 0: "echo" "#include <stdio.h>"
1>Command 0 Result: 0
1>Command 0 Output:
1>None
1>Command 0 Stderr:
1>Command 1: "C:/Users/Kalyan/llvm/binariesbuild/bin/Debug\clang.EXE" "-S" "-save-temps" "-g" "-include" "C:\Users\Kalyan\llvm\binariesbuild\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.h" "C:\Users\Kalyan\llvm\tools\clang\test\CodeGen\lineno-dbginfo.c" "-emit-llvm" "-o" "C:\Users\Kalyan\llvm\binariesbuild\tools\clang\test\CodeGen\Output\lineno-dbginfo.c.tmp.ll"
1>Command 1 Result: 1
1>Command 1 Output:
1>Command 1 Stderr:
1>In file included from <built-in>:109:
1>In file included from <command line>:1:
1>C:\\Users\\Kalyan\\llvm\\binariesbuild\\tools\\clang\\test\\CodeGen\\Output\\lineno-dbginfo.c.tmp.h(1) :  fatal error: 'stdio.h' file not found
1>#include <stdio.h>
1>         ^
1>1 diagnostic generated.
1>--
1>Command Output (stderr):
1>--
1>--
1>********************
-- --------------------------------------------------------------
Kalyan Ponnala
phone: 8163772059

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Did anyone build clang/llvm on visual studio.

Douglas Gregor

On Feb 9, 2010, at 7:48 PM, kalyan ponnala wrote:

>
> Hi,
>
> I am trying to build clang/llvm solution on visual studio 2008. The all build solution works but the Clang-test solution doesn't.
> Does anyone know if those tests are "complete". I mean some of the .c or .h files inside clang-test, project look incomplete. one of them had just #include<stdio.h>
> and the regression test kept failing when i started building it. The errors were something like the ones below. If you guys did built the regression tests, could you tell me
> how did you do it?


I personally don't use Visual Studio, but we have a BuildBot performing continuous testing with Visual Studio that includes running all of the tests. It's likely that there's a configuration problem on your system, since Clang isn't finding stdio.h. Your stdio.h might be in a non-standard place where Clang can't find it, and you can run

        clang -v some_source.c

to see the places where Clang will search for headers.

        - Doug
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Did anyone build clang/llvm on visual studio.

Vincent R.
On Tue, 9 Feb 2010 20:23:42 -0800, Douglas Gregor <[hidden email]>
wrote:
> On Feb 9, 2010, at 7:48 PM, kalyan ponnala wrote:
>
>>
>> Hi,
>>
>> I am trying to build clang/llvm solution on visual studio 2008. The all
>> build solution works but the Clang-test solution doesn't.
>> Does anyone know if those tests are "complete". I mean some of the .c
or
>> .h files inside clang-test, project look incomplete. one of them had
just
>> #include<stdio.h>
>> and the regression test kept failing when i started building it. The
>> errors were something like the ones below. If you guys did built the
>> regression tests, could you tell me
>> how did you do it?
>
>

I just tried(At revision 95782) to build all on Windows XP 32 bit - VS2005
and it's broken :

3>------ Skipped Build: Project: check, Configuration: Release Win32
------
3>Project not selected to build for this solution configuration
1>   Creating library Z:\dev\Misc\llvm\lib\Release\CIndex.lib and object
Z:\dev\Misc\llvm\lib\Release\CIndex.exp
1>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
"public: virtual class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{8,{flat}}' }'> __thiscall
clang::Sema::ActOnCompoundStmt(class clang::SourceLocation,class
clang::SourceLocation,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{8,{flat}}' }'>,bool)"
(?ActOnCompoundStmt@Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B7AE@2@VSourceLocation@2@0V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B7AE@2@_N@Z)
1>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
"public: virtual class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{8,{flat}}' }'> __thiscall
clang::Sema::ActOnAsmStmt(class clang::SourceLocation,bool,bool,unsigned
int,unsigned int,class clang::IdentifierInfo * *,class
clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class
clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class
clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class
clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class
clang::SourceLocation,bool)"
(?ActOnAsmStmt@Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B7AE@2@VSourceLocation@2@_N1IIPAPAVIdentifierInfo@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@3V?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@301@Z)
1>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
"public: virtual class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::Sema::ActOnCallExpr(class clang::Scope *,class
clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::SourceLocation,class
clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::SourceLocation
*,class clang::SourceLocation)"
(?ActOnCallExpr@Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@PAVScope@2@V32@VSourceLocation@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@PAV52@2@Z)
1>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
"public: virtual class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::Sema::ActOnCXXTypeConstructExpr(class clang::SourceRange,void
*,class clang::SourceLocation,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::SourceLocation
*,class clang::SourceLocation)"
(?ActOnCXXTypeConstructExpr@Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@VSourceRange@2@PAXVSourceLocation@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@PAV52@2@Z)
1>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
"public: virtual class clang::OpaquePtr<0> __thiscall
clang::Sema::ActOnCXXMemberDeclarator(class clang::Scope *,enum
clang::AccessSpecifier,class clang::Declarator &,class
clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{12,{flat}}' }'>,void *,void *,bool,bool)"
(?ActOnCXXMemberDeclarator@Sema@clang@@UAE?AV?$OpaquePtr@$0A@@2@PAVScope@2@W4AccessSpecifier@2@AAVDeclarator@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$BM@AE@2@PAX4_N5@Z)
1>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
"public: virtual class clang::ActionBase::ActionResult<5,class
clang::OpaquePtr<0>,1> __thiscall
clang::Sema::ActOnClassTemplateSpecialization(class clang::Scope *,unsigned
int,enum clang::Action::TagUseKind,class clang::SourceLocation,class
clang::CXXScopeSpec const &,class clang::OpaquePtr<2>,class
clang::SourceLocation,class clang::SourceLocation,class
clang::ASTTemplateArgsPtr,class clang::SourceLocation,class
clang::AttributeList *,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{12,{flat}}' }'>)"
(?ActOnClassTemplateSpecialization@Sema@clang@@UAE?AV?$ActionResult@$04V?$OpaquePtr@$0A@@clang@@$00@ActionBase@2@PAVScope@2@IW4TagUseKind@Action@2@VSourceLocation@2@ABVCXXScopeSpec@2@V?$OpaquePtr@$01@2@22VASTTemplateArgsPtr@2@2PAVAttributeList@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$BM@AE@2@@Z)
1>clangSema.lib(Sema.obj) : error LNK2019: unresolved external symbol
"public: class clang::OpaquePtr<0> __thiscall
clang::Sema::HandleDeclarator(class clang::Scope *,class clang::Declarator
&,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{12,{flat}}' }'>,bool)"
(?HandleDeclarator@Sema@clang@@QAE?AV?$OpaquePtr@$0A@@2@PAVScope@2@AAVDeclarator@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$BM@AE@2@_N@Z)
referenced in function "public: virtual class clang::OpaquePtr<0>
__thiscall clang::Sema::ActOnDeclarator(class clang::Scope *,class
clang::Declarator &)"
(?ActOnDeclarator@Sema@clang@@UAE?AV?$OpaquePtr@$0A@@2@PAVScope@2@AAVDeclarator@2@@Z)
1>clangSema.lib(SemaDeclCXX.obj) : error LNK2001: unresolved external
symbol "public: class clang::OpaquePtr<0> __thiscall
clang::Sema::HandleDeclarator(class clang::Scope *,class clang::Declarator
&,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{12,{flat}}' }'>,bool)"
(?HandleDeclarator@Sema@clang@@QAE?AV?$OpaquePtr@$0A@@2@PAVScope@2@AAVDeclarator@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$BM@AE@2@_N@Z)
1>clangSema.lib(SemaTemplate.obj) : error LNK2001: unresolved external
symbol "public: class clang::OpaquePtr<0> __thiscall
clang::Sema::HandleDeclarator(class clang::Scope *,class clang::Declarator
&,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{12,{flat}}' }'>,bool)"
(?HandleDeclarator@Sema@clang@@QAE?AV?$OpaquePtr@$0A@@2@PAVScope@2@AAVDeclarator@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$BM@AE@2@_N@Z)
1>clangSema.lib(SemaExpr.obj) : error LNK2019: unresolved external symbol
"public: class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::InitializationSequence::Perform(class clang::Sema &,class
clang::InitializedEntity const &,class clang::InitializationKind const
&,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::QualType *)"
(?Perform@InitializationSequence@clang@@QAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@AAVSema@2@ABVInitializedEntity@2@ABVInitializationKind@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@PAVQualType@2@@Z)
referenced in function "public: class clang::ASTOwningResult<&[thunk]:
__thiscall clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::Sema::BuildCompoundLiteralExpr(class clang::SourceLocation,class
clang::TypeSourceInfo *,class clang::SourceLocation,class
clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>)"
(?BuildCompoundLiteralExpr@Sema@clang@@QAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@VSourceLocation@2@PAVTypeSourceInfo@2@0V32@@Z)
1>clangSema.lib(SemaDecl.obj) : error LNK2001: unresolved external symbol
"public: class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::InitializationSequence::Perform(class clang::Sema &,class
clang::InitializedEntity const &,class clang::InitializationKind const
&,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::QualType *)"
(?Perform@InitializationSequence@clang@@QAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@AAVSema@2@ABVInitializedEntity@2@ABVInitializationKind@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@PAVQualType@2@@Z)
1>clangSema.lib(SemaDeclCXX.obj) : error LNK2001: unresolved external
symbol "public: class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::InitializationSequence::Perform(class clang::Sema &,class
clang::InitializedEntity const &,class clang::InitializationKind const
&,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::QualType *)"
(?Perform@InitializationSequence@clang@@QAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@AAVSema@2@ABVInitializedEntity@2@ABVInitializationKind@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@PAVQualType@2@@Z)
1>clangSema.lib(SemaExprCXX.obj) : error LNK2001: unresolved external
symbol "public: class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::InitializationSequence::Perform(class clang::Sema &,class
clang::InitializedEntity const &,class clang::InitializationKind const
&,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::QualType *)"
(?Perform@InitializationSequence@clang@@QAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@AAVSema@2@ABVInitializedEntity@2@ABVInitializationKind@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@PAVQualType@2@@Z)
1>clangSema.lib(SemaTemplateInstantiate.obj) : error LNK2019: unresolved
external symbol "public: bool __thiscall
clang::Sema::CompleteConstructorCall(class clang::CXXConstructorDecl
*,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::SourceLocation,class
clang::ASTOwningVector<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }',8> &)"
(?CompleteConstructorCall@Sema@clang@@QAE_NPAVCXXConstructorDecl@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@VSourceLocation@2@AAV?$ASTOwningVector@$1??_9ActionBase@clang@@$B3AE$07@2@@Z)
referenced in function "public: class clang::ASTOwningResult<&[thunk]:
__thiscall clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::TreeTransform<class `anonymous
namespace'::TemplateInstantiator>::RebuildCXXConstructExpr(class
clang::QualType,class clang::SourceLocation,class clang::CXXConstructorDecl
*,bool,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>)"
(?RebuildCXXConstructExpr@?$TreeTransform@VTemplateInstantiator@?A0x1a6b8f98@@@clang@@QAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@VQualType@2@VSourceLocation@2@PAVCXXConstructorDecl@2@_NV?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@@Z)
1>clangSema.lib(SemaInit.obj) : error LNK2001: unresolved external symbol
"public: bool __thiscall clang::Sema::CompleteConstructorCall(class
clang::CXXConstructorDecl *,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::SourceLocation,class
clang::ASTOwningVector<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }',8> &)"
(?CompleteConstructorCall@Sema@clang@@QAE_NPAVCXXConstructorDecl@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@VSourceLocation@2@AAV?$ASTOwningVector@$1??_9ActionBase@clang@@$B3AE$07@2@@Z)
1>clangSema.lib(SemaExprCXX.obj) : error LNK2001: unresolved external
symbol "public: bool __thiscall clang::Sema::CompleteConstructorCall(class
clang::CXXConstructorDecl *,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::SourceLocation,class
clang::ASTOwningVector<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }',8> &)"
(?CompleteConstructorCall@Sema@clang@@QAE_NPAVCXXConstructorDecl@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@VSourceLocation@2@AAV?$ASTOwningVector@$1??_9ActionBase@clang@@$B3AE$07@2@@Z)
1>clangSema.lib(SemaInit.obj) : error LNK2019: unresolved external symbol
"public: class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::Sema::BuildCXXConstructExpr(class clang::SourceLocation,class
clang::QualType,class clang::CXXConstructorDecl *,class
clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,bool,bool)"
(?BuildCXXConstructExpr@Sema@clang@@QAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@VSourceLocation@2@VQualType@2@PAVCXXConstructorDecl@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@_N4@Z)
referenced in function "public: class clang::ASTOwningResult<&[thunk]:
__thiscall clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::InitializationSequence::Perform(class clang::Sema &,class
clang::InitializedEntity const &,class clang::InitializationKind const
&,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class
InitializationSequence::QualType *)"
(?Perform@InitializationSequence@clang@@QAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@AAVSema@2@ABVInitializedEntity@2@ABVInitializationKind@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@clang@@PAVQualType@1@@Z)
1>clangSema.lib(SemaExprCXX.obj) : error LNK2001: unresolved external
symbol "public: class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::Sema::BuildCXXConstructExpr(class clang::SourceLocation,class
clang::QualType,class clang::CXXConstructorDecl *,class
clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,bool,bool)"
(?BuildCXXConstructExpr@Sema@clang@@QAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@VSourceLocation@2@VQualType@2@PAVCXXConstructorDecl@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@_N4@Z)
1>Z:\dev\Misc\llvm\bin\Release\CIndex.dll : fatal error LNK1120: 10
unresolved externals
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Did anyone build clang/llvm on visual studio.

Victor Zverovich
Hi Vincent,

I used to have exactly the same errors when building release version of clang with VS2005 (debug version was fine). Don't remember exactly the details but it seemed to be a VS bug. Installing that enormous Service Pack 1 for Visual Studio 2005 (http://www.microsoft.com/downloads/details.aspx?FamilyId=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en) made these errors go away.

Hope this helps.

Victor

On 10 February 2010 17:42, Vincent Richomme <[hidden email]> wrote:
...

I just tried(At revision 95782) to build all on Windows XP 32 bit - VS2005
and it's broken :

3>------ Skipped Build: Project: check, Configuration: Release Win32
------
3>Project not selected to build for this solution configuration
1>   Creating library Z:\dev\Misc\llvm\lib\Release\CIndex.lib and object
Z:\dev\Misc\llvm\lib\Release\CIndex.exp
1>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
"public: virtual class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{8,{flat}}' }'> __thiscall
clang::Sema::ActOnCompoundStmt(class clang::SourceLocation,class
clang::SourceLocation,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{8,{flat}}' }'>,bool)"
... 

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Did anyone build clang/llvm on visual studio.

Jon Linkins
Victor Zverovich <victor.zverovich@...> writes:

>
>
> Hi Vincent,
>
> I used to have exactly the same errors when building release version of clang
with VS2005 (debug version was fine). Don't remember exactly the details but it
seemed to be a VS bug. Installing that enormous Service Pack 1 for Visual Studio
2005
(http://www.microsoft.com/downloads/details.aspx?FamilyId=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en)
made these errors go away.
>
> Hope this helps.
>
> Victor
>
> On 10 February 2010 17:42, Vincent Richomme <forumer <at> smartmobili.com>
wrote:...

> I just tried(At revision 95782) to build all on Windows XP 32 bit - VS2005
> and it's broken :
> 3>------ Skipped Build: Project: check, Configuration: Release Win32
> ------
> 3>Project not selected to build for this solution configuration
> 1>   Creating library Z:\dev\Misc\llvm\lib\Release\CIndex.lib and object
> Z:\dev\Misc\llvm\lib\Release\CIndex.exp
> 1>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
> "public: virtual class clang::ASTOwningResult<&[thunk]: __thiscall
> clang::ActionBase::`vcall'{8,{flat}}' }'> __thiscall
> clang::Sema::ActOnCompoundStmt(class clang::SourceLocation,class
> clang::SourceLocation,class clang::ASTMultiPtr<&[thunk]: __thiscall
> clang::ActionBase::`vcall'{8,{flat}}' }'>,bool)"
>
> ... 
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev@...
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>

Hi,

Has anyone else had similar problems to this? I have VS 2005 with service pack 1
installed and I get the same errors building for release (the debug build is
fine) as those above.

Un-inlining functions fixed one of the errors. Does anyone know of any better
fixes or workarounds? I'm using code that was checked out about a week ago.

Thanks,
Jon

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Did anyone build clang/llvm on visual studio.

Rizky Herucakra
Hi, I get the same problem. unfortunately my solution is to ignore release build altogether ( yes , I can afford this :-)  )

Hi,

Has anyone else had similar problems to this? I have VS 2005 with service pack 1
installed and I get the same errors building for release (the debug build is
fine) as those above.

Un-inlining functions fixed one of the errors. Does anyone know of any better
fixes or workarounds? I'm using code that was checked out about a week ago.

Thanks,
Jon

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev