Boost C++ Libraries: Ticket #4774: building xml_grammar.o and xml_wgrammar.o with MinGW-4.5.0 fails https://svn.boost.org/trac10/ticket/4774 <p> I am trying to build boost trunk rev. 66150 under Windows, using MinGW-4.5.0. </p> <p> gcc -v: </p> <pre class="wiki">Using built-in specs. COLLECT_GCC=c:\mingw\bin\gcc.exe COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/lto-wrapper.exe Target: mingw32 Configured with: ../gcc-4.5.0/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --disable-werror --build=mingw32 --prefix=/mingw Thread model: win32 gcc version 4.5.0 (GCC) </pre><p> project-config.jam: </p> <pre class="wiki">import option ; import feature ; if ! gcc in [ feature.values &lt;toolset&gt; ] { using gcc ; } project : default-build &lt;toolset&gt;gcc ; local BOOST = "C:/boost" ; local VER = "trunk" ; libraries = ; option.set prefix : $(BOOST) ; option.set exec-prefix : $(BOOST) ; option.set libdir : $(BOOST)/lib/boost-$(VER) ; option.set includedir : $(BOOST)/include/boost-$(VER) ; option.set layout : tagged ; option.set keep-going : false ; </pre><p> ./bjam install </p> <pre class="wiki">Performing configuration checks - has_icu builds : no warning: Graph library does not contain MPI-based parallel components. note: to enable them, add "using mpi ;" to your user-config.jam - ../config//has_gcc_visibility builds : no - ../config//has_long_double_support builds : yes warning: skipping optional Message Passing Interface (MPI) library. note: to enable MPI support, add "using mpi ;" to user-config.jam. note: to suppress this message, pass "--without-mpi" to bjam. note: otherwise, you can safely ignore this message. warning: No python installation configured and autoconfiguration note: failed. See http://www.boost.org/libs/python/doc/building.html note: for configuration instructions or pass --without-python to note: suppress this message and silently skip all Boost.Python targets Component configuration: - date_time : building - exception : building - filesystem : building - graph : building - graph_parallel : building - iostreams : building - math : building - mpi : building - program_options : building - python : building - random : building - regex : building - serialization : building - signals : building - system : building - test : building - thread : building - wave : building ...patience... ...patience... ...patience... ...found 22440 targets... ...updating 16 targets... gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_grammar.o "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads -DBOOST_ALL_NO_LIB=1 -I"." -c -o "bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_grammar.o" "libs\serialization\src\xml_grammar.cpp" ...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_grammar.o... ...skipped &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi&gt;libboost_serialization-mt-d.a(clean) for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi&gt;xml_grammar.o... ...skipped &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi&gt;libboost_serialization-mt-d.a for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi&gt;xml_grammar.o... ...skipped &lt;pC:\boost\lib\boost-trunk&gt;libboost_serialization-mt-d.a for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi&gt;libboost_serialization-mt-d.a... gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_wgrammar.o "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -mthreads -DBOOST_ALL_NO_LIB=1 -I"." -c -o "bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_wgrammar.o" "libs\serialization\src\xml_wgrammar.cpp" ...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi\xml_wgrammar.o... ...skipped &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi&gt;libboost_wserialization-mt-d.a(clean) for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi&gt;xml_wgrammar.o... ...skipped &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi&gt;libboost_wserialization-mt-d.a for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi&gt;xml_wgrammar.o... ...skipped &lt;pC:\boost\lib\boost-trunk&gt;libboost_wserialization-mt-d.a for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\debug\link-static\threading-multi&gt;libboost_wserialization-mt-d.a... gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_grammar.o "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -mthreads -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_grammar.o" "libs\serialization\src\xml_grammar.cpp" ...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_grammar.o... ...skipped &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi&gt;libboost_serialization-mt.a(clean) for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi&gt;xml_grammar.o... ...skipped &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi&gt;libboost_serialization-mt.a for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi&gt;xml_grammar.o... ...skipped &lt;pC:\boost\lib\boost-trunk&gt;libboost_serialization-mt.a for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi&gt;libboost_serialization-mt.a... gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_wgrammar.o "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -mthreads -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_wgrammar.o" "libs\serialization\src\xml_wgrammar.cpp" ...failed gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi\xml_wgrammar.o... ...skipped &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi&gt;libboost_wserialization-mt.a(clean) for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi&gt;xml_wgrammar.o... ...skipped &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi&gt;libboost_wserialization-mt.a for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi&gt;xml_wgrammar.o... ...skipped &lt;pC:\boost\lib\boost-trunk&gt;libboost_wserialization-mt.a for lack of &lt;pbin.v2\libs\serialization\build\gcc-mingw-4.5.0\release\link-static\threading-multi&gt;libboost_wserialization-mt.a... ...failed updating 4 targets... ...skipped 12 targets... </pre><p> If any more information is needed, please let me know what else I can do. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4774 Trac 1.4.3 anonymous Sat, 23 Oct 2010 12:21:15 GMT summary changed https://svn.boost.org/trac10/ticket/4774#comment:1 https://svn.boost.org/trac10/ticket/4774#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">building xml_archiver.o and xml_warchiver.o with MinGW-4.5.0 fails</span> → <span class="trac-field-new">building xml_grammar.o and xml_wgrammar.o with MinGW-4.5.0 fails</span> </li> </ul> Ticket 1czajnik@… Sun, 24 Oct 2010 11:43:12 GMT <link>https://svn.boost.org/trac10/ticket/4774#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4774#comment:2</guid> <description> <p> I have tried compiling releases 1_44_0 and 1_43_0 with the same configuration, and they both compiled fine. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Bryce Adelstein Lelbach</dc:creator> <pubDate>Sun, 24 Oct 2010 12:44:00 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4774#comment:3 https://svn.boost.org/trac10/ticket/4774#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> It's a new grammar. This works fine in regressions, and on my machine. I suspect the problem is on your end. Are you compiling in the VS10 command prompt? </p> Ticket Bryce Adelstein Lelbach Sun, 24 Oct 2010 12:44:20 GMT cc set https://svn.boost.org/trac10/ticket/4774#comment:4 https://svn.boost.org/trac10/ticket/4774#comment:4 <ul> <li><strong>cc</strong> <span class="trac-author">Bryce Adelstein Lelbach</span> added </li> </ul> Ticket 1czajnik@… Sun, 24 Oct 2010 13:19:12 GMT <link>https://svn.boost.org/trac10/ticket/4774#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4774#comment:5</guid> <description> <p> As a command prompt I am using msys-1.0.10. </p> <p> What is VS10 command prompt? If it has got something to do with Visual Studio, I don't use it and don't have it installed. </p> <p> Is there a way to make bjam print more information about the build error? The compiler error, etc. </p> </description> <category>Ticket</category> </item> </channel> </rss>