Boost C++ Libraries: Ticket #11881: b2 returns code 256 exit code instead zero https://svn.boost.org/trac10/ticket/11881 <p> Hello! </p> <p> I'm using b2 from boost_build1.5.8 and run it with flags: Command HOME=/root PATH=$PATH:/opt/fastnetmon/libraries/gcc520/bin /opt/fastnetmon/libraries/boost_build1.5.8/bin/b2 -j8 -sICU_PATH=/opt/fastnetmon/libraries/libicu_56_1 --build-dir=/tmp/fastnetmon.build.dir.DvDYep6dMm/boost_build_temp_directory_1_5_8 toolset=gcc-5.2 link=shared --without-test --without-python --without-wave --without-graph --without-coroutine --without-math --without-log --without-graph_parallel --without-mpi </p> <p> But I get 256 instead zero in case of correct exit. </p> <p> Could you fix this? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11881 Trac 1.4.3 viboes Sun, 03 Jan 2016 16:45:48 GMT component changed https://svn.boost.org/trac10/ticket/11881#comment:1 https://svn.boost.org/trac10/ticket/11881#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">Building Boost</span> </li> </ul> Ticket anonymous Fri, 08 Jan 2016 15:47:02 GMT <link>https://svn.boost.org/trac10/ticket/11881#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11881#comment:2</guid> <description> <p> As you can see I'm using custom compiler for Boost building. It could make sense. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 26 Feb 2016 19:32:48 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11881#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11881#comment:3</guid> <description> <p> Are you sure that this is wrong? You need to use WIFEXITED and WEXITSTATUS to get the actual exit code (which should be less than 256) from the status indicated by wait. </p> </description> <category>Ticket</category> </item> <item> <author>pavel.odintsov@…</author> <pubDate>Sun, 28 Feb 2016 15:28:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11881#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11881#comment:4</guid> <description> <p> I'm checking exit code with echo $? and it could handle exit code in proper way (and it doing this perfectly for other tools). So I'm definitely sure about broken exit code :) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Tue, 01 Mar 2016 04:34:02 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11881#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11881#comment:5</guid> <description> <ul><li>I don't know what 1.5.8 is. There is a 1.58.0, though. </li><li>I can't reproduce the problem, and I don't see any problems in the source either. The exit status appears to be propagated correctly. It should return 0 if all targets were successfully built and 1 otherwise. Our regression tests absolutely depend on this, too. </li></ul> </description> <category>Ticket</category> </item> </channel> </rss>