Comment 14 for bug 1766555

Revision history for this message
don bright (hmbright) wrote :

it "failed to build", but in the link they say it ran out of virtual memory on their MIPS architecture build.

i would guess what happened is that gcc on their build machine ran out of memory, on the file cgalutils.cc . It is actually pretty normal to have memory issues when building OpenSCAD on the files that use CGAL intensively.

That is because CGAL (geometry library, www.cgal.org ) is a massive c++ template library which can use at least 1 Gigabytes of ram, during compile time (not run time), for some of its functionality, depending on optimizations and debug symbol options on the compiler. it can go higher with various extra options added to the compiler switches, like -O2 -g.

Here is the log showing they crashed at cgalutils.cc:

https://buildd.debian.org/status/fetch.php?pkg=openscad&arch=mips&ver=2015.03-2%2Bdfsg-2%2Bb3&stamp=1516824703&raw=0

What they also did was to use parallell make. You can see they have 'make -j4' right there on the log. So they were trying to build multiple files at once, alongside the massive CGAL file. That is going to also use more memory than necessary.

Also it seems to be using gcc... clang uses a lot less memory than gcc.

i am trying to figure out how much ram + swap they would have had on their mips build machine, but i am not sure how to figure that out.