Bug 407021 - Enabling build automatically and build on resource save causes project to keep rebuilding
Summary: Enabling build automatically and build on resource save causes project to kee...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 8.1.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-01 16:38 EDT by Buddy Taylor CLA
Modified: 2020-09-04 15:19 EDT (History)
2 users (show)

See Also:


Attachments
.cproject file (8.99 KB, application/octet-stream)
2013-05-01 16:38 EDT, Buddy Taylor CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Buddy Taylor CLA 2013-05-01 16:38:13 EDT
Created attachment 230365 [details]
.cproject file

I've got a CDT C++ project on linux using makefiles that are autogenerated by CDT. The project creates a .so. Everything seems to work fine. However,
when I enable Build Automatically and Build on Resource Save, the project
continuously builds the shared object. That is, it links it once, finishes building, and then starts another build (make all). It keeps doing this until I disable build automatically. For the second and subsequent build the "make all" doesn't actually build anything.

--
16:34:01 **** Auto Build of configuration Default for project libChunkstore ****
make all 
make: Nothing to be done for `all'.

16:34:01 Build Finished (took 77ms)
--

I can not figure out what is causing it to keep rebuilding.

Linux xxx 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 6.2 (Santiago)

Eclipse Version: Juno Service Release 2
Build id: 20130225-0426

C/C++ Development Tools SDK	8.1.2.201302132326	org.eclipse.cdt.sdk.feature.group	Eclipse CDT
Comment 1 hmf Mising name CLA 2013-06-06 05:04:26 EDT
I have a similar problem.

In my case however I have two build configurations. 
When on start-up the first listed build configuration causes a build.
I then select the desired build configuration and select the executable
from the green exec button (correct binary for build selected).
The build process then start. It seems to repeat and unlike above does a full build.

Whenever I press the same run button a new build is done.