Opened 6 years ago

Last modified 6 years ago

#12477 new Bugs

[math] error: while reading precompiled header: No such file or directory

Reported by: jackie.huang@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost 1.61.0 Severity: Problem
Keywords: pch Cc:

Description

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:


libs/math/build/../src/tr1/assoc_legendre.cpp:6:21: error: while reading precompiled header: No such file or directory

# include <pch.hpp>

libs/math/build/../src/tr1/cyl_bessel_j.cpp:6:21: error: while reading precompiled header: No such file or directory

# include <pch.hpp>


It seems to be a race condition in parallel compiling.

And I also observed many warnings like:


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-r0/boost_1_61_0/x86_64-wrs-linux/boost/bin.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-r0/boost_1_61_0/x86_64-wrs-linux/boost/bin.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-r0/boost_1_61_0/x86_64-wrs-linux/boost/bin.v2/libs/math/build/69ffc88faf507005827aa061bd65b9bd/../src/tr1/pch.hpp.gch: created and used with different settings of -fpic


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-r0/boost_1_61_0/x86_64-wrs-linux/boost/bin.v2/libs/math/build/69ffc88faf507005827aa061bd65b9bd/../src/tr1/pch.hpp.gch: not used because `LDBL_MAX_EX' not defined [-Winvalid-pch]

# include <pch.hpp>

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-r0/boost_1_61_0/x86_64-wrs-linux/boost/bin.v2/libs/math/build/69ffc88faf507005827aa061bd65b9bd/../src/tr1/pch.hpp.gch: not used because `LDBL_MAX_EX' not defined [-Winvalid-pch]

# include <pch.hpp>


BTW, my builds are based on yocto project.

Attachments (1)

boost-math-pch.tar.bz2 (14.9 KB ) - added by jackie.huang@… 6 years ago.
full logs of the compilation

Download all attachments as: .zip

Change History (2)

by jackie.huang@…, 6 years ago

Attachment: boost-math-pch.tar.bz2 added

full logs of the compilation

comment:1 by John Maddock, 6 years ago

Component: mathbuild
Owner: changed from John Maddock to Vladimir Prus

I'm not able to reproduce on Ubuntu Linix, but either way I'm reassigning to Boost.Build in case they have some ideas.

Note: See TracTickets for help on using tickets.