Boost C++ Libraries: Ticket #12477: [math] error: while reading precompiled header: No such file or directory https://svn.boost.org/trac10/ticket/12477 <p> Compilation of boost 1.61.1 with GCC 6.2.0 compiler sometimes fail (35%: 7 failure out of 20 builds, with "-j64") with many erros like: </p> <hr /> <p> libs/math/build/../src/tr1/assoc_legendre.cpp:6:21: error: while reading precompiled header: No such file or directory </p> <blockquote> <p> # include &lt;pch.hpp&gt; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> libs/math/build/../src/tr1/cyl_bessel_j.cpp:6:21: error: while reading precompiled header: No such file or directory </p> <blockquote> <p> # include &lt;pch.hpp&gt; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <hr /> <p> It seems to be a race condition in parallel compiling. </p> <p> And I also observed many warnings like: </p> <hr /> <p> libs/math/build/../src/tr1/cyl_bessel_i.cpp:6:21: warning: /ala-lpggp51/jhuang0/builds/p90_i64-sato_160920/bitbake_build/tmp/work/corei7-64-wrs-linux/boost/1.61.0-<a class="missing changeset" title="No changeset 0 in the repository">r0/boost_1_61_0/x86_64-wrs-linux/boost/bin</a>.v2/libs/math/build/69ffc88faf507005827aa061bd65b9bd/../src/tr1/pch.hpp.gch: created and used with different settings of -fpic libs/math/build/../src/tr1/cyl_bessel_jf.cpp:6:21: warning: /ala-lpggp51/jhuang0/builds/p90_i64-sato_160920/bitbake_build/tmp/work/corei7-64-wrs-linux/boost/1.61.0-<a class="missing changeset" title="No changeset 0 in the repository">r0/boost_1_61_0/x86_64-wrs-linux/boost/bin</a>.v2/libs/math/build/69ffc88faf507005827aa061bd65b9bd/../src/tr1/pch.hpp.gch: created and used with different settings of -fpic libs/math/build/../src/tr1/cyl_neumannf.cpp:6:21: warning: /ala-lpggp51/jhuang0/builds/p90_i64-sato_160920/bitbake_build/tmp/work/corei7-64-wrs-linux/boost/1.61.0-<a class="missing changeset" title="No changeset 0 in the repository">r0/boost_1_61_0/x86_64-wrs-linux/boost/bin</a>.v2/libs/math/build/69ffc88faf507005827aa061bd65b9bd/../src/tr1/pch.hpp.gch: created and used with different settings of -fpic </p> <hr /> <p> libs/math/build/../src/tr1/assoc_legendre.cpp:6:21: warning: /ala-lpggp51/jhuang0/builds/p90_i64-sato_160920/bitbake_build/tmp/work/corei7-64-wrs-linux/boost/1.61.0-<a class="missing changeset" title="No changeset 0 in the repository">r0/boost_1_61_0/x86_64-wrs-linux/boost/bin</a>.v2/libs/math/build/69ffc88faf507005827aa061bd65b9bd/../src/tr1/pch.hpp.gch: not used because `<span class="underline">LDBL_MAX_EX' not defined [-Winvalid-pch] </span></p> <blockquote> <p> # include &lt;pch.hpp&gt; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> libs/math/build/../src/tr1/sph_legendre.cpp:6:21: warning: /ala-lpggp51/jhuang0/builds/p90_i64-sato_160920/bitbake_build/tmp/work/corei7-64-wrs-linux/boost/1.61.0-<a class="missing changeset" title="No changeset 0 in the repository">r0/boost_1_61_0/x86_64-wrs-linux/boost/bin</a>.v2/libs/math/build/69ffc88faf507005827aa061bd65b9bd/../src/tr1/pch.hpp.gch: not used because `<span class="underline">LDBL_MAX_EX' not defined [-Winvalid-pch] </span></p> <blockquote> <p> # include &lt;pch.hpp&gt; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <hr /> <p> BTW, my builds are based on yocto project. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12477 Trac 1.4.3 jackie.huang@… Fri, 23 Sep 2016 07:25:12 GMT attachment set https://svn.boost.org/trac10/ticket/12477 https://svn.boost.org/trac10/ticket/12477 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-math-pch.tar.bz2</span> </li> </ul> <p> full logs of the compilation </p> Ticket John Maddock Sat, 24 Sep 2016 15:53:10 GMT owner, component changed https://svn.boost.org/trac10/ticket/12477#comment:1 https://svn.boost.org/trac10/ticket/12477#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">John Maddock</span> to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>component</strong> <span class="trac-field-old">math</span> → <span class="trac-field-new">build</span> </li> </ul> <p> I'm not able to reproduce on Ubuntu Linix, but either way I'm reassigning to Boost.Build in case they have some ideas. </p> Ticket