You are not logged in.
I'm building 'freecad' from AUR, which requires 'pivy-hg'. When building the latter,
Platform...linux2
Python version...2.7.2
Checking for swig... '/usr/bin/swig'
Checking for SWIG version... 2.0.4
Warning: Pivy has only been tested with the following SWIG versions: 1.3.31 1.3.33 1.3.35 1.3.40.
Checking for coin-config... '/usr/bin/coin-config'
Coin version... 3.1.3
Checking for Coin features... 3ds import vrml97 sound threads threadsafe
Checking for soqt-config... '/usr/bin/soqt-config'
Checking for soqt version... 1.5.0
Checking for soxt-config... not found.
Checking for sogtk-config... not found.
Checking for sowin-config... not found.
Checking for simvoleon-config... not found.
Preparing Inventor headers:.
=== pivy/gui/soqt_wrap.cpp for pivy.gui.soqt already exists! ===
=== pivy/coin_wrap.cpp for pivy.coin already exists! ===
running build_py
package init file 'pivy/quarter/plugins/designer/python/__init__.py' not found (or not a regular file)
copying pivy/gui/soqt.py -> build/lib/pivy/gui
copying pivy/coin.py -> build/lib/pivy
copying pivy/coin.py -> build/lib/pivy
copying pivy/gui/soqt.py -> build/lib/pivy/gui
package init file 'pivy/quarter/plugins/designer/python/__init__.py' not found (or not a regular file)
running build_ext
building '_coin' extension
gcc -pthread -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -march=core2 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c pivy/coin_wrap.cpp -o build/temp.linux-x86_64-2.7/pivy/coin_wrap.o -Iinterfaces -I/usr/include/Inventor/annex -D_REENTRANT
At this point, cc1plus gobbles up a lot of memory (seems like everything that's left of physical memory, in my case 500-700 out of ~900 MB) and stops doing much (or so it looks, processor usage falls down to 6%).
Here's how the process is called, with a parent and grandparent:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
veox 17436 1.8 0.0 13312 496 pts/7 SN+ 21:09 0:00 gcc -pthread -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -march=core2 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c pivy/coin_wrap.cpp -o build/temp.linux-x86_64-2.7/pivy/coin_wrap.o -Iinterfaces -I/usr/include/Inventor/annex -D_REENTRANT
veox 17446 0.0 0.0 12644 156 pts/7 SN+ 21:09 0:00 /usr/bin/gcc -pthread -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -march=core2 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c -Iinterfaces -I/usr/include/Inventor/annex -D_REENTRANT -o /home/cy/.ccache/7/d/d902ae3b6f9960dd4ee8b3b9315009-20531124.o.tmp.sidep.ath.cx.17436 /home/cy/.ccache/tmp/coin_wrap.tmp.sidep.ath.cx.17436.ii
veox 17447 6.0 66.8 576296 446148 pts/7 DN+ 21:09 0:07 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/cc1plus -fpreprocessed /home/cy/.ccache/tmp/coin_wrap.tmp.sidep.ath.cx.17436.ii -quiet -dumpbase coin_wrap.tmp.sidep.ath.cx.17436.ii -march=x86-64 -mtune=generic -march=core2 -auxbase-strip /home/cy/.ccache/7/d/d902ae3b6f9960dd4ee8b3b9315009-20531124.o.tmp.sidep.ath.cx.17436 -O2 -O2 -fstack-protector -fPIC --param ssp-buffer-size=4 -o -
Is this a bug, or do I need more memory?
Last edited by veox (2011-11-19 20:03:31)
Offline
since this is c++, I would be surprised if this was a bug
I would say get at least 1 more GiB of ram if you can afford it, especially if you will be doing any constant modeling or compiling.
Offline
Upgraded my RAM, and indeed, the process needs around 1,5 GB to do its thing.
Offline
OK. I have 1GB RAM and I will not have more. Is there chance, that is will ever complete?
Offline
SUK, Try turning off optimisation (gcc option -O2). IIRC, -O does minimal optimisation without trying to take too much RAM.
Offline
Hello,
Have you try with bigger swap space ?
You can have swap space whithin a file :
https://wiki.archlinux.org/index.php/Swap
Offline