Boost logo

Boost Users :

From: Piotr Kowalski (koval.gnu_at_[hidden])
Date: 2019-11-28 11:22:57


build.sh is intended for /bin/sh but uses bash-specific syntax $(command)

You need to either change first line to #!/bin/bash or change line 143 to
machine=`gcc -dumpmachine 2>/dev/null` which is /bin/sh's way to express
$(...)
Seems that Solaris's /bin/sh is really what the name says - the old POSIX
shell where on Linux it is a symbolic link to bash

czw., 28 lis 2019 o 06:32 kamallochan Jena via Boost-users <
boost-users_at_[hidden]> napisał(a):

> Hi All,
>
> Thanks for your support!!!
>
> In SunOS platform, The bootstrap.sh from boost_1_70_0 failed with error "
> ./build.sh: syntax error at line 143: `machine=$' unexpected "
> Can any one look into it and kindly suggest how to fix this issue and
> proceed further.
>
> *It is blocking our current project build!!!*
>
> *PFB, the details:*
>
> $ uname -a
> SunOS kamal Generic_150401-55 i86pc i386 i86pc
>
> $ cd 3rdparty/boost/tools/build
> $ ls
> boost-build.jam bootstrap.bat CONTRIBUTING.rst example
> Jamroot.jam notes src
> bootstrap_vms.com bootstrap.sh doc index.html
> LICENSE.txt README.rst test
> $ ./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
> ./build.sh: syntax error at line 143: `machine=$' unexpected
>
> Thanks,
> Kamal
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net