[cfe-dev] Clang build failure on Windows (both MSVC and MinGW GCC/Clang)

Ruben Van Boxem vanboxem.ruben at gmail.com
Sat Jul 28 13:04:27 PDT 2012


OK. I officially hate SVN. It should tell me I modified the file locally
(and yes, I know svn stat does just that ;-) )

Sorry for the noise.

Ruben

2012/7/28 Ruben Van Boxem <vanboxem.ruben at gmail.com>

> 2012/7/28 Nikola Smiljanic <popizdeh at gmail.com>
>
>> Just update and it will go away :)
>>
>
> I think I'm getting the same failure (GCC 4.7.1 output this time),
> revision 160924:
>
> [ 75%] Building CXX object
> tools/clang/lib/AST/CMakeFiles/clangAST.dir/APValue.cpp.obj
> In file included from
> M:\Development\Source\LLVM\tools\clang\lib\AST\APValue.cpp:17:0:
> M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:798:43:
> error: declaration of 'typedef class
> clang::DeclContext::specific_decl_iterator<clang::VarDecl>
> clang::CXXRecordDecl::static_data_iterator'
> M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:784:43:
> error: conflicts with previous declaration 'typedef class
> clang::DeclContext::specific_decl_iterator<clang::VarDecl>
> clang::CXXRecordDecl::static_data_iterator'
> M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:802:24:
> error: 'clang::CXXRecordDecl::static_data_iterator
> clang::CXXRecordDecl::static_data_begin() const' cannot be overloaded
> M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:788:24:
> error: with 'clang::CXXRecordDecl::static_data_iterator
> clang::CXXRecordDecl::static_data_begin() const'
> M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:806:24:
> error: 'clang::CXXRecordDecl::static_data_iterator
> clang::CXXRecordDecl::static_data_end() const' cannot be overloaded
> M:/Development/Source/LLVM/tools/clang/include/clang/AST/DeclCXX.h:792:24:
> error: with 'clang::CXXRecordDecl::static_data_iterator
> clang::CXXRecordDecl::static_data_end() const'
>
> mingw32-make[2]: ***
> [tools/clang/lib/AST/CMakeFiles/clangAST.dir/APValue.cpp.obj] Error 1
> mingw32-make[1]: *** [tools/clang/lib/AST/CMakeFiles/clangAST.dir/all]
> Error 2
> mingw32-make: *** [all] Error 2
>
> Thank for the attempt though.
>
> Ruben
>
>
>>
>> On Sat, Jul 28, 2012 at 8:46 PM, Ruben Van Boxem
>> <vanboxem.ruben at gmail.com> wrote:
>> > Hi,
>> >
>> > I'm getting this build failure with revision 160920:
>> > [ 66%] Building CXX object
>> > tools/clang/lib/AST/CMakeFiles/clangAST.dir/APValue.cpp.obj
>> > In file included from
>> > M:\Development\Source\LLVM\tools\clang\lib\AST\APValue.cpp:17:
>> >
>> M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:798:43:
>> > error:
>> >       redefinition of 'static_data_iterator'
>> >   typedef specific_decl_iterator<VarDecl> static_data_iterator;
>> >                                           ^
>> >
>> M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:784:43:
>> > note:
>> >       previous definition is here
>> >   typedef specific_decl_iterator<VarDecl> static_data_iterator;
>> >                                           ^
>> >
>> M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:802:24:
>> > error:
>> >       class member cannot be redeclared
>> >   static_data_iterator static_data_begin() const {
>> >                        ^
>> >
>> M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:788:24:
>> > note:
>> >       previous declaration is here
>> >   static_data_iterator static_data_begin() const {
>> >                        ^
>> >
>> M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:806:24:
>> > error:
>> >       class member cannot be redeclared
>> >   static_data_iterator static_data_end() const {
>> >                        ^
>> >
>> M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:792:24:
>> > note:
>> >       previous declaration is here
>> >   static_data_iterator static_data_end() const {
>> >                        ^
>> >
>> M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:802:24:
>> > error:
>> >       redefinition of 'static_data_begin'
>> >   static_data_iterator static_data_begin() const {
>> >                        ^
>> >
>> M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:788:24:
>> > note:
>> >       previous definition is here
>> >   static_data_iterator static_data_begin() const {
>> >                        ^
>> >
>> M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:806:24:
>> > error:
>> >       redefinition of 'static_data_end'
>> >   static_data_iterator static_data_end() const {
>> >                        ^
>> >
>> M:/Development/Source/LLVM/tools/clang/include\clang/AST/DeclCXX.h:792:24:
>> > note:
>> >       previous definition is here
>> >   static_data_iterator static_data_end() const {
>> >                        ^
>> > 5 errors generated.
>> > mingw32-make[2]: ***
>> > [tools/clang/lib/AST/CMakeFiles/clangAST.dir/APValue.cpp.obj] Error 1
>> > mingw32-make[1]: *** [tools/clang/lib/AST/CMakeFiles/clangAST.dir/all]
>> Error
>> > 2
>> > mingw32-make: *** [all] Error 2
>> >
>> > This was not a problem a few days ago :( Anyone know what's wrong?
>> >
>> > Ruben
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > 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/20120728/bd3b087d/attachment.html>


More information about the cfe-dev mailing list