Boost C++ Libraries: Ticket #4735: MinGW version 'mingw-x.y.z' requested but 'g++-mingw-x.y.z' not found and version 'x.y.z' of default 'g++' does not match https://svn.boost.org/trac10/ticket/4735 <p> MinGW's version <strong><em>may</em></strong> be prefixed with 'g++-', and failing to match this variation causes many tests to fail. </p> <pre class="wiki">.../trunk/boost/tools/build/v2/tools\gcc.jam:106: in gcc.init from module gcc error: toolset gcc initialization: error: version 'mingw-4.3.3' requested but 'g++-mingw-4.3.3' not found and version '4.3.3' of default 'g++' does not match </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4735 Trac 1.4.3 Jim Bell <jim@…> Sun, 17 Oct 2010 23:53:52 GMT <link>https://svn.boost.org/trac10/ticket/4735#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4735#comment:1</guid> <description> <p> mingw g++ -dumpversion returns '4.3.3', but the version string passed into the rule has the 'mingw-' prefix attached, to it fails to match '4.3.3'. </p> <p> g++ -dumpmachine returns 'mingw32' </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Sat, 23 Oct 2010 08:50:46 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4735#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4735#comment:2</guid> <description> <p> Jim, I don't understand what's going on here. This error message should be only emitted if you have </p> <pre class="wiki">using gcc : mingw-4.3.3 ; </pre><p> in user-config.jam, without any command. Is that the case? If so, why are you specifying a version at all? </p> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Sat, 23 Oct 2010 12:30:29 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4735#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4735#comment:3</guid> <description> <p> It's acting as though that were the case, but my ./tools_bb/user-config.jam has only this un-commented: </p> <pre class="wiki">using gcc ; </pre><p> It must be inserting the mingw somewhere, but I couldn't figure out where. Could we patch my test to try to trace it? </p> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Wed, 17 Nov 2010 13:29:24 GMT</pubDate> <title>summary changed https://svn.boost.org/trac10/ticket/4735#comment:4 https://svn.boost.org/trac10/ticket/4735#comment:4 <ul> <li><strong>summary</strong> <span class="trac-field-old">MinGW version</span> → <span class="trac-field-new">MinGW version 'mingw-x.u.z' requested but 'g++-mingw-x.y.z' not found and version 'x.y.z' of default 'g++' does not match</span> </li> </ul> <p> Notice, too, the command-line <a class="ext-link" href="http://tinyurl.com/2w836hp"><span class="icon">​</span>here</a>: </p> <hr /> <p> <code>"['bjam', '-sBOOST_BUILD_PATH="F:\\tmp\\boost-MinGW-32\\trunk\\boost\\tools\\build\\v2\\test/.."', '-d0', '--quiet', 'toolset=gcc-mingw-4.3.3', '--test-config="F:\\tmp\\boost-MinGW-32\\trunk\\boost\\tools\\build\\v2\\test\\test-config.jam"', '--ignore-toolset-requirements']" returned 1</code> </p> <hr /> <p> It's passing in <code>gcc-mingw-4.3.3</code> which doesn't exactly match anything on the error message on line 106. </p> <p> I'm submitting a patch for build-system.jam that filters out the '-mingw' explicitly. You might not like it, but it does get past line 106. </p> Ticket Jim Bell <jim@…> Wed, 17 Nov 2010 13:30:18 GMT attachment set https://svn.boost.org/trac10/ticket/4735 https://svn.boost.org/trac10/ticket/4735 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">build-v2-build-system-jam.patch</span> </li> </ul> Ticket Jim Bell <jim@…> Wed, 17 Nov 2010 15:12:07 GMT summary changed https://svn.boost.org/trac10/ticket/4735#comment:5 https://svn.boost.org/trac10/ticket/4735#comment:5 <ul> <li><strong>summary</strong> <span class="trac-field-old">MinGW version 'mingw-x.u.z' requested but 'g++-mingw-x.y.z' not found and version 'x.y.z' of default 'g++' does not match</span> → <span class="trac-field-new">MinGW version 'mingw-x.y.z' requested but 'g++-mingw-x.y.z' not found and version 'x.y.z' of default 'g++' does not match</span> </li> </ul> Ticket Jim Bell <jim@…> Fri, 10 Dec 2010 16:55:22 GMT type changed https://svn.boost.org/trac10/ticket/4735#comment:6 https://svn.boost.org/trac10/ticket/4735#comment:6 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Patches</span> </li> </ul> <p> I'm more and more convinced that this patch is the real fix. </p> <p> One mystery solved: the regression test passes the toolset into test_all.py on the command-line, as such: </p> <hr /> <p> "C:\Software\Open\Python\python.exe" test_all.py --default-bjam --xml gcc-mingw-4.4.0 1&gt;F:\boost\MinGW-32\trunk\results\boost-build-gcc-mingw-4.4.0\test_log.xml </p> <hr /> <p> Called without a toolset, it defaults to just "gcc" and works fine. This solves <a class="ext-link" href="http://lists.boost.org/Archives/boost/2010/12/173676.php"><span class="icon">​</span>http://lists.boost.org/Archives/boost/2010/12/173676.php</a>. </p> Ticket Jim Bell <jim@…> Fri, 10 Dec 2010 16:55:43 GMT version changed https://svn.boost.org/trac10/ticket/4735#comment:7 https://svn.boost.org/trac10/ticket/4735#comment:7 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.44.0</span> → <span class="trac-field-new">Boost 1.46.0</span> </li> </ul> Ticket Jim Bell <jim@…> Fri, 10 Dec 2010 16:56:03 GMT version, milestone changed https://svn.boost.org/trac10/ticket/4735#comment:8 https://svn.boost.org/trac10/ticket/4735#comment:8 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.46.0</span> → <span class="trac-field-new">Boost Development Trunk</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.46.0</span> </li> </ul> Ticket