User forums > Nightly builds

The 25 June 2008 build (5106) is out.

<< < (8/10) > >>

MortenMacFly:

--- Quote from: Der Meister on July 10, 2008, 09:43:41 pm ---
--- Quote from: MortenMacFly on July 10, 2008, 09:30:59 pm ---I believe there should be a mystic disable-plugin=headerfixup switch or something...

--- End quote ---
"--with-contrib-plugins=all,-headerfixup" is the way to go.

--- End quote ---
Hehe... see! Thanks! :-)

killerbot:
this is what I showed at : http://forums.codeblocks.org/index.php/topic,8756.0.html

Things is if i do a make clean first, it compiles.

Jenna:
I found the cause for the memory-eating:
it's the optimization-flag.

I'm not an automake-guru, so it takes me a while to fin out how to switch it off only for headerfixup-plugin.
But at least it's quite easy.

Here is a patch for "Makefile.am" of headerfixup-plugin.
After applying it you have to run "./bootstrap" to regenerate "Makefile.in" what is used by "./configure".


--- Code: ------ /usr/src/c/codeblocks/codeblocks-1.0svn/src/plugins/contrib/headerfixup/Makefile.am 2008-07-09 07:20:42.000000000 +0200
+++ codeblocks-1.0svn/src/plugins/contrib/headerfixup/Makefile.am       2008-07-10 23:05:33.000000000 +0200
@@ -2,6 +2,8 @@
            -I$(top_srcdir)/src/include \
            -I$(top_srcdir)/src/include/wxscintilla/include

+CXXFLAGS = @CXXFLAGS@ -O0
+
 libdir = $(pkgdatadir)/plugins

 lib_LTLIBRARIES = libheaderfixup.la

--- End code ---

This will add a "-O0" (the second one is a zero) to "CXXFLAGS" and overrides the "-O2" set before. The other flags will not be touched.

olelukoie:

--- Quote from: jens on July 10, 2008, 11:33:34 am ---I have 3.3 GB usable Ram and the 64-bit compilation uses about 3.4 GB for "defaults.cpp". Compiling for 32-bit uses much less memory.

--- End quote ---
I do not have such enormous memory consuming by compiling this file - on my 64-bit system (mandriva linux 2009.0 alpha with GCC 4.3.1 prerelease) it takes about 850 Mb of RAM and ~57 seconds (CPU Intel E6750). And after i've split the function SetDefaultsWxWidgets into two (SetDefaultsWxWidgets26 and SetDefaultsWxWidgets28 plus "wrapper" SetDefaultsWxWidgets that calls them) compiling this file took about the same time but almost twice less memory (~450 Mb).

Jenna:

--- Quote from: olelukoie on July 11, 2008, 12:19:21 pm ---
--- Quote from: jens on July 10, 2008, 11:33:34 am ---I have 3.3 GB usable Ram and the 64-bit compilation uses about 3.4 GB for "defaults.cpp". Compiling for 32-bit uses much less memory.

--- End quote ---
I do not have such enormous memory consuming by compiling this file - on my 64-bit system (mandriva linux 2009.0 alpha with GCC 4.3.1 prerelease) it takes about 850 Mb of RAM and ~57 seconds (CPU Intel E6750). And after i've split the function SetDefaultsWxWidgets into two (SetDefaultsWxWidgets26 and SetDefaultsWxWidgets28 plus "wrapper" SetDefaultsWxWidgets that calls them) compiling this file took about the same time but almost twice less memory (~450 Mb).

--- End quote ---

 I didn't measure the time, but with no optimization the compilation of "defaults.cpp" needs less then 10 seconds.
With optimization it needs some minutes.

I can't test what happens if I split the SetDefaultWxWidgets-function, my laptop is at home and I am at work :cry: .
My only linux-system here is on my USB-stick and it's 32-bit only.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version