Building polymake 4.6 on Ubuntu 20.04 freeze

Discussions on installation issues go here.
otrangan
Posts: 2
Joined: 08 Apr 2022, 10:52

Building polymake 4.6 on Ubuntu 20.04 freeze

Postby otrangan » 08 Apr 2022, 11:08

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".

blorenz
Developer
Posts: 127
Joined: 10 Jan 2011, 17:21

Re: Building polymake 4.6 on Ubuntu 20.04 freeze

Postby blorenz » 08 Apr 2022, 14:10

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.

otrangan
Posts: 2
Joined: 08 Apr 2022, 10:52

Re: Building polymake 4.6 on Ubuntu 20.04 freeze

Postby otrangan » 08 Apr 2022, 19:04

Thank you.
That solved the problem and the installation was completed without any problems.


Return to “Installing polymake”

cron