Opened 6 years ago
Closed 6 years ago
#12210 closed Bugs (worksforme)
compiling PCH with gcc 6.1 fails
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | math |
Version: | Boost 1.61.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Math libraries PCH fail with gcc 6.1:
"g++" -ftemplate-depth-128 -fno-inline -Wall -g -m64 -fvisibility=hidden -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -I"bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-static/../src/tr1" -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-static/truncl.o" "libs/math/build/../src/tr1/truncl.cpp" g++: internal compiler error: Segmentation fault (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.
When adding --std=c++11 I get a warning but it's working (default mode of gcc 6.1 is c++14)
"g++" --std=c++11 -ftemplate-depth-128 -fno-inline -Wall -g -m64 -fvisibility=hidden -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -I"bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-static/../src/tr1" -I"." -I"libs/math/src/tr1" -c -o "bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-static/truncl.o" "libs/math/build/../src/tr1/truncl.cpp" libs/math/build/../src/tr1/truncl.cpp:6:21: warning: bin.v2/libs/math/build/gcc-6.1.0/debug/link-static/runtime-link-static/../src/tr1/pch.hpp.gch: not used because `__cpp_aggregate_nsdmi' not defined [-Winvalid-pch]
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Component: | None → math |
---|---|
Owner: | set to |
comment:3 by , 6 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I'm unable to reproduce here (Ubuntu x64): gcc-6.1 is a configuration we test so this should work. I think you're going to have to do as the message suggests and submit a GCC bug report complete with the preprocessed code that causes the issue. Please update this report with the GCC issue link when you have one.
Thanks, John Maddock.
Note:
See TracTickets
for help on using tickets.
Using pch=off for compilation also fixes that problem. Some issue with c++14 and pch?