Bug#726009: Insufficient RAM on build-machines (was Bug#726009: yade: FTBFS on i386 (and others))
Mathieu Malaterre
malat at debian.org
Sat Oct 12 12:34:57 UTC 2013
Anton,
On Fri, Oct 11, 2013 at 9:00 PM, Anton Gladky <gladk at debian.org> wrote:
[...]
>> /usr/bin/c++ -Dyade_EXPORTS -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -DYADE_PTR_CAST=static_pointer_cast -DYADE_CAST=static_cast -fPIC -DYADE_VTK -DYADE_OPENMP -fopenmp -DYADE_GTS -DQGLVIEWER_FOUND -DYADE_OPENGL -frounding-math -DYADE_CGAL -DFLOW_ENGINE -frounding-math -DLINSOLV -DFLOW_ENGINE -DYADE_GL2PS -O3 -DNDEBUG -fPIC -
You are using cmake in Release mode, which is bad IMHO. So having -O2
and -O3 (in that order) compiles code in -O3, which is way too much
AFAIK.
Ref:
http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
...
If you use multiple -O options, with or without level numbers, the
last such option is the one that is effective.
...
See also here why CMAKE_BUILD_TYPE should be required to be set to "" on debian:
http://bugs.debian.org/701231#12
2cts
More information about the debian-science-maintainers
mailing list