I am reviving this thread because I found a solution which worked for me and could be useful for others with the same problem.
I had exactly the same problem mentioned in
post #9 but none of the solutions worked. The error occurred mostly when compiling big packages like qt-creator, or webkit. The compilation stopped always in the same places and with the same errors but could be resumed (with a small change to the SlackBuild.) Usually two or three times was enough to produce the package.
Code:
In file included from /usr/include/c++/5.3.0/random:42:0,
from /usr/include/c++/5.3.0/bits/stl_algo.h:66,
from /usr/include/c++/5.3.0/algorithm:62,
from /usr/include/qt5/QtCore/qglobal.h:94,
from .moc/release-shared/../../utils_global.h:28,
from .moc/release-shared/../../savedaction.h:28,
from .moc/release-shared/moc_savedaction.cpp:9:
/usr/include/c++/5.3.0/limits:1734:10: internal compiler error: Errore di segmentazione
= round_to_nearest;
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
I tried changing RAM, hard disk, patching and recompiling the compiler (and mpc, mpfr, gmp), and many other things without success. CPU temperature was not an issue. I have this CPU:
Quote:
vendor_id : GenuineIntel
cpu family : 6
model : 61
model name : Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
stepping : 4
microcode : 0x18
cpu MHz : 1936.687
cache size : 4096 KB
|
After weeks of tests and reading forums, I solved the problem installing the intel-microcode package from Slackbuilds.org and creating a new initrd as explained in the README.
The CPU microcode went from revision=0x18 to revision=0x24 and the compilation problem disappeared: I have successfully recompiled qt-creator and webkit several times.
I removed the microcode update from the initrd and the error returned: therefore I am confident that the new microcode solves the problem.