Did anyone build clang/llvm on visual studio.

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

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

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

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

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

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