Opened 7 years ago
Last modified 6 years ago
#11375 new Bugs
Support Request -- boost 1.58 bootstrap.sh failed on SunOS 5.10
| Reported by: | Owned by: | Vladimir Prus | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | build |
| Version: | Boost 1.58.0 | Severity: | Problem |
| Keywords: | bootstrap.sh SunOS | Cc: |
Description
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
error message: -n Building Boost.Build engine with toolset gcc...
Failed to build Boost.Build build engine Consult 'bootstrap.log' for more details
bootstrap.log: ./build.sh: syntax error at line 147: `BOOST_JAM_CC=$' unexpected
Change History (3)
comment:1 by , 7 years ago
| Component: | None → build |
|---|---|
| Owner: | set to |
comment:2 by , 7 years ago
comment:3 by , 6 years ago
Trying to bootstrap 1.61.0, also on "SunOS" 5.10, I ran into much the same problem:
./build.sh: syntax error at line 135: `machine=$' unexpected
... which I solved with:
--- 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.
(Our-ref: D125326)
Note:
See TracTickets
for help on using tickets.

[] Same here, my solution was:
--- 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 >/dev/null 2>&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 elseA second and last problem in my case, was resolved with this: