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
Hello

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
Tom
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
Member
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"?>
<projectDescription>
<name>asio_timer_asynch</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.core.ccnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>

-----------------------------------------------------------------------------------------------------------
The final part of the makefile:
-----------------------------------------------------------------------------------------------------------

-include ../makefile.defs

OPTIONAL_TOOL_DEPS := \
$(wildcard ../makefile.defs) \
$(wildcard ../makefile.init) \
$(wildcard ../makefile.targets) \


BUILD_ARTIFACT_NAME := asio_timer_asynch
BUILD_ARTIFACT_EXTENSION :=
BUILD_ARTIFACT_PREFIX :=
BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),)

# 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 objects.mk $(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
clean:
-$(RM) $(CC_DEPS)$(C++_DEPS)$(EXECUTABLES)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(C_DEPS)$(CPP_DEPS) asio_timer_asynch
-@echo ' '

.PHONY: all clean dependents

-include ../makefile.targets
(END)

Any ideas how to sort out of this behaviour?

Many thanks,

-Francisco

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: 1426
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
https://www.gnu.org/software/make/manual/html_node/Options-Summary.html

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: Fri Mar 29 01:22:17 GMT 2024

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

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

Back to the top