Thank you for your response.
Have modified the build.sh as mentioned, and for all below cases build.sh is failing with Error:
ld: fatal: symbol referencing errors. No output written to bootstrap/jam0
Case 1> #!/bin/sh ---> #!/bin/bash
Case 2> machine=$(gcc -dumpmachine 2>/dev/null) ---> machine=`gcc -dumpmachine 2>/dev/null`
Case 3> machine=$(gcc -dumpmachine 2>/dev/null) --->
machine=` echo $(gcc -dumpmachine 2>/dev/null) `
FYI, default shell of SunOS is /bin/sh
$ echo $SHELL
/bin/sh
Details:
$ ./bootstrap.sh
-n Bootstrapping the build engine with toolset sun...
Failed to bootstrap the build engine
Consult 'bootstrap.log' for more details
$ cat bootstrap.log
###
### Using 'sun' toolset.
###
rm -rf bootstrap
mkdir bootstrap
cc -o bootstrap/jam0 command.c compile.c constants.c debug.c execcmd.c frames.c function.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c object.c option.c output.c parse.c pathsys.c regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c modules.c strings.c filesys.c builtins.c class.c cwd.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 pathunix.c
command.c:
compile.c:
constants.c:
debug.c:
execcmd.c:
frames.c:
function.c:
glob.c:
hash.c:
hdrmacro.c:
headers.c:
jam.c:
jambase.c:
jamgram.c:
lists.c:
make.c:
make1.c:
object.c:
option.c:
output.c:
parse.c:
pathsys.c:
regexp.c:
rules.c:
scan.c: search.c:
subst.c:
timestamp.c:
variable.c:
modules.c:
strings.c:
filesys.c:
builtins.c:
class.c:
cwd.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:
pathunix.c:
Undefined first referenced
symbol in file
clock_gettime timestamp.o
ld: fatal: symbol referencing errors. No output written to bootstrap/jam0
bash-3.2$
--------------