Hot!MPLab X always recompiles everything

Author
fbirot
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2015/12/18 11:39:27
  • Location: 0
  • Status: offline
2017/10/03 01:54:52 (permalink)
0

MPLab X always recompiles everything

Hello,
 
is someone also experiencing this : MPLab X is recompiling everything even if you don't modify your source files ?
 
We've had this problem for quite some time now, and since our project is becoming bigger and bigger, this is becoming a real issue. We have this problem on OSX and Windows with different versions of MPLab X (the last one tested beeing MPLab 4.00)
 
Actually, what happens is that MPLab is often replacing/rewriting the Makefiles, which changes their modification time, and makes it recompiles everything at the next build.
 
In order to reproduce it:
 
1/ Open MPLab X 4.00 or MPLab 3.61
2/ Create a new project, with only a main.c file, that does nothing
3/ Build the project (by right-clicking on the project in the tree, and clicking on "Build")
4/ Close MPLab
4/ Open a terminal, cd in the project directory, and type the following command (on osx) to look at the modification time of the different Makefiles: find ./ -name Makefile\* -exec ls -l {} \;
5/ Re-open MPLab
6/ Execute the same command as before in the terminal, to check the modification time of the Makefiles again. You will see that some Makefiles were deleted and some have their modification time changed (see below)
7/ Build the project again: MPLab is recompiling main.c despite the fact that it hasn't been modified
 
MacBookFrancois:TestCompilation2.X fbirot$ find ./ -name Makefile\* -exec ls -l {} \;

-rw-r--r-- 1 fbirot staff 3381 2 oct 17:46 .//Makefile

-rw-r--r-- 1 fbirot staff 6134 2 oct 18:22 .//nbproject/Makefile-default.mk

-rw-r--r-- 1 fbirot staff 431 2 oct 18:22 .//nbproject/Makefile-genesis.properties

-rw-r--r-- 1 fbirot staff 1950 2 oct 18:22 .//nbproject/Makefile-impl.mk

-rw-r--r-- 1 fbirot staff 2239 2 oct 18:22 .//nbproject/Makefile-local-default.mk

-rw-r--r-- 1 fbirot staff 459 2 oct 18:22 .//nbproject/Makefile-variables.mk

MacBookFrancois:TestCompilation2.X fbirot$ # Let's re-open MPLab

MacBookFrancois:TestCompilation2.X fbirot$ find ./ -name Makefile\* -exec ls -l {} \;

-rw-r--r-- 1 fbirot staff 3381 2 oct 17:46 .//Makefile

-rw-r--r-- 1 fbirot staff 6134 2 oct 18:22 .//nbproject/Makefile-default.mk

-rw-r--r-- 1 fbirot staff 1950 2 oct 18:30 .//nbproject/Makefile-impl.mk

-rw-r--r-- 1 fbirot staff 2239 2 oct 18:22 .//nbproject/Makefile-local-default.mk


 
Any idea of how to fix that ?
post edited by fbirot - 2017/10/03 06:08:31
#1

0 Replies Related Threads

    Jump to:
    © 2017 APG vNext Commercial Version 4.5