• AVR Freaks

Hot!MPLAB X Compilation extremely slow

Author
hamster
New Member
  • Total Posts : 29
  • Reward points : 0
  • Joined: 2019/08/23 06:16:37
  • Location: 0
  • Status: offline
2020/01/30 09:30:26 (permalink)
0

MPLAB X Compilation extremely slow

After a reboot the build process of my project went from 30s to over 10minutes. I have searched around and looked at the other posts concerning the same problem, but I cannot fix it.

I am using:
XC32 v2.15 free version. I have added a XC32++ free license using a script downloaded here: https://www.microchip.com/xcdemo/xcpluspromo.aspx
MPLAB X IDE v5.15 ( not v5.30 due to some dependencies with the code base I am working on)
Harmony v2.06

I have reinstalled XC32, Harmony and MPLAB X all without any effect. When I open MPLAB X it gives an error after a while: "License Check operation timed out. Please check internet connectivity." Others have reported that the compilation time is back to normal if they close the internet connection. That is not the case for me.

It is most curios that even though I remove /opt/microchip/* /home/microchip/* and install everything following the same steps as I did first time I installed it 6 months ago, it still is broken.


#1

13 Replies Related Threads

    hamster
    New Member
    • Total Posts : 29
    • Reward points : 0
    • Joined: 2019/08/23 06:16:37
    • Location: 0
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/01/30 09:34:12 (permalink)
    0
    I am unable to edit the original post for some reason. So adding following information here:
    I am using 64 bit Ubuntu 18.04.3
    #2
    mbrowning
    USNA79
    • Total Posts : 1789
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/01/30 10:04:38 (permalink)
    +1 (1)
    hamster
    I am unable to edit the original post for some reason.

    Crazy forum doesn't allow editing posts with active links. You can get around this by clicking "(Open Full Version)" in the Quick Reply window, clicking within the link, and then clicking the "Unlink" icon that just became active. It will "relink" when you submit
    #3
    ric
    Super Member
    • Total Posts : 27954
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/01/30 12:31:52 (permalink)
    +1 (1)
    mbrowning
    ...
    Crazy forum doesn't allow editing posts with active links.

    Agree

    You can get around this by clicking "(Open Full Version)" in the Quick Reply window, clicking within the link, and then clicking the "Unlink" icon that just became active. It will "relink" when you submit

    "Open Full version" only applies to replying to posts.
    When you "Edit" a post, you always are in the "Full" editor.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #4
    mbrowning
    USNA79
    • Total Posts : 1789
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/01/30 14:06:43 (permalink)
    0
    ric
    "Open Full version" only applies to replying to posts.

    D'oh. Of course I was replying and the difference didn't occur to me.
    #5
    hamster
    New Member
    • Total Posts : 29
    • Reward points : 0
    • Joined: 2019/08/23 06:16:37
    • Location: 0
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/01/31 05:40:09 (permalink)
    0
    Thanks for clarification about links.

    It is a complete mystery to me, but today when I opened up MPLAB the compilation times were back to normal. The only explanation that comes to mind is that I left the workstation ON for the night. The problem first arose when I did a reboot. So I wont reboot again anytime soon and hope I wont see this bug again.


    #6
    hamster
    New Member
    • Total Posts : 29
    • Reward points : 0
    • Joined: 2019/08/23 06:16:37
    • Location: 0
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/01/31 07:14:24 (permalink)
    +1 (1)
    I celebrated too early. After 4 hours of normal functioning the compiler is back to basically not functioning again. This is the output of the build process.
    make -f nbproject/Makefile-sdcard_pic32mz_ef_sk_meb2.mk SUBPROJECTS= .build-conf
    make[1]: Entering directory '/home/erlingrj/sentiboard-bootloader/firmware/sentiboard-bootloader.X'
    cd /home/erlingrj/sentiboard/firmware/apps/Syncboard/firmware/Syncboard.X && make  -f Makefile CONF=syncboard3
    make[2]: Entering directory '/home/erlingrj/sentiboard/firmware/apps/Syncboard/firmware/Syncboard.X'
    make -f nbproject/Makefile-syncboard3.mk SUBPROJECTS= .build-conf
    make[3]: Entering directory '/home/erlingrj/sentiboard/firmware/apps/Syncboard/firmware/Syncboard.X'
    make  -f nbproject/Makefile-syncboard3.mk dist/syncboard3/production/Syncboard.X.production.hex
    make[4]: Entering directory '/home/erlingrj/sentiboard/firmware/apps/Syncboard/firmware/Syncboard.X'
    make[4]: 'dist/syncboard3/production/Syncboard.X.production.hex' is up to date.
    make[4]: Leaving directory '/home/erlingrj/sentiboard/firmware/apps/Syncboard/firmware/Syncboard.X'
    make[3]: Leaving directory '/home/erlingrj/sentiboard/firmware/apps/Syncboard/firmware/Syncboard.X'
    make[2]: Leaving directory '/home/erlingrj/sentiboard/firmware/apps/Syncboard/firmware/Syncboard.X'
    make  -f nbproject/Makefile-sdcard_pic32mz_ef_sk_meb2.mk dist/sdcard_pic32mz_ef_sk_meb2/production/sentiboard-bootloader.X.production.hex
    make[2]: Entering directory '/home/erlingrj/sentiboard-bootloader/firmware/sentiboard-bootloader.X'
    "/opt/microchip/xc32/v2.15/bin/xc32-gcc"   -mprocessor=32MZ2048EFH144  -o dist/sdcard_pic32mz_ef_sk_meb2/production/sentiboard-bootloader.X.production.elf build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1845527279/bsp.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/354547916/drv_spi_tasks.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/354547916/drv_spi_api.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/354547916/drv_spi_master_ebm_tasks.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/93314346/sys_clk_pic32mz.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/736125341/sys_devcon.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/736125341/sys_devcon_pic32mz.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/736125341/sys_devcon_cache_pic32mz.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/973355514/sys_ports_static.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/2090968255/system_init.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/2090968255/system_interrupt.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/2090968255/system_exceptions.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/2090968255/system_tasks.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1360937237/main.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1360937237/app.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1666471743/datastream_sdcard.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1045441946/nvm.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/329613237/bootloader.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1973101315/drv_nvm.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1973101315/drv_nvm_erasewrite.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1454529299/drv_sdcard.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/832922250/drv_spi.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1178026150/drv_spi_sys_queue_fifo.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1216522871/drv_tmr.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/2078133406/drv_usbhs.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/2078133406/drv_usbhs_device.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/951301774/sys_fs.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/951301774/sys_fs_media_manager.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/2106899245/ff.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1016785162/diskio.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1520393436/sys_int_pic32.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/1997160995/sys_reset.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/378263730/sys_tmr.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/9458743/usb_device.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/9458743/usb_device_cdc.o build/sdcard_pic32mz_ef_sk_meb2/production/_ext/9458743/usb_device_cdc_acm.o    /home/microchip/harmony/v2_06/bin/framework/peripheral/PIC32MZ2048EFH144_peripherals.a      -DXPRJ_sdcard_pic32mz_ef_sk_meb2=sdcard_pic32mz_ef_sk_meb2  -legacy-libc    -Wl,--defsym=__MPLAB_BUILD=1,--script="/home/erlingrj/sentiboard-bootloader/firmware/src/system_config/sdcard_pic32mz_ef_sk_meb2/sentiboard_btl.ld",--defsym=_min_heap_size=2048,--gc-sections,--no-code-in-dinit,--no-dinit-in-serial-mem,-Map="dist/sdcard_pic32mz_ef_sk_meb2/production/sentiboard-bootloader.X.production.map",--memorysummary,dist/sdcard_pic32mz_ef_sk_meb2/production/memoryfile.xml


     
    #7
    crosland
    Super Member
    • Total Posts : 2009
    • Reward points : 0
    • Joined: 2005/05/10 10:55:05
    • Location: Warks, UK
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/01/31 07:42:05 (permalink)
    0
    If it were Windows I would say make sure the Netbeans cache is excluded from defender and any other virus checker.
     
    Does it happen when NetBeans in checking for external changes or indexing the project?
    #8
    adam.glowacki
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2016/08/02 06:31:45
    • Location: Poland
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/06/30 04:53:55 (permalink)
    0
    Hi! I have been experiencing the same problem on two of my laptops running different versions of Fedora. It turned out it has nothing to do with MPLAB X. The compilation by xc32 takes terribly long at times, even with extremely simple files. When testing I was compiling a super-simple file (a single empty function if I recall correctly) using both xc32 and gcc. In case of xc32 it took between 2.3s and 5.9s, gcc compilation took up to 62ms. I filed the issued but the Microchip employer wasn't able to reproduce the issue on his machine so we had to give up.
    After a while the problem disappeared but it recently reappeared. That's why I found this thread. If anyone has any ideas what's the cause of the problem, I would be very thankful.
    #9
    adam.glowacki
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2016/08/02 06:31:45
    • Location: Poland
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/06/30 04:53:55 (permalink)
    0
    _
    post edited by adam.glowacki - 2020/06/30 05:45:33
    #10
    adam.glowacki
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2016/08/02 06:31:45
    • Location: Poland
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/06/30 04:53:55 (permalink)
    0
    _
    post edited by adam.glowacki - 2020/06/30 05:46:09
    #11
    ric
    Super Member
    • Total Posts : 27954
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/06/30 04:59:38 (permalink)
    +1 (1)
    You can edit the second post to delete the repeated text. (You can't delete the whole post)
    Does the compilation speed up if you kill your network connection?
    Many "slow compile" issues have turned out to be a problem in the licence server.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #12
    crosland
    Super Member
    • Total Posts : 2009
    • Reward points : 0
    • Joined: 2005/05/10 10:55:05
    • Location: Warks, UK
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/06/30 05:01:41 (permalink)
    +1 (1)
    See post #8, 2nd paragraph, NetBeans is an absolutely awful piece of software, especially if you have a slow machine or a slow disk.
    #13
    adam.glowacki
    New Member
    • Total Posts : 15
    • Reward points : 0
    • Joined: 2016/08/02 06:31:45
    • Location: Poland
    • Status: offline
    Re: MPLAB X Compilation extremely slow 2020/06/30 05:45:07 (permalink)
    0
    I have just made experiments and they suggested ric is right! Thank you!
     
    It's a bit burdensome to go offline each time I need to compile a project :-( But it's much better than waiting half an hour for a recompilation of a large project. Maybe I will need to setup a container for building or in some other way isolate the compiler from the network.
     
    I use only free license of the xc32. I didn't expect it to try to reach the license server.
    #14
    Jump to:
    © 2020 APG vNext Commercial Version 4.5