I am getting the following error every time I try to build or make a package:
In file included from /usr/include/gz/math7/gz/math/AxisAlignedBox.hh:25,
from /home/jjayalekshmi/gz-rendering-cpy/include/gz/rendering/Visual.hh:21,
from /home/jjayalekshmi/gz-rendering-cpy/src/Visual.cc:18:
/usr/include/gz/math7/gz/math/MassMatrix3.hh: In member function ‘gz::math::v7::Vector3<T> gz::math::v7::MassMatrix3<T>::PrincipalMoments(T) const’:
/usr/include/gz/math7/gz/math/MassMatrix3.hh:498:20: internal compiler error: Segmentation fault
498 | T p = std::pow(b, 2) - 3*c;
| ^~~
0x78952a04251f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x78952a029d8f __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0x78952a029e3f __libc_start_main_impl
../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
make[2]: *** [src/CMakeFiles/gz-rendering8.dir/build.make:930: src/CMakeFiles/gz-rendering8.dir/Visual.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1626: src/CMakeFiles/gz-rendering8.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
I ran MemTest for 17 hours and it ran without errors. I have also under-clocked the CPU to ensure the system is not overheating.
I have downgraded to gcc version 11.4.0
PC build details:
I am using the MSI MAG Z790 Tomahawk motherboard, TeamGroup T-Force Vulcan 32GB (2x16GB) RAM, Intel Core i9-14900K 24 cores 14th Gen CPU and a Tesla P100 GPU.
What can I do next to try and fix this issue?
P.S.: This is a new system and these programs were running without any issues at the time. I started facing these issues after not using the system for a week and the computer for left on during this period. The system was hanging when I came back. I have tried reinstalling the OS. I have also tried running it on a single RAM. And the system still hangs every now and then.
<compiler> -vto see what version you get.