Release Configuration Always Rebuilds

CodeLite installation/troubleshooting forum
bossbarber
CodeLite Curious
Posts: 6
Joined: Wed Mar 04, 2009 10:36 pm
Contact:

Release Configuration Always Rebuilds

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Release Configuration Always Rebuilds

Post 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
Make sure you have read the HOW TO POST thread
bossbarber
CodeLite Curious
Posts: 6
Joined: Wed Mar 04, 2009 10:36 pm
Contact:

Re: Release Configuration Always Rebuilds

Post 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.
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: Release Configuration Always Rebuilds

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Release Configuration Always Rebuilds

Post 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
Make sure you have read the HOW TO POST thread
spaces
CodeLite Veteran
Posts: 67
Joined: Mon Aug 22, 2011 10:15 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Release Configuration Always Rebuilds

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Release Configuration Always Rebuilds

Post 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
Make sure you have read the HOW TO POST thread
spaces
CodeLite Veteran
Posts: 67
Joined: Mon Aug 22, 2011 10:15 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Release Configuration Always Rebuilds

Post 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!
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Release Configuration Always Rebuilds

Post 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
Make sure you have read the HOW TO POST thread
Post Reply