Problems building Clang on Windows

Hi there,

After clobbering my build directory yesterday, I get the following
when trying to compile clang using either VS2008 or VS2010 (on two
different machines):
1>------ Build started: Project: clangAST, Configuration: Debug Win32 ------
1> DumpXML.cpp
1>C:\src\llvm-dev\tools\clang\include\clang/AST/DeclTemplate.h(2088):
error C2719: 'TemplArgs': formal parameter with __declspec(align('8'))
won't be aligned
1>C:\src\llvm-dev\tools\clang\include\clang/AST/DeclTemplate.h(2112):
error C2719: 'TemplateArgs': formal parameter with
__declspec(align('8')) won't be aligned
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Have anyone seen something like this recently?
Any suggestions?

Thanks,
Timur Iskhodzhanov,
Google Russia

Did you also update LLVM?

There were some changes by Chandler related to alignment support on MSVC. Could be related.

Hi.
I had same problem with MSVS2012.
I did simple fix just pass this argument by const reference.
In LLVM I had same problem.
I think problem in argument type, it contains double field(8 byte align) and I build it for x86(4 byte align for stack).
When pass argument by value through stack it can not be aligned or MSVS can not do this.

  • Dmitry Sokolov.

Chandler has fixed the problem in r162549 once I contacted him over chat.
cfe-dev was down so you got my e-mail after the fix was in I think.