Re: Insufficient RAM on build-machines (was Bug#726009: yade: FTBFS on i386 (and others))
On Fri, Oct 11, 2013 at 9:00 PM, Anton Gladky <email@example.com> 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
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: