Internal compiler error: Killed

Please help me! I´ve problems with setting up zcash stand alone miner. everything is ok until the step “Build”. After command ./zcutil/ -j$(nproc) everytime this message comes up:

{standard input}: Assembler messages:
{standard input}:47468: Warning: end of file not at end of a line; newline inserted
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Makefile:4074: recipe for target ‘libbitcoin_server_a-init.o’ failed
make[2]: *** [libbitcoin_server_a-init.o] Error 4
make[2]: Leaving directory ‘/home/ubuntu/zminer/src’
Makefile:7564: recipe for target ‘all-recursive’ failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory ‘/home/ubuntu/zminer/src’
Makefile:640: recipe for target ‘all-recursive’ failed
make: *** [all-recursive] Error 1

I don´t know how to go on… Please help me. Any ideas?