1

I would like to ask where does this error come from:

c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/archlinuxarm/PKGBUILDs/issues> for instructions.
CMakeFiles/supnsa_parser.dir/build.make:77: recipe for target 'CMakeFiles/supnsa_parser.dir/src/helper.cpp.o' failed
make[2]: *** [CMakeFiles/supnsa_parser.dir/src/helper.cpp.o] Error 4
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/supnsa_parser.dir/all' failed
make[1]: *** [CMakeFiles/supnsa_parser.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2

I'm getting this on my raspberry pi when I launch the compilation of my C++ application. Where does it come from? How can I solve this? Thank you

E-Kami
  • 2,529
  • 5
  • 30
  • 50
  • 1
    This is a bug in the compiler. You solve it by becoming a compiler developer, getting assigned the relevant ticket, and merging a fix. Failing that, submit a bug report as suggested in the error message, and wait until somebody else merges a fix. Meanwhile you may try rewriting the offending file such that the same functionality is implemented in a different way, in order to avoid triggering the bug. – n. m. could be an AI Jun 21 '14 at 17:29
  • 1
    Type `gcc --version` and try to switch to a newer version. – usr1234567 Jun 21 '14 at 19:10
  • possible duplicate of [What do internal compiler error messages mean?](http://stackoverflow.com/questions/12405606/what-do-internal-compiler-error-messages-mean) – usr1234567 Jun 21 '14 at 19:11
  • I am facing same issue. Do you got any solution to this? – Sayali Jan 20 '16 at 10:57
  • I had the same issue just bumped up the RAM and CPU and its now working perfectly. Its being forcefully shutdown by the operating system as its trying to use all the resources it has, so it gets terminated. this is a developers bug the software should never require that much memory to perform a task. – VM_User Jun 03 '17 at 20:47

1 Answers1

4

Usually Killed message during compilation indicates out of memory issue as most of the compilation processes requires higher amount of memory, so you should either increase it (if you can, check with free -m or top command), or another solution is to create a swap file and re-run compilation again.

See also: Out Of Memory Management in Linux Kernel.

kenorb
  • 155,785
  • 88
  • 678
  • 743