<div dir="rtl"><div dir="ltr">Just a wild guess, maybe some of the sections are debug sections and if you build w/o debug information there will be less sections?</div><div dir="ltr"><br></div><div dir="ltr">Alternatively, clang builds well under Visual C++ and you can later target MingW with -target flag.</div>
<div dir="ltr"><br></div><div dir="ltr">Yaron</div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2013/10/18 Dennis Cote <span dir="ltr"><<a href="mailto:DennisC@harding.ca" target="_blank">DennisC@harding.ca</a>></span></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-CA" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Replying to myself.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It seems like this is a hard limit when using gcc and windows. Quoting from </span><a href="http://stackoverflow.com/questions/16596876/object-file-has-too-many-sections" target="_blank">http://stackoverflow.com/questions/16596876/object-file-has-too-many-sections</a><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif"">The error<span> </span></span><code><span style="background:#eeeeee;font-size:10.5pt;font-family:Consolas;padding:0cm;border:none windowtext 1.0pt">"%B: too many sections (%d)"</span></code><span><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif""> </span></span><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif"">comes from the function</span><code><span style="background:#eeeeee;font-size:10.5pt;font-family:Consolas;padding:0cm;border:none windowtext 1.0pt">coff_compute_section_file_positions()</span></code><span><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif""> </span></span><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif"">located in<span> </span></span><code><span style="background:#eeeeee;font-size:10.5pt;font-family:Consolas;padding:0cm;border:none windowtext 1.0pt">bfd/coffcode.h</span></code><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif"">. It's produced when the output<span> </span></span><code><span style="background:#eeeeee;font-size:10.5pt;font-family:Consolas;padding:0cm;border:none windowtext 1.0pt">.obj</span></code><span><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif""> </span></span><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif"">file (in COFF format) contains more than 32766 sections. There is no way to avoid this error, at least not if you want to use Windows' PE/COFF object format; COFF files use only<span> </span><strong><span style="font-family:"Arial","sans-serif";border:none windowtext 1.0pt;padding:0cm">two bytes</span></strong>for "NumberOfSections" in the file header.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif"">So it seems to me that others should be hitting this limit as well. I would assume the number 39110 is the number of sections in Registry.cpp.obj. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif"">I’m not sure how to proceed from here. I don’t know enough about the Clang internals to try to break Registry.cpp into smaller object files, or even if that is possible. Perhaps I just need to give up on windows…<u></u><u></u></span></p>
<p class="MsoNormal"><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="background:white;font-size:10.5pt;font-family:"Arial","sans-serif"">Dennis Cote</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Dennis Cote <br>
<b>Sent:</b> October 18, 2013 2:29 PM<br><b>To:</b> 'G M'; cfe-dev<br><b>Subject:</b> RE: [cfe-dev] building LLVM/Clang on Windows 7 x64 using MinGW/MSYS<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks for the patch. It fixed the link error on lli.exe using the 64 bit tools. The build proceeded to the 82% mark and then failed with a couple of new errors from the assembler.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj: too many sections (39110)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:\Users\DennisC\AppData\Local\Temp\cc811i4n.s: Assembler messages:<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:\Users\DennisC\AppData\Local\Temp\cc811i4n.s: Fatal error: can't write CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj: File too big<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj: too many sections (39110)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:\Users\DennisC\AppData\Local\Temp\cc811i4n.s: Fatal error: can't close CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj: File too big<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/build.make:130: recipe for target `tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj' failed<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">make[2]: *** [tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj] Error 1<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">CMakeFiles/Makefile2:10926: recipe for target `tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/all' failed<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">make[1]: *** [tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/all] Error 2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Makefile:136: recipe for target `all' failed<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">make: *** [all] Error 2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Does anyone have any ideas about what might be causing the Registry.cpp.obj file to have too many sections?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">There were several warnings and notes generated when compiling Registry.cpp. The full output from the build step are copied below.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">[ 82%] Building CXX object tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">In file included from C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchers.h:50:0,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> from C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h:22,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> from C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/Dynamic/Diagnostics.h:21,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> from C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/Dynamic/Registry.h:20,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> from c:/cmd_line_tools/llvm/tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp:15:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h: In member function 'bool clang::ast_matchers::in<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ternal::ASTMatchFinder::matchesChildOf(const T&, const clang::ast_matchers::internal::DynTypedMatcher&, clang::ast_matchers::interna<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">l::BoundNodesTreeBuilder*, clang::ast_matchers::internal::ASTMatchFinder::TraversalKind, clang::ast_matchers::internal::ASTMatchFind<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">er::BindKind)':<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:688:9: warning: typedef 'unsupported_type_for_rec<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ursive_matching' locally defined but not used [-Wunused-local-typedefs]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> unsupported_type_for_recursive_matching);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:57:39: note: in definition of macro 'TOOLING_COMP<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ILE_ASSERT'<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> typedef CompileAssert<(bool(Expr))> Msg[bool(Expr) ? 1 : -1]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h: In member function 'bool clang::ast_matchers::in<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ternal::ASTMatchFinder::matchesDescendantOf(const T&, const clang::ast_matchers::internal::DynTypedMatcher&, clang::ast_matchers::in<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ternal::BoundNodesTreeBuilder*, clang::ast_matchers::internal::ASTMatchFinder::BindKind)':<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:705:9: warning: typedef 'unsupported_type_for_rec<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ursive_matching' locally defined but not used [-Wunused-local-typedefs]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> unsupported_type_for_recursive_matching);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:57:39: note: in definition of macro 'TOOLING_COMP<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ILE_ASSERT'<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> typedef CompileAssert<(bool(Expr))> Msg[bool(Expr) ? 1 : -1]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h: In member function 'bool clang::ast_matchers::in<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ternal::ASTMatchFinder::matchesAncestorOf(const T&, const clang::ast_matchers::internal::DynTypedMatcher&, clang::ast_matchers::inte<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">rnal::BoundNodesTreeBuilder*, clang::ast_matchers::internal::ASTMatchFinder::AncestorMatchMode)':<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:718:28: warning: typedef 'only_Decl_or_Stmt_allow<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ed_for_recursive_matching' locally defined but not used [-Wunused-local-typedefs]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> only_Decl_or_Stmt_allowed_for_recursive_matching);<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:57:39: note: in definition of macro 'TOOLING_COMP<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ILE_ASSERT'<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> typedef CompileAssert<(bool(Expr))> Msg[bool(Expr) ? 1 : -1]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h: In member function 'clang::ast_matchers::interna<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">l::PolymorphicMatcherWithParam0<MatcherT, ReturnTypesF>::operator clang::ast_matchers::internal::Matcher<From>() const':<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:863:28: warning: typedef 'right_polymorphic_conve<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">rsion' locally defined but not used [-Wunused-local-typedefs]<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> right_polymorphic_conversion);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:57:39: note: in definition of macro 'TOOLING_COMP<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ILE_ASSERT'<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> typedef CompileAssert<(bool(Expr))> Msg[bool(Expr) ? 1 : -1]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h: In member function 'clang::ast_matchers::interna<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">l::PolymorphicMatcherWithParam1<MatcherT, P1, ReturnTypesF>::operator clang::ast_matchers::internal::Matcher<From>() const':<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:881:28: warning: typedef 'right_polymorphic_conve<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">rsion' locally defined but not used [-Wunused-local-typedefs]<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> right_polymorphic_conversion);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:57:39: note: in definition of macro 'TOOLING_COMP<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ILE_ASSERT'<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> typedef CompileAssert<(bool(Expr))> Msg[bool(Expr) ? 1 : -1]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h: In member function 'clang::ast_matchers::interna<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">l::PolymorphicMatcherWithParam2<MatcherT, P1, P2, ReturnTypesF>::operator clang::ast_matchers::internal::Matcher<From>() const':<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:902:28: warning: typedef 'right_polymorphic_conve<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">rsion' locally defined but not used [-Wunused-local-typedefs]<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> right_polymorphic_conversion);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:/cmd_line_tools/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h:57:39: note: in definition of macro 'TOOLING_COMP<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ILE_ASSERT'<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> typedef CompileAssert<(bool(Expr))> Msg[bool(Expr) ? 1 : -1]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> ^<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles/clangDynamicASTMatchers.dir<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/Registry.cpp.obj: too many sections (39110)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:\Users\DennisC\AppData\Local\Temp\cc811i4n.s: Assembler messages:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:\Users\DennisC\AppData\Local\Temp\cc811i4n.s: Fatal error: can't write CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj: Fi<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">le too big<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles/clangDynamicASTMatchers.dir<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">/Registry.cpp.obj: too many sections (39110)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">C:\Users\DennisC\AppData\Local\Temp\cc811i4n.s: Fatal error: can't close CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj: Fi<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">le too big<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/build.make:130: recipe for target `tools/clang/lib/ASTMat<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">chers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj' failed<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">make[2]: *** [tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.obj] Error 1<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">CMakeFiles/Makefile2:10926: recipe for target `tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/all' faile<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">d<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">make[1]: *** [tools/clang/lib/ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/all] Error 2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Makefile:136: recipe for target `all' failed<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">make: *** [all] Error 2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks for any help you can offer.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dennis Cote<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> G M [<a href="mailto:gmisocpp@gmail.com" target="_blank">mailto:gmisocpp@gmail.com</a>] <br>
<b>Sent:</b> October 10, 2013 8:26 PM<br><b>To:</b> cfe-dev; Dennis Cote<br><b>Subject:</b> [cfe-dev] building LLVM/Clang on Windows 7 x64 using MinGW/MSYS<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Does this patch fix the problem for you?<u></u><u></u></p></div></div></div></div></div><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>