Hot!MPLABX 4.01 Clean & Build Failure

Author
notimoked
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2016/10/12 11:54:29
  • Location: Wisconsin, USA
  • Status: offline
2017/09/29 13:58:30 (permalink)
0

MPLABX 4.01 Clean & Build Failure

I've encountered a odd and repeatable issue on my system with MPLABX 4.01 when cleaning and building 32 bit Harmony projects.
Essentially, the clean and build fails because it can't remove the build directories due to them not being empty. (example output listed below in quotes).  The odd part is that I can repeat the operation after it fails once and it will succeed and perform the clean & build.  If I attempt a third time it will fail again and the pattern repeats with each clean and build.
 
I am working with current versions of MPLABX 4.01, XC32 1.44 and Harmony 2.04
The project directory is located in a sub folder of my C drive (C:/32dev/[project name here]), but I've also tried one level deeper as well.
I have tried running the program with and without admin permissions and the problem persists.
The issue does not appear to present itself in my 16 bit PIC24 projects or 32 bit projects without harmony.
 
At this point, this is more of an annoyance than anything because I can still work on projects.  If anyone has experienced this and has a fix please leave a reply.
 
rm: cannot remove directory `build/selfConfig/production/_ext/1095903614': Directory not empty
rm: cannot remove directory `build/selfConfig/production/_ext/1518571682': Directory not empty
rm: cannot remove directory `build/selfConfig/production/_ext/185269848': Directory not empty
rm: cannot remove directory `build/selfConfig/production/_ext/240149145': Directory not empty
rm: cannot remove directory `build/selfConfig/production/_ext/572490754': Directory not empty

CLEAN FAILED (exit value 1, total time: 250ms)

 
#1

6 Replies Related Threads

    Jim Nickerson
    User 452 _
    • Total Posts : 5015
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re: MPLABX 4.01 Clean & Build Failure 2017/09/29 16:04:48 (permalink)
    +1 (1)
    I am running multiple cores and get this on the first build but it usually clears on the second.
    Windows 10, latest, lots of cores and ram.
    It has been getting worse in the last week or so.
    I think it has something to do with updates.
    I plan on watching with https://docs.microsoft.co...nloads/procmon to find the sequence causing this and finding some way around it.
    #2
    qhb
    Superb Member
    • Total Posts : 6262
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: MPLABX 4.01 Clean & Build Failure 2017/09/29 16:50:06 (permalink)
    +1 (1)
    Presumably it's running process in parallel, and the process that erases all files in the folder is still running when  a separate process tries to delete the folder.
     
     
    #3
    Jim Nickerson
    User 452 _
    • Total Posts : 5015
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re: MPLABX 4.01 Clean & Build Failure 2017/09/30 05:43:59 (permalink)
    0
    Yes it is running process(s) in parallel.
    I think the problem is it is also monitoring for changed files to "index".
    #4
    moser
    Super Member
    • Total Posts : 376
    • Reward points : 0
    • Joined: 2015/06/16 02:53:47
    • Location: Germany
    • Status: offline
    Re: MPLABX 4.01 Clean & Build Failure 2017/10/04 00:59:18 (permalink)
    0
    I also have this problem regularly. The number of needed "cleans" is varying. Sometimes I have to clean 5 times in a row until it succeeds. 
     
    System is a laptop with i5-2540M (2,6 GHz), 8 GB ram, Windows 7 64 bit. I was wondering whether it could have anything to do with the hard disk going into sleep mode, but I never got any clear signs. 
    #5
    KTrenholm
    Super Member
    • Total Posts : 448
    • Reward points : 0
    • Joined: 2012/08/08 14:04:23
    • Location: Connecticut, USA
    • Status: offline
    Re: MPLABX 4.01 Clean & Build Failure 2017/10/04 06:47:16 (permalink)
    0
    I've also had this crop up frequently using MPLAB X v3.65 (though it's been happening regularly ever since I started using MPLAB X at around v2.0 or so).  It's very annoying but usually running another clean+build works.
     
    Still, if it's a matter of one process trying to run when another isn't complete shouldn't a fix be as simple as making sure the first process is finished before running the 2nd?  Why bother running them in parallel if it results in an error such as this?
    #6
    Jim Nickerson
    User 452 _
    • Total Posts : 5015
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re: MPLABX 4.01 Clean & Build Failure 2017/10/04 06:55:55 (permalink)
    +1 (1)
    I think this might require a java/netbeans fix which Microchip is not in charge of.
    I suspect it is an interaction between java and Windows.
    I suspect it is java using or misusing one of the older windows api calls and windows has evolved making the older api call miss some newer windows feature.
    It used to be common practice to try to make use the api in strange ways to provide the same functionality as windows internally but the functionality was not expressed/made available in the api.
    #7
    Jump to:
    © 2018 APG vNext Trial Version 4.5