Clang compilation broken - Win32, MinGW 4.6

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

Clang compilation broken - Win32, MinGW 4.6

Fernando Pelliccioni
Hi,

I am trying to compile LLVM+Clang on WinXp using MinGW 4.6.

The compilation throws this error.

C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error: clang/AST/Attrs.inc: No such file or directory

The "clang/AST/Attrs.inc" does not exists at SVN revision 112179.


Here is an extract of the compilation.

[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PTHLexer.cpp.obj
[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Pragma.cpp.obj
[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PreprocessingRecord.cpp.obj
[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Preprocessor.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PreprocessorLexer.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/ScratchBuffer.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/TokenConcatenation.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/TokenLexer.cpp.obj
Linking CXX static library ..\..\..\..\lib\libclangLex.a
[ 79%] Built target clangLex
Scanning dependencies of target clangParse
[ 79%] Building CXX object tools/clang/lib/Parse/CMakeFiles/clangParse.dir/ParseAST.cpp.obj
In file included from C:\llvm\tools\clang\include/clang/AST/DeclBase.h:17:0,
                 from C:\llvm\tools\clang\include/clang/AST/Decl.h:18,
                 from C:\llvm\tools\clang\include/clang/AST/ASTContext.h:21,
                 from C:\llvm\tools\clang\include/clang/AST/Stmt.h:25,
                 from C:\llvm\tools\clang\include/clang/AST/Expr.h:18,
                 from C:\llvm\tools\clang\include/clang/AST/DeclCXX.h:18,
                 from C:\llvm\tools\clang\lib\Parse\ParseAST.cpp:20:
C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error: clang/AST/Attrs.inc: No such file or directory
compilation terminated.
mingw32-make[2]: *** [tools/clang/lib/Parse/CMakeFiles/clangParse.dir/ParseAST.cpp.obj] Error 1
mingw32-make[1]: *** [tools/clang/lib/Parse/CMakeFiles/clangParse.dir/all] Error 2
mingw32-make: *** [all] Error 2



Regards,
Fernando.

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

Re: Clang compilation broken - Win32, MinGW 4.6

Douglas Gregor

On Aug 26, 2010, at 10:48 AM, Fernando Pelliccioni wrote:

Hi,

I am trying to compile LLVM+Clang on WinXp using MinGW 4.6.

The compilation throws this error.

C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error: clang/AST/Attrs.inc: No such file or directory

The "clang/AST/Attrs.inc" does not exists at SVN revision 112179.


Here is an extract of the compilation.

[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PTHLexer.cpp.obj
[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Pragma.cpp.obj
[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PreprocessingRecord.cpp.obj
[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Preprocessor.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PreprocessorLexer.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/ScratchBuffer.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/TokenConcatenation.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/TokenLexer.cpp.obj
Linking CXX static library ..\..\..\..\lib\libclangLex.a
[ 79%] Built target clangLex
Scanning dependencies of target clangParse
[ 79%] Building CXX object tools/clang/lib/Parse/CMakeFiles/clangParse.dir/ParseAST.cpp.obj
In file included from C:\llvm\tools\clang\include/clang/AST/DeclBase.h:17:0,
                 from C:\llvm\tools\clang\include/clang/AST/Decl.h:18,
                 from C:\llvm\tools\clang\include/clang/AST/ASTContext.h:21,
                 from C:\llvm\tools\clang\include/clang/AST/Stmt.h:25,
                 from C:\llvm\tools\clang\include/clang/AST/Expr.h:18,
                 from C:\llvm\tools\clang\include/clang/AST/DeclCXX.h:18,
                 from C:\llvm\tools\clang\lib\Parse\ParseAST.cpp:20:
C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error: clang/AST/Attrs.inc: No such file or directory
compilation terminated.
mingw32-make[2]: *** [tools/clang/lib/Parse/CMakeFiles/clangParse.dir/ParseAST.cpp.obj] Error 1
mingw32-make[1]: *** [tools/clang/lib/Parse/CMakeFiles/clangParse.dir/all] Error 2
mingw32-make: *** [all] Error 2

This looks like a dependency issue in the CMake files. Attrs.inc is automatically generated by tblgen. Make sure that your LLVM is up-to-date and try rebuilding. If you can find the missing dependency in CMake, that would be great, too :)

- 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: Clang compilation broken - Win32, MinGW 4.6

Fernando Pelliccioni
On Thu, Aug 26, 2010 at 2:56 PM, Douglas Gregor <[hidden email]> wrote:

On Aug 26, 2010, at 10:48 AM, Fernando Pelliccioni wrote:

Hi,

I am trying to compile LLVM+Clang on WinXp using MinGW 4.6.

The compilation throws this error.

C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error: clang/AST/Attrs.inc: No such file or directory

The "clang/AST/Attrs.inc" does not exists at SVN revision 112179.


Here is an extract of the compilation.

[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PTHLexer.cpp.obj
[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Pragma.cpp.obj
[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PreprocessingRecord.cpp.obj
[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Preprocessor.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PreprocessorLexer.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/ScratchBuffer.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/TokenConcatenation.cpp.obj
[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/TokenLexer.cpp.obj
Linking CXX static library ..\..\..\..\lib\libclangLex.a
[ 79%] Built target clangLex
Scanning dependencies of target clangParse
[ 79%] Building CXX object tools/clang/lib/Parse/CMakeFiles/clangParse.dir/ParseAST.cpp.obj
In file included from C:\llvm\tools\clang\include/clang/AST/DeclBase.h:17:0,
                 from C:\llvm\tools\clang\include/clang/AST/Decl.h:18,
                 from C:\llvm\tools\clang\include/clang/AST/ASTContext.h:21,
                 from C:\llvm\tools\clang\include/clang/AST/Stmt.h:25,
                 from C:\llvm\tools\clang\include/clang/AST/Expr.h:18,
                 from C:\llvm\tools\clang\include/clang/AST/DeclCXX.h:18,
                 from C:\llvm\tools\clang\lib\Parse\ParseAST.cpp:20:
C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error: clang/AST/Attrs.inc: No such file or directory
compilation terminated.
mingw32-make[2]: *** [tools/clang/lib/Parse/CMakeFiles/clangParse.dir/ParseAST.cpp.obj] Error 1
mingw32-make[1]: *** [tools/clang/lib/Parse/CMakeFiles/clangParse.dir/all] Error 2
mingw32-make: *** [all] Error 2

This looks like a dependency issue in the CMake files. Attrs.inc is automatically generated by tblgen. Make sure that your LLVM is up-to-date and try rebuilding. If you can find the missing dependency in CMake, that would be great, too :)

- Doug

Thanks Doug,

I have an up-to-date revision.
I will try to find the missing dependency.

Regards,
Fernando.


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

Re: Clang compilation broken - Win32, MinGW 4.6

Francois Pichet
I have the same problem with the trunk.. 2 or 3 weeks ago I did a
complete llvm-clang build using MinGW and it worked 100%

>>
>> Hi,
>>
>> I am trying to compile LLVM+Clang on WinXp using MinGW 4.6.
>>
>> The compilation throws this error.
>>
>> C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error:
>> clang/AST/Attrs.inc: No such file or directory
>>
>> The "clang/AST/Attrs.inc" does not exists at SVN revision 112179.
>>
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Clang compilation broken - Win32, MinGW 4.6

Fernando Pelliccioni
I think that I got the problem. It is mi first time on clang sources. I am working on it.
Let me time!!! :)

Regards,
Fernando.

On Thu, Aug 26, 2010 at 7:26 PM, Francois Pichet <[hidden email]> wrote:
I have the same problem with the trunk.. 2 or 3 weeks ago I did a
complete llvm-clang build using MinGW and it worked 100%

>>
>> Hi,
>>
>> I am trying to compile LLVM+Clang on WinXp using MinGW 4.6.
>>
>> The compilation throws this error.
>>
>> C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error:
>> clang/AST/Attrs.inc: No such file or directory
>>
>> The "clang/AST/Attrs.inc" does not exists at SVN revision 112179.
>>


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

Re: Clang compilation broken - Win32, MinGW 4.6

Fernando Pelliccioni
On Thu, Aug 26, 2010 at 7:37 PM, Fernando Pelliccioni <[hidden email]> wrote:
I think that I got the problem. It is mi first time on clang sources. I am working on it.
Let me time!!! :)

Regards,
Fernando.


On Thu, Aug 26, 2010 at 7:26 PM, Francois Pichet <[hidden email]> wrote:
I have the same problem with the trunk.. 2 or 3 weeks ago I did a
complete llvm-clang build using MinGW and it worked 100%

>>
>> Hi,
>>
>> I am trying to compile LLVM+Clang on WinXp using MinGW 4.6.
>>
>> The compilation throws this error.
>>
>> C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error:
>> clang/AST/Attrs.inc: No such file or directory
>>
>> The "clang/AST/Attrs.inc" does not exists at SVN revision 112179.
>>



People,

I got the patch, but I can see that it have different formant than yours.
I am using TortoiseSVN.
What I'm wrong?

Regards,
Fernando.


Index: lib/Parse/CMakeLists.txt
===================================================================
--- lib/Parse/CMakeLists.txt    (revision 112236)
+++ lib/Parse/CMakeLists.txt    (working copy)
@@ -16,4 +16,4 @@
   Parser.cpp
   )
 
-add_dependencies(clangParse ClangAttrList ClangDiagnosticParse)
+add_dependencies(clangParse ClangAttrClasses ClangAttrList ClangDeclNodes ClangDiagnosticParse ClangStmtNodes)








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

Re: Clang compilation broken - Win32, MinGW 4.6

Douglas Gregor

On Aug 27, 2010, at 5:57 AM, Fernando Pelliccioni wrote:

On Thu, Aug 26, 2010 at 7:37 PM, Fernando Pelliccioni <[hidden email]> wrote:
I think that I got the problem. It is mi first time on clang sources. I am working on it.
Let me time!!! :)

Regards,
Fernando.


On Thu, Aug 26, 2010 at 7:26 PM, Francois Pichet <[hidden email]> wrote:
I have the same problem with the trunk.. 2 or 3 weeks ago I did a
complete llvm-clang build using MinGW and it worked 100%

>>
>> Hi,
>>
>> I am trying to compile LLVM+Clang on WinXp using MinGW 4.6.
>>
>> The compilation throws this error.
>>
>> C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error:
>> clang/AST/Attrs.inc: No such file or directory
>>
>> The "clang/AST/Attrs.inc" does not exists at SVN revision 112179.
>>



People,

I got the patch, but I can see that it have different formant than yours.
I am using TortoiseSVN.
What I'm wrong?

The patch looks great to me, thanks! Committed as r112261.

It did come through as an inline attachment rather than a separate attachment, which makes it a little hard to work with, but that doesn't matter for small changes.

- 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: Clang compilation broken - Win32, MinGW 4.6

Fernando Pelliccioni
On Fri, Aug 27, 2010 at 11:21 AM, Douglas Gregor <[hidden email]> wrote:

On Aug 27, 2010, at 5:57 AM, Fernando Pelliccioni wrote:

On Thu, Aug 26, 2010 at 7:37 PM, Fernando Pelliccioni <[hidden email]> wrote:
I think that I got the problem. It is mi first time on clang sources. I am working on it.
Let me time!!! :)

Regards,
Fernando.


On Thu, Aug 26, 2010 at 7:26 PM, Francois Pichet <[hidden email]> wrote:
I have the same problem with the trunk.. 2 or 3 weeks ago I did a
complete llvm-clang build using MinGW and it worked 100%

>>
>> Hi,
>>
>> I am trying to compile LLVM+Clang on WinXp using MinGW 4.6.
>>
>> The compilation throws this error.
>>
>> C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error:
>> clang/AST/Attrs.inc: No such file or directory
>>
>> The "clang/AST/Attrs.inc" does not exists at SVN revision 112179.
>>



People,

I got the patch, but I can see that it have different formant than yours.
I am using TortoiseSVN.
What I'm wrong?

The patch looks great to me, thanks! Committed as r112261.

It did come through as an inline attachment rather than a separate attachment, which makes it a little hard to work with, but that doesn't matter for small changes.

- Doug


Thanks Doug,

I saw emails on the commit list like this...

Author: dgregor
Date: Wed Aug 25 10:47:31 2010
New Revision: 112049

URL: http://llvm.org/viewvc/llvm-project?rev=112049&view=rev
Log:
Implement __builtin_printf, __builtin_fprintf. Fixes <rdar://problem/8336581>.

Modified:
   cfe/trunk/include/clang/Basic/Builtins.def
   cfe/trunk/test/Sema/builtins.c


This text was written by hand? Or "svn diff" has created it?

Regards,
Fernando.


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

Re: Clang compilation broken - Win32, MinGW 4.6

Douglas Gregor

On Aug 27, 2010, at 8:02 AM, Fernando Pelliccioni wrote:

On Fri, Aug 27, 2010 at 11:21 AM, Douglas Gregor <[hidden email]> wrote:

On Aug 27, 2010, at 5:57 AM, Fernando Pelliccioni wrote:

On Thu, Aug 26, 2010 at 7:37 PM, Fernando Pelliccioni <[hidden email]> wrote:
I think that I got the problem. It is mi first time on clang sources. I am working on it.
Let me time!!! :)

Regards,
Fernando.


On Thu, Aug 26, 2010 at 7:26 PM, Francois Pichet <[hidden email]> wrote:
I have the same problem with the trunk.. 2 or 3 weeks ago I did a
complete llvm-clang build using MinGW and it worked 100%

>>
>> Hi,
>>
>> I am trying to compile LLVM+Clang on WinXp using MinGW 4.6.
>>
>> The compilation throws this error.
>>
>> C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error:
>> clang/AST/Attrs.inc: No such file or directory
>>
>> The "clang/AST/Attrs.inc" does not exists at SVN revision 112179.
>>



People,

I got the patch, but I can see that it have different formant than yours.
I am using TortoiseSVN.
What I'm wrong?

The patch looks great to me, thanks! Committed as r112261.

It did come through as an inline attachment rather than a separate attachment, which makes it a little hard to work with, but that doesn't matter for small changes.

- Doug


Thanks Doug,

I saw emails on the commit list like this...

Author: dgregor
Date: Wed Aug 25 10:47:31 2010
New Revision: 112049

URL: http://llvm.org/viewvc/llvm-project?rev=112049&view=rev
Log:
Implement __builtin_printf, __builtin_fprintf. Fixes <<a href="rdar://problem/8336581">rdar://problem/8336581>.

Modified:
   cfe/trunk/include/clang/Basic/Builtins.def
   cfe/trunk/test/Sema/builtins.c


This text was written by hand? Or "svn diff" has created it?


The comment in the log was written by hand. The rest is automatically generated by the script that reports all Subversion commits to the mailing list.

- 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: Clang compilation broken - Win32, MinGW 4.6

Fernando Pelliccioni
On Fri, Aug 27, 2010 at 12:08 PM, Douglas Gregor <[hidden email]> wrote:

On Aug 27, 2010, at 8:02 AM, Fernando Pelliccioni wrote:

On Fri, Aug 27, 2010 at 11:21 AM, Douglas Gregor <[hidden email]> wrote:

On Aug 27, 2010, at 5:57 AM, Fernando Pelliccioni wrote:

On Thu, Aug 26, 2010 at 7:37 PM, Fernando Pelliccioni <[hidden email]> wrote:
I think that I got the problem. It is mi first time on clang sources. I am working on it.
Let me time!!! :)

Regards,
Fernando.


On Thu, Aug 26, 2010 at 7:26 PM, Francois Pichet <[hidden email]> wrote:
I have the same problem with the trunk.. 2 or 3 weeks ago I did a
complete llvm-clang build using MinGW and it worked 100%

>>
>> Hi,
>>
>> I am trying to compile LLVM+Clang on WinXp using MinGW 4.6.
>>
>> The compilation throws this error.
>>
>> C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error:
>> clang/AST/Attrs.inc: No such file or directory
>>
>> The "clang/AST/Attrs.inc" does not exists at SVN revision 112179.
>>



People,

I got the patch, but I can see that it have different formant than yours.
I am using TortoiseSVN.
What I'm wrong?

The patch looks great to me, thanks! Committed as r112261.

It did come through as an inline attachment rather than a separate attachment, which makes it a little hard to work with, but that doesn't matter for small changes.

- Doug


Thanks Doug,

I saw emails on the commit list like this...

Author: dgregor
Date: Wed Aug 25 10:47:31 2010
New Revision: 112049

URL: http://llvm.org/viewvc/llvm-project?rev=112049&view=rev
Log:
Implement __builtin_printf, __builtin_fprintf. Fixes <rdar://problem/8336581>.

Modified:
   cfe/trunk/include/clang/Basic/Builtins.def
   cfe/trunk/test/Sema/builtins.c


This text was written by hand? Or "svn diff" has created it?


The comment in the log was written by hand. The rest is automatically generated by the script that reports all Subversion commits to the mailing list.

- Doug


Oh. So, I did not understand the commit process.
Now it is clear!!

Thanks!

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