You are here

Error when compiling in Linux Ubuntu VM

3 posts / 0 new
Last post
Error when compiling in Linux Ubuntu VM
#1

Hi, good day everyone, 

I was trying to compile Rosetta 3 and after running smoothly for two hours it stopped, and I got the following error message: 

g++: 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.

scons: *** [build/src/release/linux/5.3/64/x86/gcc/7/default/core/io/pose_from_sfr/chirality_resolution.os] Error 4

scons: building terminated because of errors.

After decompressing the file I used the following command: ./scons.py -j 3 mode=release bin. I am using a Virtual Machine with Ubuntu 18.04 (I have SCons installed) and Rosetta 3.11 (rosetta_src_3.11_bundle.tgz). I tried to allocate more RAM to the virtual machine but I still got the same error message. Any help would be appreciated. 

Category: 
Post Situation: 
Fri, 2020-04-10 02:24
AbigailD

"Killed" does seem to indicate that you're getting an out of memory issue. The out-of-memory condition is likely the most common reason that a program would be killed automatically.

Since you're running Ubuntu 18.04, I might recommend just downloading the precompiled binaries. I believe those should work on 18.04, and those wouldn't require you to redo any of the scons compilation.

If you want or need to run the compilation yourself, I might recommend trying to maximize the amount of memory you have availible for the compilation. That includes increasing the amount of memory the virtual machine gets. But it also would include avoiding running any other programs you can on the virtual machine while the compilation is running. I'd also recommend changing your -j 3 to a -j 1. Each of the processes that are running during compiling have to share memory, and two processes each need to use 60% of your memory, you'll get out of memory issues if they run at the same time.

Fri, 2020-04-10 07:56
rmoretti

 I compiled it using your recommendation and it worked, the problem was the memory and I changed it to -j 1. Thank you!

 

Sat, 2020-04-11 14:11
AbigailD