Page 1 of 1

Release Configuration Always Rebuilds

Posted: Mon May 24, 2010 6:32 pm
by bossbarber
I keep having an issue where release configurations of projects always do a complete rebuild of themselves and dependencies, even when there has not been any code changes. I'm currently using CL 4031 on Ubuntu 10.04 (g++ console application and dynamic libraries), however I've had this happen in Ubuntu 9.04 and 9.10 also. Is there some option I've checked where it will always re-build even when there are no changes? The rebuild problem doesn't happen when in the Debug project configuration.

Thanks

Re: Release Configuration Always Rebuilds

Posted: Tue May 25, 2010 9:14 am
by eranif
What do you mean "re-build" does codelite compiles the sources? or only the link stage?

If it is the link stage, then this is normal.
If it re-compiles the files - then it should not happen.

Eran

Re: Release Configuration Always Rebuilds

Posted: Mon May 31, 2010 2:57 am
by bossbarber
It re-builds all the sources again and does a re-link. Has anyone else had this issue? It seems to have started recently. A friend of mine mentioned that it may have something to do with the timestamp of one of the files being wrong (like the file was saved on a computer with the system clock ahead) making gcc think the files are always modified, however the problem seems to happen on a lot of different projects I've been compiling on. I've event deleted my files, and re-checked them out from an SVN again, etc. and modified the files and re-saved, but problem continues.

Re: Release Configuration Always Rebuilds

Posted: Mon May 31, 2010 9:28 pm
by frank_frl
Hi,

I noticed a similar issue for a while. When I'm working on a single file and compile, sometimes not only this file is compiled after a change, but others as well.
It's not a complete rebuild, but files get compiled I didn't touched at all.

Frank

Re: Release Configuration Always Rebuilds

Posted: Tue Jun 01, 2010 8:51 am
by eranif
frank_frl wrote:It's not a complete rebuild, but files get compiled I didn't touched at all.
This may happen if Make suspects that a dependency file was changed that may

Eran

Re: Release Configuration Always Rebuilds

Posted: Mon Aug 22, 2011 10:43 pm
by spaces
eranif wrote:If it is the link stage, then this is normal.
Hmm, why this is normal? Can this skipped somehow?

I have similar problem. I have a quite a few dlls in my workspace. My main project is using them all. It takes a lot of time to even link them all. They are all in different dirctories too.

The make does not relink the static libs but all dynamic libs are relinked. It's really frustrtating... :(

Ofc I accept this if this is the limitation of mingw but still.

Re: Release Configuration Always Rebuilds

Posted: Tue Aug 23, 2011 12:09 am
by eranif
spaces wrote: I have a quite a few dlls in my workspace. My main project is using them all. It takes a lot of time to even link them all.
This is fixed in the trunk version of codelite

Eran

Re: Release Configuration Always Rebuilds

Posted: Thu Aug 25, 2011 3:12 pm
by spaces
Nice, thank you.

2 suggestion though. In winprocess_impl.cpp move the line

#define _WIN32_WINNT 0x0501 // Make AttachConsole(DWORD) visible

above the headers, otherwise it won't have effect and won't compile the file.

The other is make somewhere clear that the .exe's requires "wxmsw292u_gcc_custom.dll", or the IDE will produce mystical error numbers and won't work. (This was on winXP using the latest stable 32bit Codelite.)

Anyway Codelite is a freaking good software! Keep up the good work!

Re: Release Configuration Always Rebuilds

Posted: Thu Aug 25, 2011 3:54 pm
by eranif
spaces wrote:The other is make somewhere clear that the .exe's requires "wxmsw292u_gcc_custom.dll", or the IDE will produce mystical error numbers and won't work. (This was on winXP using the latest stable 32bit Codelite.)
codelite 3.0 is about to be released so it will solve this error

Eran