Opened 4 years ago

Last modified 2 years ago

#11375 new Bugs

Support Request -- boost 1.58 bootstrap.sh failed on SunOS 5.10

Reported by: chenbo369@… 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 Changed 4 years ago by John Maddock

Component: Nonebuild
Owner: set to Vladimir Prus

comment:2 Changed 3 years ago by makiolo@…

[] 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
     else

A second and last problem in my case, was resolved with this:

--- 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 & PowerPC                                                                                                                                            

comment:3 Changed 2 years ago by martin.dorey@…

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.