[cfe-dev] Problems building Clang on Windows

Дмитрий Соколов r4start at gmail.com
Sat Aug 25 14:37:05 PDT 2012


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.

On Thu, Aug 23, 2012 at 4:55 PM, Timur Iskhodzhanov <timurrrr at google.com>wrote:
>
>> 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
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120826/02cdc7e8/attachment.html>


More information about the cfe-dev mailing list