gcc crash when compiling vim plugin with low mem

Asked by gary

when compiling the vim plugin YouCompleteMe on a VM with low memory:
seems to be a bug, but the output says it's unlikely

python3 install.py --clangd-completer

Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Memory: 127MiB / 481MiB

Host: KVM/QEMU (Standard PC (i440FX + PIIX, 1996) pc-i440fx-4.1
CPU: Intel (Broadwell, no TSX, IBRS) (1) @ 2.394GHz

gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0

[ 97%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
ycm/CMakeFiles/ycm_core.dir/build.make:398: recipe for target 'ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o' failed
make[3]: *** [ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o] Error 4
CMakeFiles/Makefile2:140: recipe for target 'ycm/CMakeFiles/ycm_core.dir/all' failed
make[2]: *** [ycm/CMakeFiles/ycm_core.dir/all] Error 2
CMakeFiles/Makefile2:152: recipe for target 'ycm/CMakeFiles/ycm_core.dir/rule' failed
make[1]: *** [ycm/CMakeFiles/ycm_core.dir/rule] Error 2
Makefile:131: recipe for target 'ycm_core' failed
make: *** [ycm_core] Error 2
ERROR: the build failed.

NOTE: it is *highly* unlikely that this is a bug but rather
that this is a problem with the configuration of your system
or a missing dependency. Please carefully read CONTRIBUTING.md
and if you're sure that it is a bug, please raise an issue on the
issue tracker, including the entire output of this script
and the invocation line used to run it.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1
Revision history for this message
gary (jiomtayhewjdzvia) said :
#2

the point is, is there a problem in gcc that this caught

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

You could report a bug

Revision history for this message
gary (jiomtayhewjdzvia) said :
#4

gcc bug reporting said to first post here to determine if it's a bug. def not a feature :)

Can you help with this problem?

Provide an answer of your own, or ask gary for more information if necessary.

To post a message you must log in.