[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: This is a buildd issue

reopen 271645
retitle 271645 FTBFS: excessive memory use makes autobuild impossible
tags 271645 +patch

On Tue, 2004-10-26 at 14:17, Ralph Siemsen wrote:
> Adam C Powell IV wrote:
> > Hey, that worked!  Now, how to dig in and try to get that one file to
> > compile with -O0 during the build...
> Hint: you can override CFLAGS etc in makefiles on a per-target basis. 
> The info pages describe it under "info make Target-specific" or see 
> http://www.gnu.org/software/make/manual/html_chapter/make_6.html#SEC77
> With autoconf/automake getting the target name right can be tricky... it 
> needs to match what autoconf/automake generates exactly.  I think what 
> you'll want is along the lines of:
> .libs/Theme.o : CFLAGS = $(CFLAGS) -O0

Okay.  That sort of worked, though putting just a line like that in
Makefile.am *substituted* for the Theme.[l]o target, so I needed to
match the autoconf/automake line exactly.  For automake 1.8 (which is
run during the build), the attached patch lets it build successfully. 
Though if Theme.[l]o optimization noticeably degrades performance, the
maintainer will probably want to surround it with some kind of "if

Note that Theme.o is the only file which causes problems, it needs more
than 170 MB to compile with -O2, nothing else needs more than 68 MB.

Also, I ran out of disk space during make install, so I can't upload...

Thanks for your help,

-Adam P.

GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Welcome to the best software in the world today cafe!
--- ui/zinf/Makefile.am~	2004-10-27 17:38:02.000000000 -0400
+++ ui/zinf/Makefile.am	2004-10-27 17:40:27.000000000 -0400
@@ -31,6 +31,21 @@
 src/Equalizer.cpp src/PixSliderControl.cpp \
+@am__fastdepCXX_TRUE@	if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -O0 -MT Theme.o -MD -MP -MF "$(DEPDIR)/Theme.Tpo" -c -o Theme.o `test -f 'src/Theme.cpp' || echo '$(srcdir)/'`src/Theme.cpp; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/Theme.Tpo" "$(DEPDIR)/Theme.Po"; else rm -f "$(DEPDIR)/Theme.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='src/Theme.cpp' object='Theme.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/Theme.Po' tmpdepfile='$(DEPDIR)/Theme.TPo' @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -O0 -c -o Theme.o `test -f 'src/Theme.cpp' || echo '$(srcdir)/'`src/Theme.cpp
+@am__fastdepCXX_TRUE@	if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -O0 -MT Theme.lo -MD -MP -MF "$(DEPDIR)/Theme.Tpo" -c -o Theme.lo `test -f 'src/Theme.cpp' || echo '$(srcdir)/'`src/Theme.cpp; \
+@am__fastdepCXX_TRUE@	then mv -f "$(DEPDIR)/Theme.Tpo" "$(DEPDIR)/Theme.Plo"; else rm -f "$(DEPDIR)/Theme.Tpo"; exit 1; fi
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='src/Theme.cpp' object='Theme.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@	depfile='$(DEPDIR)/Theme.Plo' tmpdepfile='$(DEPDIR)/Theme.TPlo' @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@	$(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -O0 -c -o Theme.lo `test -f 'src/Theme.cpp' || echo '$(srcdir)/'`src/Theme.cpp
 zinf_ui_la_LDFLAGS = $(plugin_ldflags)

Reply to: