Page 1 of 1

Building polymake 4.6 on Ubuntu 20.04 freeze

Posted: 08 Apr 2022, 11:08
by otrangan
I'm trying to build polymake 4.6 from the minimal source tarball.
I have installed the required external software but when I try to run "make" my entire computer is frozen for several minutes at a time.
The process hasn't been able to go past compiling the file "Matrix-6.o".

Re: Building polymake 4.6 on Ubuntu 20.04 freeze

Posted: 08 Apr 2022, 14:10
by blorenz
Hi,

This freezing can happen when the gcc processes exhaust all available system memory.
Please try building polymake instead of the make command with:

Code: Select all

ninja -C build/Opt -j1
This will reduce the number of parallel processes to build polymake to one. You can increase the number a little depending on how much memory and how many cpu cores you have. I would recommend at most one process per 2GB of memory and at most one process per cpu core (i.e. use the minimum of those two values). Once the compilation is done you can use make install again to install polymake.

Re: Building polymake 4.6 on Ubuntu 20.04 freeze

Posted: 08 Apr 2022, 19:04
by otrangan
Thank you.
That solved the problem and the installation was completed without any problems.