<div class="gmail_quote">On Thu, Aug 26, 2010 at 2:56 PM, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;"><div><div></div><div class="h5"><br><div><div>On Aug 26, 2010, at 10:48 AM, Fernando Pelliccioni wrote:</div><br><blockquote type="cite">Hi,<br><br>I am trying to compile LLVM+Clang on WinXp using MinGW 4.6.<br>
<br>The compilation throws this error.<br><br><span style="font-family: courier new,monospace;">C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error: clang/AST/Attrs.inc: No such file or directory</span><br>
<br>The "clang/AST/Attrs.inc" does not exists at SVN revision 112179.<br><br><br>Here is an extract of the compilation.<br><br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PTHLexer.cpp.obj</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Pragma.cpp.obj</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PreprocessingRecord.cpp.obj</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[ 78%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Preprocessor.cpp.obj</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PreprocessorLexer.cpp.obj</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/ScratchBuffer.cpp.obj</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/TokenConcatenation.cpp.obj</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[ 79%] Building CXX object tools/clang/lib/Lex/CMakeFiles/clangLex.dir/TokenLexer.cpp.obj</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Linking CXX static library ..\..\..\..\lib\libclangLex.a</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[ 79%] Built target clangLex</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Scanning dependencies of target clangParse</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[ 79%] Building CXX object tools/clang/lib/Parse/CMakeFiles/clangParse.dir/ParseAST.cpp.obj</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">In file included from C:\llvm\tools\clang\include/clang/AST/DeclBase.h:17:0,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> from C:\llvm\tools\clang\include/clang/AST/Decl.h:18,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> from C:\llvm\tools\clang\include/clang/AST/ASTContext.h:21,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> from C:\llvm\tools\clang\include/clang/AST/Stmt.h:25,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> from C:\llvm\tools\clang\include/clang/AST/Expr.h:18,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> from C:\llvm\tools\clang\include/clang/AST/DeclCXX.h:18,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> from C:\llvm\tools\clang\lib\Parse\ParseAST.cpp:20:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">C:\llvm\tools\clang\include/clang/AST/Attr.h:112:31: fatal error: clang/AST/Attrs.inc: No such file or directory</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">compilation terminated.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">mingw32-make[2]: *** [tools/clang/lib/Parse/CMakeFiles/clangParse.dir/ParseAST.cpp.obj] Error 1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">mingw32-make[1]: *** [tools/clang/lib/Parse/CMakeFiles/clangParse.dir/all] Error 2</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">mingw32-make: *** [all] Error 2</span><br></div></blockquote></div><br></div></div><div>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 :)</div>
<div><br></div><div><span style="white-space: pre-wrap;"> </span>- Doug</div></div></blockquote></div><br>Thanks Doug,<br>
<br>
I have an up-to-date revision.<br>I will try to find the missing dependency.<br><br>Regards,<br>Fernando.<br><br>