Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » eclipse always rebuild all object files(all object files get rebuild even when the sources havent changed)
eclipse always rebuild all object files [message #1791842] Fri, 06 July 2018 07:32 Go to next message
Tom Viehrig is currently offline Tom ViehrigFriend
Messages: 1
Registered: July 2018
Junior Member

I moved my C++ project from eclipse 4.4.2 to the newest eclipse 4.8.0 on a new computer.
The problem is that eclipse now always does compile all files, even when I didn't change anything in the sources.

I can't find a reason for this behaviour, maybe anyone here can help me to fix this. Compiling everything does take a lot of time...

Thank you
Re: eclipse always rebuild all object files [message #1792093 is a reply to message #1791842] Wed, 11 July 2018 08:51 Go to previous messageGo to next message
Harald    is currently offline Harald Friend
Messages: 37
Registered: July 2009
Do you use the internal builder with parallel build?

Than it's maybe the known bug 217674
Re: eclipse always rebuild all object files [message #1847193 is a reply to message #1791842] Mon, 18 October 2021 22:34 Go to previous messageGo to next message
Francisco Carvalho is currently offline Francisco CarvalhoFriend
Messages: 1
Registered: October 2021
Junior Member
Hi everyone,

The situation keeps happening to me with eclipse 2021-06, as today, 2021-OCT-18

This is my .project file

<?xml version="1.0" encoding="UTF-8"?>

The final part of the makefile:

-include ../makefile.defs

$(wildcard ../makefile.defs) \
$(wildcard ../makefile.init) \
$(wildcard ../makefile.targets) \

BUILD_ARTIFACT_NAME := asio_timer_asynch

# Add inputs and outputs from these tool invocations to the build variables

# All Target
all: main-build

# Main-build Target
main-build: asio_timer_asynch

# Tool invocations
asio_timer_asynch: $(OBJS) $(USER_OBJS) makefile $(OPTIONAL_TOOL_DEPS)
@echo 'Building target: $@'
@echo 'Invoking: Cross G++ Linker'
g++ -L/usr/local/lib -L/usr/lib/ -o "asio_timer_asynch" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '

# Other Targets
-@echo ' '

.PHONY: all clean dependents

-include ../makefile.targets

Any ideas how to sort out of this behaviour?

Many thanks,


Re: eclipse always rebuild all object files [message #1847224 is a reply to message #1847193] Wed, 20 October 2021 02:19 Go to previous message
David VavraFriend
Messages: 1430
Registered: October 2012
Senior Member
If you are using external make (specifically, GNUMake) you can get info on
what it's doing. Checkout the debug=v flag and maybe others

You might want to look into the files Make is including.
They are part of the Makefile

Generally things of this nature are off topic for this forum.
If you can show CDT is originating the problem then you
should submit a bug report.

Previous Topic:Remove double quotes from build command
Next Topic:Launching Project has encountered a problem. Program file does not exist.
Goto Forum:

Current Time: Thu Oct 06 18:33:41 GMT 2022

Powered by FUDForum. Page generated in 0.02295 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top