Reference: C++: fatal error: Killed signal terminated program cc1plus problem solving
-
设备报错undefined symbol: _Z22qInitResources_safeboxv
The error message is:
-
Passed
c++filt _Z22qInitResources_safeboxv
, found that qInitResources_safebox() reported an error, but this is not a custom function
-
Just when
make -j 4
compiling, there is[致命错误:已杀死 signal terminated program cc1plus 编译中断。]
[Makefile error:qrc_safebox.o]
-
make -j 4
But execute compile again , normal
It may be the problem here that causes[设备报错undefined symbol: _Z22qInitResources_safeboxv]
the solution
virtual machine to execute
sudo swapoff /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=3072
sudo mkswap /swapfile
sudo swapon /swapfile
- Compile again
make -j 4
, no problem, the device is running
Reason: Insufficient SWAP swap space, mine is increased to 3G
Reason explanation: "Killed signal terminated program cc1plus" compilation error solution
Reason explanation: C++: fatal error: Killed signal terminated program cc1plus problem solving