• AVR Freaks

LockedVery Long Compiling Times(XC32 v1.22 and XC16 v1.20)

Page: 123 > Showing page 1 of 3
Author
mzoran
Super Member
  • Total Posts : 683
  • Reward points : 0
  • Status: offline
2013/10/30 10:40:22 (permalink)
0

Very Long Compiling Times(XC32 v1.22 and XC16 v1.20)

Hi,
 
   I installed the latest versions of XC16(v1.20) and XC32(v1.22) as an upgrade from XC16(v1.11) and XC32(v1.20).   I noticed that both when building from the command line and building from MPLAB X(v1.90) the build times have jumped from < 1 second to > 20 seconds.   The new tools are installed in addition to the old versions.   If I select the new versions in the MPLAB X project properties, I get the very long build times.   If I select the old versions, building is very fast.
 
   I did not activate a demo license on either install since I want to run everything in free mode only.  I am running MPLAB X + tools from a VirtualBox virtual machine running Ubuntu as the guest OS.   I am doing this mostly since MPLAB X seems to run the best and fastest from Linux.
 
   Any ideas what the problem could be?   I noticed the setup prompts have changed.  Is this possibly a copy protection/licensing issue?
post edited by mzoran - 2013/10/30 11:42:55
#1

47 Replies Related Threads

    M@rcel
    Senior Member
    • Total Posts : 53
    • Reward points : 0
    • Joined: 2004/05/03 11:53:07
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/10/31 08:05:37 (permalink)
    0
    Yup, same here
     
    XC32 V1.22 compiles much slower compared to V1.21. Both running in free-mode from  MPLABX V1.90.
    #2
    jrmymllr
    Senior Member
    • Total Posts : 165
    • Reward points : 0
    • Joined: 2011/06/11 06:05:25
    • Location: MPLS
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/01 13:17:16 (permalink)
    0
    Just went to 1.22 from 1.21 hoping to fix another problem.  It didn't fix it, and increased compile times SIGNIFICANTLY, as you describe.
     
    I've had some pretty bad experiences with Mchip compilers in the last year, but compile times is the least of the problems. 
    #3
    mzoran
    Super Member
    • Total Posts : 683
    • Reward points : 0
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/01 16:26:06 (permalink)
    0
    I was able to confirm this is indeed a licensing/copy protection issue.   I just happened to have wireshark installed on the system and tried running a capture while building.   The compiler is sending out a UDP packet on every file to find the licensing server and waiting about 5-7 seconds for a response.
     
    Does anybody know how to disable this feature and just use the compiler in free only mode?   Does anybody know if paying for a compiler license would disable this?
    #4
    andersm
    Super Member
    • Total Posts : 2740
    • Reward points : 0
    • Joined: 2012/10/07 14:57:44
    • Location: 0
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/02 02:47:56 (permalink)
    +1 (1)
    When you installed the compiler, did you tick the "Install a network client" box? They changed the installer layout between 1.21 and 1.22 so it always shows the network client dialog in the wizard instead of having select that step explicitly.
    #5
    mzoran
    Super Member
    • Total Posts : 683
    • Reward points : 0
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/02 13:22:36 (permalink)
    +1 (1)
    This is linux, so everything is on the command prompt.   Here are the options I selected.  Notice that I selected N to not install as a network client.  I was able to find a workaround but it's a bit silly.   In ubuntu, if I disable the networking system while compiling I get very fast build times of 1 < second.   
     
    Also, as I mentioned I don't know if this is something that simply slipped through testing or if this is intentional to encourage people to buy a license instead of using the free mode.   If it is intentional, this isn't a very good way to go about doing it because some people may think the XC compilers just really are that incredibly slow and move to another platform or work around it as I mentioned above.
     
    ----------------------------------------------------------------------------
    Choose Installer
    Choose compiler or Network License Manager installation.
    Choose compiler or Network License Manager installation.
    [1] Install compiler: Install MPLAB XC32 Compiler
    [2] Install the Network License Server: Install the Network License Server for Microchip XC compilers
    Please choose an option [1] : 1
    ----------------------------------------------------------------------------
    Installation type
    MPLAB XC32 Compiler will be installed on this computer.
    Configure MPLAB XC32 Compiler as a network client. [y/N]: N
    ----------------------------------------------------------------------------
    Please specify the directory where MPLAB XC32 Compiler will be installed.
    Installation Directory [/opt/microchip/xc32/v1.22]:<hit return>
    ----------------------------------------------------------------------------
    Compiler Settings
    Add xc32 to the PATH environment variable [y/N]:<hit return>
    ----------------------------------------------------------------------------
    Setup is now ready to begin installing MPLAB XC32 Compiler on your computer.
    Do you want to continue? [Y/n]:<hit return>
    ----------------------------------------------------------------------------
    Installation Complete - Licensing Information
    If you want to use the FREE MPLAB XC32 C Compiler, Click Next.
    If your compiler is already licensed, Click Next.
    Click here to get a free, 60-day evaluation of XC32 PRO [Y/n]: n
    Click here to get a free XC32++ compiler license [Y/n]: n
    Click to purchase a PRO or Standard license [Y/n]: n
    If you have an Activation Key:
    Click here to activate your license [Y/n]: n
    Your Host ID is: [080027bebd4c]:
    ----------------------------------------------------------------------------
    Setup has finished the requested actions for MPLAB XC32 Compiler on your
    computer.
     
    For some reason, I'm unable to respond to JasonK's post.   It's giving me access denied.
     
    Here is my xclm.conf file
    <xclm>
    <xclm:LicenseDirectory xclm:path="/opt/microchip/xclm/license/" />
    <xclm:Activation xclm:url="http://keygen.microchip.com" />
    <xclm:Demo xclm:url="http://www.microchip.com/xcdemo/handler.aspx" /> 
    </xclm>
     
    The software is sending the UDP packet to 255.255.255.255 so I think it's trying to find a license server.
     
    post edited by mzoran - 2013/11/02 15:11:47
    #6
    JasonK
    Moderator
    • Total Posts : 3389
    • Reward points : 0
    • Joined: 2003/11/14 09:49:40
    • Location: Microchip Technology in Arizona, USA
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/02 14:44:59 (permalink)
    0
    Can you check the contents of your /opt/microchip/xc32/v1.22/etc/xclm.conf file.
    It should be similar to

    <xclm>
    <xclm:LicenseDirectory xclm:path="path-to-license-files" />
    <xclm:Activation xclm:url="http://keygen.microchip.com" />
    <xclm:Demo xclm:url="http://www.microchip.com/xcdemo/handler.aspx" /> 
    </xclm>
     

    It should not have any information related to a network license server.
     

    Jason Kajita
     Follow me on Twitter
    http://support.microchip.com for urgent questions
    #7
    Jim Nickerson
    User 452
    • Total Posts : 6463
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/02 16:30:59 (permalink)
    0
    I also can not reply to Jason's post, interesting 501 error when trying to post.
    Jason,
    I have also noticed longer compile times with 1.22 than 1.21, and UDP packets to port 5053 (rlm-disc) that were not there with v1.21.
    I am running licensed copies of the compilers with activated workstation license.
    29 seconds to 2 minutes 46 seconds with only a version change.
    My conf file points to my local dir with the license file.

    "C:\Program Files (x86)\Microchip\xc32\v1.21\bin"\\xc32-bin2hex dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.elf
    make[2]: Leaving directory `C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X'
    make[1]: Leaving directory `C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X'
    BUILD SUCCESSFUL (total time: 29s)
    Loading code from C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X/dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.hex...
    Loading symbols from C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X/dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.elf...
    Loading completed


    "C:\Program Files (x86)\Microchip\xc32\v1.22\bin"\\xc32-bin2hex dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.elf
    make[2]: Leaving directory `C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X'
    make[1]: Leaving directory `C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X'
    BUILD SUCCESSFUL (total time: 2m 46s)
    Loading code from C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X/dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.hex...
    Loading symbols from C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X/dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.elf...
    Loading completed

     
    Attachments are not available: Download requirements not met
      edit to add conf file

    <xclm>
     <xclm:Activation xclm:url="http://keygen.microchip.com" />
     <xclm:Demo xclm:url="http://www.microchip.com/xcdemo/handler.aspx" />
    <xclm:LicenseDirectory xclm:path="C:\ProgramData\Microchip\xclm\license"/>
    </xclm>

     
    post edited by JANickerson - 2013/11/02 16:38:03

    Attachment(s)

    Attachments are not available: Download requirements not met
    #8
    JasonK
    Moderator
    • Total Posts : 3389
    • Reward points : 0
    • Joined: 2003/11/14 09:49:40
    • Location: Microchip Technology in Arizona, USA
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/02 17:22:09 (permalink)
    0
    Ok thanks for posting that. Probably the forum software is rejecting the XML in your post. Maybe it didn't affect me because my account has admin privileges.
     
    It doesn't look like your conf files are configured to look for a license server, so I'm not sure what is happening. I'll have to talk to someone about it next week at the office.
    In the meantime, one way around it may be to copy the xclm binary from v1.21 into the v1.22 install to see if that helps with the compile time.

    Jason Kajita
     Follow me on Twitter
    http://support.microchip.com for urgent questions
    #9
    jtemples
    عُضْوٌ جَدِيد
    • Total Posts : 11567
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/02 17:24:35 (permalink)
    +2 (2)
    You can't quote Jason's post because it has the letters "etc" in between a pair of forward slashes.
    #10
    JasonK
    Moderator
    • Total Posts : 3389
    • Reward points : 0
    • Joined: 2003/11/14 09:49:40
    • Location: Microchip Technology in Arizona, USA
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/02 17:33:42 (permalink)
    0
    Ah, nice catch. 

    Jason Kajita
     Follow me on Twitter
    http://support.microchip.com for urgent questions
    #11
    mzoran
    Super Member
    • Total Posts : 683
    • Reward points : 0
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/02 17:41:38 (permalink)
    0
    I was able to confirm that copying xclm from an older version fixes the slow down on both xc16(v1.20) and xc32(v1.22).
     
    That's a bit easier then constantly disabling networking.   Thanks for the workaround.  
    #12
    M@rcel
    Senior Member
    • Total Posts : 53
    • Reward points : 0
    • Joined: 2004/05/03 11:53:07
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/04 09:25:37 (permalink)
    0
    mzoran

    I was able to confirm that copying xclm from an older version fixes the slow down on both xc16(v1.20) and xc32(v1.22).

    That's a bit easier then constantly disabling networking.   Thanks for the workaround.  
    Yup, me too. For XC32.

    #13
    Jim Nickerson
    User 452
    • Total Posts : 6463
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/04 09:43:50 (permalink)
    +1 (1)
    Jason,
    Thanks, it is a big improvement, 1.22 says it is now one second faster.

    "C:\Program Files (x86)\Microchip\xc32\v1.21\bin"\\xc32-bin2hex dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.elf
    make[2]: Leaving directory `C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X'
    make[1]: Leaving directory `C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X'
    BUILD SUCCESSFUL (total time: 24s)
    Loading code from C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X/dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.hex...
    Loading symbols from C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X/dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.elf...
    Loading completed

    .

    "C:\Program Files (x86)\Microchip\xc32\v1.22\bin"\\xc32-bin2hex dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.elf
    make[2]: Leaving directory `C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X'
    make[1]: Leaving directory `C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X'
    BUILD SUCCESSFUL (total time: 23s)
    Loading code from C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X/dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.hex...
    Loading symbols from C:/Users/Jim.Nickerson/Documents/microchip_solutions_v2013-06-15/TCPIP/Demo App/MPLAB.X/dist/XC32-PIC32_ETH_SK_ETH795/production/MPLAB.X.production.elf...
    Loading completed

     
    #14
    rshuston
    Starting Member
    • Total Posts : 13
    • Reward points : 0
    • Joined: 2012/07/27 09:28:23
    • Location: 0
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/05 15:36:58 (permalink)
    +2 (2)
    It appears that XC32 v1.22 now queries out over the internet EVERY TIME the compiler runs! If I disable Wi-Fi on my MacBook Pro (which takes me off the network), then things speed along as normal. However, when I'm online, things slow down to a crawl.
     
    What are you guys doing? This is reason #101 of why license servers are horrible inventions and only serve to punish the legitimate user. I'll definitely be switching back to v1.21 and not be advising anyone to upgrade. Very frustrated right now!
    #15
    Jim Nickerson
    User 452
    • Total Posts : 6463
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/05 15:46:56 (permalink)
    0
    JasonK
    In the meantime, one way around it may be to copy the xclm binary from v1.21 into the v1.22 install to see if that helps with the compile time.

    I wonder did you try Jason's work around ?
    #16
    JasonK
    Moderator
    • Total Posts : 3389
    • Reward points : 0
    • Joined: 2003/11/14 09:49:40
    • Location: Microchip Technology in Arizona, USA
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/05 15:51:53 (permalink)
    +2 (2)
    OK, we think we've determined the cause. The slowdown and network access can occur when the path to the license directory listed in etc/xclm.conf does not exist at all (e.g. /opt/microchip/xclm/license/ on Linux). Simply creating this empty directory should prevent the network access.

    Jason Kajita
     Follow me on Twitter
    http://support.microchip.com for urgent questions
    #17
    Jim Nickerson
    User 452
    • Total Posts : 6463
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/05 16:17:17 (permalink)
    +1 (1)
    Jason,
    On my Windows 8 box the dir listed in xclm.conf exists and has the license files yet the xclm binary from 1.22 is slow.
     
    #18
    rshuston
    Starting Member
    • Total Posts : 13
    • Reward points : 0
    • Joined: 2012/07/27 09:28:23
    • Location: 0
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/05 17:07:29 (permalink)
    0
    I have a similar set up on my Mac OS X machine. The "/Library/Application Support/Microchip/xclm/license" directory exists and contains my previous license files that have been installed over the past few years.
    For what it's worth, my XC32 v1.22 installer did not ask for any license key; it simply told me to click "Next" if I had a valid license or wanted it in free mode (same button for both options!?). And, when I try to use it with -O3 optimization, it complains that the compiler is in free mode. So I suspect the installer doesn't do something right regarding the licensing setup.
    #19
    jrmymllr
    Senior Member
    • Total Posts : 165
    • Reward points : 0
    • Joined: 2011/06/11 06:05:25
    • Location: MPLS
    • Status: offline
    Re:Very Long Compiling Times(XC32 v1.22 and XC16 v1.20) 2013/11/06 05:21:13 (permalink)
    +1 (1)
    JasonK

    OK, we think we've determined the cause. The slowdown and network access can occur when the path to the license directory listed in etc/xclm.conf does not exist at all (e.g. /opt/microchip/xclm/license/ on Linux). Simply creating this empty directory should prevent the network access.

     
    Not the case here.  Windows 7 64 bit and I have that directory, C:\ProgramData\Microchip\xclm\license.  It contains two files, xcdemo1.lic and xcdemo2.lic.  A build that used to take about 10 sec is now taking about 60.  I've looked at the CPU utilization and it's idle most of the time, and xc32-gcc.exe isn't even registering as consuming any CPU time despite how long it takes. 
    #20
    Page: 123 > Showing page 1 of 3
    Jump to:
    © 2020 APG vNext Commercial Version 4.5