Boost C++ Libraries: Ticket #11375: Support Request -- boost 1.58 bootstrap.sh failed on SunOS 5.10 https://svn.boost.org/trac10/ticket/11375 <p> I cannot even generate b2 while compiling boost 1.58 since bootstrap.sh failed at very early stage. But it is ok while compiling boost 1.57 </p> <p> error message: -n Building Boost.Build engine with toolset gcc... </p> <p> Failed to build Boost.Build build engine Consult 'bootstrap.log' for more details </p> <p> bootstrap.log: ./build.sh: syntax error at line 147: `BOOST_JAM_CC=$' unexpected </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11375 Trac 1.4.3 John Maddock Fri, 12 Jun 2015 18:15:15 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11375#comment:1 https://svn.boost.org/trac10/ticket/11375#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">build</span> </li> </ul> Ticket makiolo@… Mon, 27 Jul 2015 14:56:31 GMT <link>https://svn.boost.org/trac10/ticket/11375#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11375#comment:2</guid> <description> <p> [] Same here, my solution was: </p> <pre class="wiki">--- boost_1_58_0/tools/build/src/engine/build.sh~ 2015-07-27 15:39:31.215477000 +0200 +++ boost_1_58_0/tools/build/src/engine/build.sh 2015-07-27 15:41:00.309551000 +0200 @@ -145,9 +145,9 @@ case $BOOST_JAM_TOOLSET in which icc &gt;/dev/null 2&gt;&amp;1 if test $? ; then - BOOST_JAM_CC=$(which icc) + BOOST_JAM_CC=`which icc` echo "Found $BOOST_JAM_CC in environment" - BOOST_JAM_TOOLSET_ROOT=$(echo $BOOST_JAM_CC | sed -e 's/bin.*\/icc//') + BOOST_JAM_TOOLSET_ROOT=`echo $BOOST_JAM_CC | sed -e 's/bin.*\/icc//'` # probably the most widespread ARCH=intel64 else </pre><p> A second and last problem in my case, was resolved with this: </p> <pre class="wiki">--- boost_1_58_0/tools/build/src/tools/gcc.jam~ 2015-04-04 19:25:07.000000000 +0200 +++ boost_1_58_0/tools/build/src/tools/gcc.jam 2015-07-27 16:47:32.743000000 +0200 @@ -1138,7 +1138,7 @@ cpu-flags gcc OPTIONS : x86 : c3-2 : -ma ## cpu-flags gcc OPTIONS : x86 : atom : -march=atom ; # Sparc -cpu-flags gcc OPTIONS : sparc : c3 : -mcpu=c3 : default ; +cpu-flags gcc OPTIONS : sparc : c3 : -mcpu=c3 ; cpu-flags gcc OPTIONS : sparc : v7 : -mcpu=v7 ; cpu-flags gcc OPTIONS : sparc : cypress : -mcpu=cypress ; cpu-flags gcc OPTIONS : sparc : v8 : -mcpu=v8 ; @@ -1150,7 +1150,7 @@ cpu-flags gcc OPTIONS : sparc : f930 : - cpu-flags gcc OPTIONS : sparc : f934 : -mcpu=f934 ; cpu-flags gcc OPTIONS : sparc : sparclet : -mcpu=sparclet ; cpu-flags gcc OPTIONS : sparc : tsc701 : -mcpu=tsc701 ; -cpu-flags gcc OPTIONS : sparc : v9 : -mcpu=v9 ; +cpu-flags gcc OPTIONS : sparc : v9 : -mcpu=v9 : default ; cpu-flags gcc OPTIONS : sparc : ultrasparc : -mcpu=ultrasparc ; cpu-flags gcc OPTIONS : sparc : ultrasparc3 : -mcpu=ultrasparc3 ; # RS/6000 &amp; PowerPC </pre> </description> <category>Ticket</category> </item> <item> <author>martin.dorey@…</author> <pubDate>Fri, 02 Sep 2016 18:20:25 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11375#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11375#comment:3</guid> <description> <p> Trying to bootstrap 1.61.0, also on "SunOS" 5.10, I ran into much the same problem: </p> <pre class="wiki">./build.sh: syntax error at line 135: `machine=$' unexpected </pre><p> ... which I solved with: </p> <pre class="wiki">--- 1.1/tools/build/src/engine/build.sh 2016-08-11 19:34:41 -07:00 +++ edited/tools/build/src/engine/build.sh 2016-09-02 11:12:04 -07:00 @@ -1,4 +1,4 @@ (unknown) -#!/bin/sh +#!/bin/bash #~ Copyright 2002-2005 Rene Rivera. #~ Distributed under the Boost Software License, Version 1.0. </pre><p> (Our-ref: D125326) </p> </description> <category>Ticket</category> </item> </channel> </rss>