On 6/26/19 3:25 AM, Philip Kovacs via devel wrote:
I am finding that one of my c++ packages has compilation units that
generate very large assembly (.s)
files -- so large that any attempt to build them in memory (e.g. with
-pipe) causes memory exhaustion.
The only way I have found to reliably get the build to run to completion
is by using -save-temps to force
g++ to save the .s assembly files to disk. I also have to remove any
(make) parallelism in the builds.
I am doing this:
%configure \
CXXFLAGS="${CXXFLAGS} -save-temps" \
...
and using make (-j1 implied) instead of make_build. >
Just curious if anyone has a better suggestion here.
You don't need to abandon %make_build and friends for that. You can
either set RPM_BUILD_NCPUS=1 environent variable or define
%_smp_ncpus_max macro to 1 in the build environment, whichever is more
convenient.
- Panu -