Boost C++ Libraries: Ticket #4884: boost 1.45.0 build error with vc++ express 2010 https://svn.boost.org/trac10/ticket/4884 <p> Hi, </p> <p> my name is Marco Pappalepore, in case of need write me at crillion tiscali it. </p> <blockquote> <p> I'm trying to build boost version 1.45.0 on my system: </p> </blockquote> <p> windows vista (business version and ultimate version) sp2 microsoft visual c++ express 2010 boost 1.45.0 bjam 3.1.18 </p> <p> Like usual, to build boost I follow these steps: 1) I extract boost in a version-named folder (.../boost/boost_1_45_0) 2) I create an empty folder for the build (.../boost/boost_1_45_0_build) 3) I copy bjam.exe in the source folder (.../boost/boost_1_45_0) 4) I open a Visual Studio Command Prompt(2010) (command prompt with environment variables for visual studio) 5) I launch this command(which used to work with the latest versions of the library, including 1.44.0): </p> <p> bjam --prefix="..\boost_1_45_0_build" install </p> <p> 6) I get an error (while usually the build process started and was successful with earlier versions of the library). The message is this: </p> <p> warning: No toolsets are configured. warning: Configuring default toolset "msvc". warning: If the default is wrong, your build may not work correctly. warning: Use the "toolset=xxxxx" option to override our guess. warning: For more configuration options, please consult warning: <a class="ext-link" href="http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html"><span class="icon">​</span>http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html</a> Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\configure.jam:145: in builds-raw <strong>* argument error </strong></p> <ul><li>rule UPDATE_NOW ( targets * : log ? : ignore-minus-n ? ) </li><li>called with: ( &lt;pbin.v2\libs\regex\build\msvc-10.0\debug&gt;has_icu.exe &lt;pbin.v2\libs\regex\build\msvc-10.0\debug&gt;has_icu.pdb : : ignore-minus-n : ignore-minus-q ) </li><li>extra argument ignore-minus-q </li></ul><p> (builtin):see definition of rule 'UPDATE_NOW' being called Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\configure.jam:179: in configure.builds Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\configure.jam:216: in object(check-target-builds-worker)@443.check Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/kernel\modules.jam:103: in modules.call-in Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/util\indirect.jam:96: in indirect.call Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1012: in targets.evaluate-requirements Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1393: in basic-target.compute-usage-requirements Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\alias.jam:47: in compute-usage-requirements Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1319: in object(alias-target-class)@447.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:732: in generate-really Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:704: in object(main-target)@886.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:848: in targets.generate-from-reference Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1217: in generate-dependencies Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1268: in object(typed-target)@450.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:732: in generate-really Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:704: in object(main-target)@887.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:848: in targets.generate-from-reference Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1217: in generate-dependencies Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1266: in object(typed-target)@152.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:732: in generate-really Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:704: in object(main-target)@868.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:258: in object(project-target)@134.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:848: in targets.generate-from-reference Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1217: in generate-dependencies Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1268: in object(install-target-class)@50.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:732: in generate-really Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:704: in object(main-target)@701.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:848: in targets.generate-from-reference Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1217: in generate-dependencies Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1268: in object(alias-target-class)@44.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:732: in generate-really Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:704: in object(main-target)@700.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:848: in targets.generate-from-reference Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1217: in generate-dependencies Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1268: in object(alias-target-class)@43.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:732: in generate-really Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:704: in object(main-target)@699.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:848: in targets.generate-from-reference Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1217: in generate-dependencies Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1268: in object(alias-target-class)@60.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:732: in generate-really Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:704: in object(main-target)@705.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:848: in targets.generate-from-reference Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1217: in generate-dependencies Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:1268: in alias-target-class.generate Jamroot:648: in build-multiple Jamroot:612: in object(top-level-target)@68.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:732: in generate-really Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2/build\targets.jam:704: in object(main-target)@709.generate Z:/data/users/marco_pappalepore/data/projects/external/boost/boost_1_45_0/tools/build/v2\build-system.jam:735: in load Z:\data\users\marco_pappalepore\data\projects\external\boost\boost_1_45_0\tools\build\v2/kernel\modules.jam:283: in import Z:\data\users\marco_pappalepore\data\projects\external\boost\boost_1_45_0\tools\build\v2\kernel\bootstrap.jam:142: in boost-build Z:\data\users\marco_pappalepore\data\projects\external\boost\boost_1_45_0\boost-build.jam:17: in module scope </p> <p> so, is this a problem with the build system ? or should I use a different set of commands/operations ? </p> <p> many thanks, </p> <blockquote> <p> Marco </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4884 Trac 1.4.3 Marco Pappalepore <crillion@…> Wed, 24 Nov 2010 09:49:34 GMT component changed; keywords set https://svn.boost.org/trac10/ticket/4884#comment:1 https://svn.boost.org/trac10/ticket/4884#comment:1 <ul> <li><strong>keywords</strong> configure.jam argument error rule UPDATE_NOW added </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">Building Boost</span> </li> </ul> Ticket nop@… Thu, 25 Nov 2010 16:01:36 GMT <link>https://svn.boost.org/trac10/ticket/4884#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4884#comment:2</guid> <description> <p> A quick work around: </p> <p> Remove the offending argument to UPDATE_NOW in tools\build\v2\build\configure.jam on line 145. That is: just remove ": ignore-minus-q" so the line becomes "$(.log-fd) : ignore-minus-n ]", and all works well. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 27 Nov 2010 14:16:43 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4884#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4884#comment:3</guid> <description> <p> Have you tried to rebuild bjam (the version for 1.45 is 3.1.19 (on root run ./bootstrap.sh)? </p> </description> <category>Ticket</category> </item> <item> <author>hellhound_01@…</author> <pubDate>Mon, 29 Nov 2010 08:20:06 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4884#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4884#comment:4</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4884#comment:3" title="Comment 3">viboes</a>: </p> <blockquote class="citation"> <p> Have you tried to rebuild bjam (the version for 1.45 is 3.1.19 (on root run ./bootstrap.sh)? </p> </blockquote> <p> If i try to run boostrap.sh (Using MinGW GCC 4.5.0) bootstraping fails with following failrure: </p> <p> ### ### Using 'gcc' toolset. ### rm -rf bootstrap mkdir bootstrap gcc -o bootstrap/jam0 command.c compile.c debug.c expand.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c output.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c pwd.c class.c native.c md5.c w32_getreg.c modules/set.c modules/path.c modules/regex.c modules/property-set.c modules/sequence.c modules/order.c execunix.c fileunix.c builtins.c:32:23: fatal error: sys/wait.h: No such file or directory compilation terminated. execunix.c:17:26: fatal error: sys/resource.h: No such file or directory compilation terminated. fileunix.c:97:17: fatal error: ar.h: No such file or directory compilation terminated. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 30 Nov 2010 07:17:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4884#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4884#comment:5</guid> <description> <p> You should use boostrap.bat on mingw. </p> </description> <category>Ticket</category> </item> <item> <author>hellhound_01@…</author> <pubDate>Tue, 30 Nov 2010 07:56:19 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4884#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4884#comment:6</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4884#comment:5" title="Comment 5">viboes</a>: </p> <blockquote class="citation"> <p> You should use boostrap.bat on mingw. </p> </blockquote> <p> This is confusing. I'm using the MSYS unix shell, why in hell i should use a batch file? Btw the batch program is working, after some path definitions (i.e. GCC), which are normally not requried if you use MSYS in handshake with MinGW ... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>René Rivera</dc:creator> <pubDate>Tue, 30 Nov 2010 14:01:20 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4884#comment:7 https://svn.boost.org/trac10/ticket/4884#comment:7 <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> You need to use the latest version of bjam. On Windows by running booststrap.bat, i.e. following the getting started instructions. </p> Ticket dumitru.frunza@… Fri, 21 Jan 2011 15:05:55 GMT <link>https://svn.boost.org/trac10/ticket/4884#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4884#comment:8</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4884#comment:2" title="Comment 2">nop@…</a>: </p> <blockquote class="citation"> <p> A quick work around: </p> <p> Remove the offending argument to UPDATE_NOW in tools\build\v2\build\configure.jam on line 145. That is: just remove ": ignore-minus-q" so the line becomes "$(.log-fd) : ignore-minus-n ]", and all works well. </p> </blockquote> <p> That does the trick. </p> <p> Running bootstrap.bat is a no-go - my MSYS shell spits tons of errors about not understanding the commands within. </p> <p> bootstrap.sh doesn't do better - it fails with <em>ar.h: No such file or directory compilation terminated</em> </p> <p> So the "solution" would be to bypass bootstrap.* completely, go with </p> <pre class="wiki">bjam toolset=gcc </pre><p> (build <em>bjam</em> separately, no issues here), until you hit the error above, and use the quick-fix suggested by <em>nop@</em>. </p> <p> Works like a charm. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Thu, 27 Jan 2011 19:20:06 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4884#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4884#comment:9</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4884#comment:6" title="Comment 6">hellhound_01@…</a>: </p> <blockquote class="citation"> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4884#comment:5" title="Comment 5">viboes</a>: </p> <blockquote class="citation"> <p> You should use boostrap.bat on mingw. </p> </blockquote> <p> This is confusing. I'm using the MSYS unix shell, why in hell i should use a batch file? Btw the batch program is working, after some path definitions (i.e. GCC), which are normally not requried if you use MSYS in handshake with MinGW ... </p> </blockquote> <p> The boost build doesn't support the MSYS shell, you need to use cmd.exe instead for the purpose of compiling. </p> </description> <category>Ticket</category> </item> <item> <author>Jim Bell <jim@…></author> <pubDate>Sun, 06 Mar 2011 15:36:11 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4884#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4884#comment:10</guid> <description> <p> MinGW:<br /> </p> <pre class="wiki"> cd BOOST_ROOT/tools/build/v2/engine/src ./build.sh mingw </pre><p> It builds BOOST_ROOT/tools/build/v2/engine/src/bin.ntx86/bjam.exe. That's the one to use. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Tue, 22 Mar 2011 06:43:24 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4884#comment:11 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4884#comment:11</guid> <description> <p> bjam sucks... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 13 May 2011 11:43:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4884#comment:12 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4884#comment:12</guid> <description> <p> Thanks for the hints. I got all boost v1.46.1 libraries compiled on mingw doing this: </p> <pre class="wiki">cd BOOST_ROOT/tools/build/v2/engine/src ./build.sh mingw cd BOOST_ROOT tools/build/v2/engine/src/bin.ntx86/bjam.exe toolset=gcc </pre> </description> <category>Ticket</category> </item> </channel> </rss>