I am facing Segmentation fault
issue during source code compilation.
I came across few other forums here where upgrading gcc version would help. But i am already in later version than the one mentioned in above forum.
Log:
x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program /home/comp/sw/tools/unix/hosts/Linux-x86/unix-build/lib/ld-linux.so.2)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
gcc version:-
ktp@compune-lnx-11:~/compiler$ /home/comp/sw/tools/unix/hosts/Linux-x86/targets/Linux-x86_64/gcc-7.3.0as2-2/bin/x86_64-pc-linux-gnu-g++ --version
x86_64-pc-linux-gnu-g++ (GCC) 7.3.0 (altstack)
Weird thing is that issue is intermittent and not seen all the time. Our build system runs build on some random host. I suspect it is related to h/w. I need help how to go further in debugging this issue.
I am sorry that i am not allowed to copy the source here.