<div dir="ltr"><br><div>Hi Piotr,</div><div><br></div><div>Thank you for your support and update on this issue!!!</div><div><br></div><div>As you suggested, I updated build.sh script and add -lrt at the end of line 350, but still facing the same error.</div>                             echo_run ${BOOST_JAM_CC} ${BOOST_JAM_OPT_JAM} ${BJAM_SOURCES} -lrt<div><br></div><div><b>Here is the details of Log: ----------------</b><br></div><div><div><br></div><div>$ ./bootstrap.sh<br>-n Bootstrapping the build engine with toolset sun...<br><br>Failed to bootstrap the build engine<br>Consult &#39;bootstrap.log&#39; for more details</div><div><br>$ cat bootstrap.log<br>###<br>### Using &#39;sun&#39; toolset.<br>###<br>rm -rf bootstrap<br>mkdir bootstrap<br>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 -lrt<br>command.c:<br>compile.c:<br>constants.c:<br>debug.c:<br>execcmd.c:<br>frames.c:<br>function.c:<br>glob.c:<br>hash.c:<br>hdrmacro.c:<br>headers.c:<br>jam.c:<br>jambase.c:<br>jamgram.c:<br>lists.c:<br>make.c:<br>make1.c:<br>object.c:<br>option.c:<br>output.c:<br>parse.c:<br>pathsys.c:<br>regexp.c:<br>rules.c:<br>scan.c:<br>search.c:<br>subst.c:<br>timestamp.c:<br>variable.c:<br>modules.c:<br>strings.c:<br>filesys.c:<br>builtins.c:<br>class.c:<br>cwd.c:<br>native.c:<br>md5.c:<br>w32_getreg.c:<br>modules/set.c:<br>modules/path.c:<br>modules/regex.c:<br>modules/property-set.c:<br>modules/sequence.c:<br>modules/order.c:<br>execunix.c:<br>fileunix.c:<br>pathunix.c:<br>./bootstrap/jam0 -f build.jam --toolset=sun --toolset-root=/opt/SUNWspro/ clean<br>...found 1 target...<br>...updating 1 target...<br>...updated 1 target...<br>./bootstrap/jam0 -f build.jam --toolset=sun --toolset-root=/opt/SUNWspro/<br>...found 160 targets...<br>...updating 2 targets...<br>[COMPILE] bin.solarisx86/b2<br>command.c:<br>compile.c:<br>constants.c:<br>debug.c:<br>debugger.c:<br>&quot;debugger.c&quot;, line 2673: warning: statement not reached<br>execcmd.c:<br>frames.c:<br>function.c:<br>glob.c:<br>hash.c:<br>hcache.c:<br>headers.c:<br>hdrmacro.c:<br>jam.c:<br>jambase.c:<br>jamgram.c:<br>lists.c:<br>make.c:<br>make1.c:<br>mem.c:<br>object.c:<br>option.c:<br>output.c:<br>parse.c:<br>pathsys.c:<br>regexp.c:<br>rules.c:<br>scan.c:<br>search.c:<br>subst.c:<br>w32_getreg.c:<br>timestamp.c:<br>variable.c:<br>modules.c:<br>strings.c:<br>filesys.c:<br>builtins.c:<br>class.c:<br>cwd.c:<br>native.c:<br>md5.c:<br>modules/set.c:<br>modules/path.c:<br>modules/regex.c:<br>modules/property-set.c:<br>modules/sequence.c:<br>modules/order.c:<br>execunix.c:<br>fileunix.c:<br>pathunix.c:<br>Undefined                       first referenced<br> symbol                             in file<br>clock_gettime                       timestamp.o<br>ld: fatal: symbol referencing errors. No output written to bin.solarisx86/b2<br><br>    &quot;cc&quot;   -o bin.solarisx86/b2 &quot;-DNDEBUG&quot; &quot;-DOPT_HEADER_CACHE_EXT&quot; &quot;-DOPT_GRAPH_DEBUG_EXT&quot; &quot;-DOPT_SEMAPHORE&quot; &quot;-DOPT_AT_FILES&quot; &quot;-DOPT_DEBUG_PROFILE&quot; &quot;-DJAM_DEBUGGER&quot; &quot;-DOPT_FIX_TARGET_VARIABLES_EXT&quot; &quot;-DOPT_IMPROVED_PATIENCE_EXT&quot; &quot;-DYYSTACKSIZE=5000&quot; &quot;-s&quot; &quot;-xO3&quot; &quot;command.c&quot; &quot;compile.c&quot; &quot;constants.c&quot; &quot;debug.c&quot; &quot;debugger.c&quot; &quot;execcmd.c&quot; &quot;frames.c&quot; &quot;function.c&quot; &quot;glob.c&quot; &quot;hash.c&quot; &quot;hcache.c&quot; &quot;headers.c&quot; &quot;hdrmacro.c&quot; &quot;jam.c&quot; &quot;jambase.c&quot; &quot;jamgram.c&quot; &quot;lists.c&quot; &quot;make.c&quot; &quot;make1.c&quot; &quot;mem.c&quot; &quot;object.c&quot; &quot;option.c&quot; &quot;output.c&quot; &quot;parse.c&quot; &quot;pathsys.c&quot; &quot;regexp.c&quot; &quot;rules.c&quot; &quot;scan.c&quot; &quot;search.c&quot; &quot;subst.c&quot; &quot;w32_getreg.c&quot; &quot;timestamp.c&quot; &quot;variable.c&quot; &quot;modules.c&quot; &quot;strings.c&quot; &quot;filesys.c&quot; &quot;builtins.c&quot; &quot;class.c&quot; &quot;cwd.c&quot; &quot;native.c&quot; &quot;md5.c&quot; &quot;modules/set.c&quot; &quot;modules/path.c&quot; &quot;modules/regex.c&quot; &quot;modules/property-set.c&quot; &quot;modules/sequence.c&quot; &quot;modules/order.c&quot; &quot;execunix.c&quot; &quot;fileunix.c&quot; &quot;pathunix.c&quot;<br><br>...failed [COMPILE] bin.solarisx86/b2...<br>...skipped bjam for lack of b2...<br>...failed updating 1 target...<br>...skipped 1 target...<br>$<br><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 29, 2019 at 5:07 PM Piotr Kowalski &lt;<a href="mailto:koval.gnu@gmail.com">koval.gnu@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Kamal<div>From what I can see, earlier versions of bootstrap did not use clock_gettime function and that made them link correctly.</div><div>This function on Solaris requires linking with -lrt</div><div><br></div><div>Since you are doing this only for yourself you can edit build.sh script and add -lrt at the end of line 350:<br>echo_run ${BOOST_JAM_CC} ${BOOST_JAM_OPT_JAM} ${BJAM_SOURCES} -lrt<br></div><div><br></div><div>If that helps, boost team may need to fix build.sh to add -lrt if building on Solaris platform</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">pt., 29 lis 2019 o 08:44 kamallochan Jena &lt;<a href="mailto:kljena2050@gmail.com" target="_blank">kljena2050@gmail.com</a>&gt; napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>In SunOS, even I am getting below errors which has been reported before by some one and is discussed in &quot;<a href="https://github.com/boostorg/thread/issues/283" target="_blank">https://github.com/boostorg/thread/issues/283</a> with Fix.<br><br></div><div><b>Error:</b></div><div><div><pre style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,monospace;font-size:11.9px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;background-color:rgb(246,248,250);border-radius:3px;color:rgb(36,41,46)"><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,monospace;font-size:11.9px;padding:0px;margin:0px;background:initial;border-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit">./boost/thread/pthread/thread_data.hpp:60:5: error: missing binary operator before token &quot;_sysconf&quot;
 #if PTHREAD_STACK_MIN &gt; 0</code></pre></div></div><div>Can I consider, this issue has been fixed as updated in &quot;<a href="https://github.com/conan-io/conan-center-index/pull/361/commits/ec526ff9fbccb14c3b5227884f651f96381f39fd" target="_blank">https://github.com/conan-io/conan-center-index/pull/361/commits/ec526ff9fbccb14c3b5227884f651f96381f39fd</a>&quot;</div><div><br></div><div><b>If Yes, From where the latest boost kit can be downloaded with above fix ??</b><br></div><div><b>Is the above fix, also resolve the previous syntax error &quot;./build.sh: syntax error at line 143: `machine=$&#39; unexpected &quot; ??</b></div><div><br></div><div>Kindly confirm!!!</div><div><br></div><div>Regards,</div><div>Kamal</div><div></div><div> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 29, 2019 at 12:52 PM kamallochan Jena &lt;<a href="mailto:kljena2050@gmail.com" target="_blank">kljena2050@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>FYI, </div><div>bootstarp.sh from  boost_1_56_0 working fine in same SunOS, where boost_1_70_0 is causing the problem.</div><div><br></div><div>Thanks,</div><div>Kamal</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 29, 2019 at 10:54 AM kamallochan Jena &lt;<a href="mailto:kljena2050@gmail.com" target="_blank">kljena2050@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Piotr and David, <div>    Thank you for your response.<div><br></div><div>Have modified the build.sh as mentioned, and for all below cases build.sh is failing with <b>Error: 

ld: fatal: symbol referencing errors. No output written to bootstrap/jam0

</b></div><div><br></div><div>Case 1&gt;     #!/bin/sh   ---&gt;  #!/bin/bash</div><div>Case 2&gt;     machine=$(gcc -dumpmachine 2&gt;/dev/null)   ---&gt; machine=`gcc -dumpmachine 2&gt;/dev/null`</div><div>Case 3&gt;     machine=$(gcc -dumpmachine 2&gt;/dev/null)   ---&gt; 

machine=` echo $(gcc -dumpmachine 2&gt;/dev/null) `</div><div>   </div><div>FYI, default shell of SunOS is /bin/sh</div><div>        $ echo $SHELL<br>        /bin/sh<br></div><div><br></div><div><b>Details:</b></div><div>  $ ./bootstrap.sh<br></div><div>      -n Bootstrapping the build engine with toolset sun...<br><br>      Failed to bootstrap the build engine<br>      Consult &#39;bootstrap.log&#39; for more details</div><div><br></div><div>  $ cat bootstrap.log<br>

</div><div>     ###<br>     ### Using &#39;sun&#39; toolset.<br>     ###<br>     rm -rf bootstrap<br>     mkdir bootstrap<br>     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<br>      command.c:<br>      compile.c:<br>      constants.c:<br>      debug.c:<br>      execcmd.c:<br>      frames.c:<br>      function.c:<br>      glob.c:<br>      hash.c:<br>      hdrmacro.c:<br>      headers.c:<br>      jam.c:<br>      jambase.c:<br>      jamgram.c:<br>      lists.c:<br>      make.c:<br>      make1.c:<br>      object.c:<br>      option.c:<br>      output.c:<br>      parse.c:<br>      pathsys.c:<br>      regexp.c:<br>      rules.c:<br>      scan.c:  search.c:<br>      subst.c:<br>      timestamp.c:<br>      variable.c:<br>      modules.c:<br>      strings.c:<br>      filesys.c:<br>      builtins.c:<br>      class.c:<br>      cwd.c:<br>      native.c:<br>      md5.c:<br>      w32_getreg.c:<br>      modules/set.c:<br>      modules/path.c:<br>      modules/regex.c:<br>      modules/property-set.c:<br>      modules/sequence.c:<br>      modules/order.c:<br>      execunix.c:<br>      fileunix.c:<br>      pathunix.c:<br>      Undefined                       first referenced<br>      symbol                             in file<br>      clock_gettime                       timestamp.o<br>      <b>ld: fatal: symbol referencing errors. No output written to bootstrap/jam0</b><br>      bash-3.2$<br><br></div><div>--------------</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 28, 2019 at 7:48 PM Piotr Kowalski via Boost-users &lt;<a href="mailto:boost-users@lists.boost.org" target="_blank">boost-users@lists.boost.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I guess SunOS uses System V specification which is older than POSIX and only supports `` syntax. If you look at autotools they never generate $() to make sure it wil work everywhere even on older /bin/sh</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">czw., 28 lis 2019 o 14:33 David Demelier via Boost-users &lt;<a href="mailto:boost-users@lists.boost.org" target="_blank">boost-users@lists.boost.org</a>&gt; napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le 28/11/2019 à 12:22, Piotr Kowalski via Boost-users a écrit :<br>
&gt; build.sh is intended for /bin/sh but uses bash-specific syntax $(command)<br>
<br>
$() is part of POSIX though so I suppose the SunOS default shell isn&#39;t <br>
POSIX compliant or too old.<br>
<br>
Regards,<br>
<br>
-- <br>
David<br>
_______________________________________________<br>
Boost-users mailing list<br>
<a href="mailto:Boost-users@lists.boost.org" target="_blank">Boost-users@lists.boost.org</a><br>
<a href="https://listarchives.boost.org/mailman/listinfo.cgi/boost-users" rel="noreferrer" target="_blank">https://listarchives.boost.org/mailman/listinfo.cgi/boost-users</a><br>
</blockquote></div>
_______________________________________________<br>
Boost-users mailing list<br>
<a href="mailto:Boost-users@lists.boost.org" target="_blank">Boost-users@lists.boost.org</a><br>
<a href="https://listarchives.boost.org/mailman/listinfo.cgi/boost-users" rel="noreferrer" target="_blank">https://listarchives.boost.org/mailman/listinfo.cgi/boost-users</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>

