Debugging the CDT build process [message #1118480] |
Fri, 27 September 2013 08:51  |
Eclipse User |
|
|
|
Hello,
I'm having a couple of issues with the incremental build in Kepler/CDT 8.2.0 (MinGW, Windows 7):
I have a set of projects - one executable, several interdependent static libraries. Dependencies are expressed via Eclipse project references.
The first problem is that, if I perform a build explicitly through the project menu, then immediately run the application (causing an implicit/automatic build), it gets (needlessly?) rebuilt.
The second is that during a build, one of the low level libraries (upon which several of the others depend) is rebuilt up to five times.
Incidentally, this only manifested itself after I upgraded to Kepler (from Indigo) - perhaps one of my project files didn't convert perfectly?
I think what's going on is that the build settings are subtly different - enough for Eclipse to think a rebuild is necessary - though all the commands executed through gcc are the same (modulo ordering). Is there any way to get Eclipse to tell me why it thinks a rebuild is required?
Thanks for your help,
Mark Thompson
|
|
|
|
Re: Debugging the CDT build process [message #1125287 is a reply to message #1118480] |
Fri, 04 October 2013 07:05  |
Eclipse User |
|
|
|
Thanks for your reply, Dave:
I'm knee-deep in the CDT build code at the moment.
I think I've narrowed my problem down to workspace deltas being computed incorrectly - a build sometimes causes all the object files to be flagged as changed, and the next build recompiles them all.
I'm not yet certain, but from what I can gather what should be happening is that the workspace state should be saved after the artifacts from the build are generated and deltas generated from there. Can anyone confirm this, or does anyone have documentation about the design of the CDT internal builder? Comments seem a bit sparse, or I'm looking in the wrong places.
For any other interested parties - the problems seem to stem from various bugs/RFI related to Eclipse 309769, but there doesn't seem to be much activity on them.
Would be grateful for any additional information,
Mark
|
|
|
Powered by
FUDForum. Page generated in 0.03338 seconds