dso icon indicating copy to clipboard operation
dso copied to clipboard

build

Open Myasnikova opened this issue 6 years ago • 9 comments

Hello! I have some problem with project building. I tried to build it on virtual machine ubuntu 18.04 following readme and after 95% of loading computer froze without any errors. I tried to do this three times and in every my attempt it froze. May be somebody had the same problem and will be able to help me, please.

Myasnikova avatar Nov 29 '18 11:11 Myasnikova

Out of memory?

NikolausDemmel avatar Nov 29 '18 13:11 NikolausDemmel

After stopping of build process I have 17Gb of free memory on my virtual machine and I didn't have any errors about lack of memory

Myasnikova avatar Nov 29 '18 20:11 Myasnikova

Other than out of RAM I don't know of a reason why compiling should kill your VM, sorry...

NikolausDemmel avatar Nov 29 '18 20:11 NikolausDemmel

RAM - 4 Gb, this is not enough?

Myasnikova avatar Nov 29 '18 20:11 Myasnikova

What are the system requirements for this project?

Myasnikova avatar Nov 29 '18 20:11 Myasnikova

4GB might not be enough. Watch your system monitor to see if OOM is the issue.

Things you can try:

  • more RAM for the VM
  • compile with -j1
  • try clang instead of gcc

NikolausDemmel avatar Nov 29 '18 22:11 NikolausDemmel

You can try enlarging the swap space if your RAM is not enough.

vonzy avatar Nov 30 '18 10:11 vonzy

I had the same problem before. I built the DSO code with VM ubuntu in VirtualBox, and the make -j process freeze without any errors after 80% to 90% progress. Due to the -j command (in the installation guideline), make run all the jobs (i.e., compiling .cpp files) simultaneously. Each compiling job requires around 20 to 60 second, and it is too heavy for my VM. I tried make instead of make -j, and the problem solved.

kckwan avatar Dec 05 '18 03:12 kckwan

Note: I just updated the readme to recommend make -j4 instead. Choose the number of make threads (e.g. number of cores or less if memory is the limit).

NikolausDemmel avatar Dec 05 '18 12:12 NikolausDemmel