You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently tried to install Boost 1_78_0 on our Red Hat 8.3 system, which has GCC 8.3.1. Red Hat has 'hardened' their installation of GCC such that the precompiled headers generate errors. We also tried this on an system that was updated to Red Hat 8.5, which provides GCC 8.5.0 with comparable results.
Is there a configuration flag we can give to disable use of precompiled headers?
gcc.compile.c++ bin.v2/libs/math/build/gcc-8/release/threading-multi/visibility-hidden/acosh.o
cc1plus: warning: ./bin.v2/libs/math/build/gcc-8/release/threading-multi/visibility-hidden/pch.gch: had text segment at different address
cc1plus: error: one or more PCH files were found, but they were invalid
cc1plus: fatal error: bin.v2/libs/math/build/gcc-8/release/threading-multi/visibility-hidden/pch: No such file or directory
compilation terminated.
"g++" -fvisibility-inlines-hidden -fPIC -m64 -pthread -O3 -finline-functions -Wno-inline -Wall -fvisibility=hidden -fvisibility=hidden -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -include"bin.v2/libs/math/build/gcc-8/release/threading-multi/visibility-hidden/pch" -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/gcc-8/release/threading-multi/visibility-hidden/acosh.o" "libs/math/build/../src/tr1/acosh.cpp"
...failed gcc.compile.c++ bin.v2/libs/math/build/gcc-8/release/threading-multi/visibility-hidden/acosh.o...
I did not see anything in the help for either bootstrap.sh or for b2 that looks like it would address this. Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
A colleague found the option to suppress use of precompiled headers. For anyone else who might be looking, this seems to work. After running the usual bootstrap.sh command to configure b2, use
We recently tried to install Boost 1_78_0 on our Red Hat 8.3 system, which has GCC 8.3.1. Red Hat has 'hardened' their installation of GCC such that the precompiled headers generate errors. We also tried this on an system that was updated to Red Hat 8.5, which provides GCC 8.5.0 with comparable results.
Is there a configuration flag we can give to disable use of precompiled headers?
I am using
and I get errors that look like these.
I did not see anything in the help for either
bootstrap.sh
or forb2
that looks like it would address this. Any help would be appreciated.The text was updated successfully, but these errors were encountered: