This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ccsv5 upgrade lost CG_TOOL_CL

Other Parts Discussed in Thread: CCSTUDIO

I just ran an upgrade and I'm no longer able to compile anything.  Somehow, the name of the compiler, which I believe should be in CG_TOOL_CL, has been lost.  It's just a blank in the logs.  I haven't found the appropriate way to correct this.  Can anyone help?

  • Hi Jim,

    can you please explain in a bit more detail what you did and what  you mean/experience?

    - what and how did yo up preform the upgrade?

    - what do you mean can not compile?

    - did you have any antivirus turned off?

    - can you send the contents of your installjammer registry directory (under program files or program files (x86)

    - what OS?

    Best regards,

    Lisa

  • The upgrade was performed by first running Help-Check for updates, then asking for the updates to be performed, then restarting CCSV5.

    When I try to compile, I get outputs indicating that a blank is being used for the compiler command, e.g.

    **** Build of configuration AOLM_Debug for project MC4_BOOT_C5 ****

    C:\ti\ccsv5\utils\bin\gmake -k Ais.obj
    'Building file: ../Ais.c'
    'Invoking: C6000 Compiler'
    "" -mv6400 -g --define="_DEBUG" --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.3.5/include" --include_path="C:\CCStudio_v3.3\bios_5_33_06/packages/ti/bios/include" --display_error_number --diag_warning=225 --big_endian --abi=coffabi --preproc_with_compile --preproc_dependency="Ais.pp" "../Ais.c"
    '""' is not recognized as an internal or external command,
    operable program or batch file.
    gmake: *** [Ais.obj] Error 1

    **** Build Finished ****

    I didn't do anything to any antivirus software during this process.  

    I've located the installjammer directory, and within that directory, there are several subdirectories with todays date.  I'm not sure how to send these through this forum.  Should I just zip them and e-mail them?  If so, to whom?

    The OS is XP

    Thanks for your prompt help.

  • I'm having the same problem on a Windows 7 box. Updated from the Help menu on Friday June 1st, the CG_TOOL_CL macro seems to have been blanked,

    As a temporary workaround I've replaced "${CG_TOOL_CL}" with "${CG_TOOL_ROOT}/bin/cl6x" in Build->C6000 Compiler and Build->C6000 Linker under the Project properties. That's allowed me to keep building my projects.

  • Thank you for replying.  It's good to know that I'm not alone in having this problem.  I think your workaround is very good.  I was thinking about trying to define CG_TOOL_CL as an environment variable of the computer, but keeping things within the CCS5 context seems much better.

    For  me, this raises the general question of where these variables come from.  How can I learn all of their names for possible future use?  If one is missing, is there a safe way for me to define it myself?  Or will any intervention on my part inhibit future upgrades?

    At least I'll be able to get back to the work at hand on Monday, using your workaround.  Maybe we'll get a solution from TI...

  • Hi Jim, Vince,

    Could you please upload your <workspace>/.metadata/.log files?

    To see all the variables available during a project-build, open project Properties > Build > Variables page.  To see the built-in variables, check the "Show system variables" checkbox.  Let me know if the CG_TOOL_CL variable shows up for your project.

    Thanks,

    - Baltasar

  • Hi,

    I have exactly the same issue.  Just updated CCS and my project do not compile anymore.  I've also tried to create a new project (for a C6713 device) using the wizard and it giveq the same compliation error:

    **** Build of configuration Debug for project Test ****

    C:\Program Files\TI\ccsv5\utils\bin\gmake -k all
    'Building file: ../main.c'
    'Invoking: C6000 Compiler'
    "" -mv6700 -g --define=c6713 --include_path="C:/Program Files/TI/ccsv5/tools/compiler/c6000/include" --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
    '""' is not recognized as an internal or external command,
    operable program or batch file.
    gmake: *** [main.obj] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    So "" instead of the complete path to the compiler.

    The variable ${CG_TOOL_CL} can't be seen in the project property when the "Show system variables" checkbox is enabled.

    Any help would be appreiciated !

    Thanks,

    Renaud

  • Hi Renaud,

    Could you please send me your <workspace>/.metadata/.log file?

    Thanks,

    - Baltasar

  • Jim, Vince, Renaud,

    Could you also post the screenshots of the Properties > General page for your projects, and also the Preferences > CCS > Build > Compilers page.

    Thanks,

    - Baltasar

  • I'm stuck in meetings this morning.  I'll gather the data for you sometime this afternoon (PDT).

  • 6283.log.txt

    Here you are

    Best regards

    Renaud

  • Can you let me know what was your original version of CCS, before you've updated?

    Thanks,

    - Baltasar

  • I don't know the exact version that I was using, but I fetched it and installed it on 1/26/12.

  • I'm having problems getting the log file and screen shots into these messages.  I used the "Insert File" button for the log file and a simple Alt-PrtScr, CTRL-V for the screen shots.  I can't see that either made it into my message.  I've tried FireFox, Chrome and IE.  It must be something I'm doing wrong.   Any advice?

  • I've checked the system variables, and CG_TOOLS_CL is definitely missing.  I have also noticed that the CG_TOOLS_ROOT is indicating the c6000 compiler that I originally installed and not the 7.3.5 version that was added by the upgrade.  Am I supposed to maintain these system variables manually?  Is there some other way to select the compiler to use?

  • No, the user is not expected to manually maintain these variables.  They should automatically point to the location of the compiler selected by the user in the Properties > General page.  Something must have corrupted your installation of CCS, possibly during your recent update - your log file shows many issues with classloading.  I will try to reproduce your problem.  

    To unblock yourself, I would suggest that you uninstall your current CCS image, and install the full CCSv5.2.0.

    - Baltasar

  • For the uninstall:  I can see several uninstall*.exe files in the ccsv5 subdirectory.  Do I need to run them all?  Just uninstall_CCSv5.exe?  Something else?

  • Just run the "uninstall_CCSv5".  Then, if any directories are left over, just delete them through windows explorer.

    - Baltasar

  • Thank you.

    Will I be able to just run existing workspaces and projects, or will I need to make new projects?

  • You will definitely be able to import your existing projects into new workspaces with the newly installed CCS.  Reusing your old workspaces, however, is not guaranteed in general, but should work since you're only moving from CCSv5.1.0 to 5.2.0.

    - Baltasar

  • Hi,

    I'm coming back on Baltasar's question.  I was previously running CCS 5.1.xxx and then tried to updated to 5.2.0.00069.

    I don't know the minor revision number of my previous version but basically I regularly run the CCS "Check for Updates" in the help menu, so I suppose the 5.1.xxx was the latest in the 5.1 branch.

    I will try a "clean install" an keep you informed.

    It must be noted that the project I work on was imported from CCS3 in CCS4 and then CCS5.  But as I get the same problem with a new project created by the wizard, I guess it has nothing to do with that.

    Thanks to everybody

    Renaud

  • Hi again,

    I've completaly uninstalled CCS and deleted the workspace directory (even if this was probably not necessary).  Then reinstalled everything using the off-line installer.  Now, the projects compile properly.

    I've checked for updates and see that a new C6000 compiler 7.3.5 is available.  So the offline installer only include 7.3.4.

    Do you think I can safely install 7.3.5 from the web update or will it erases the CG_TOOL_CL variable again ?  I don't feel like ready to experiment, it takes far too much time to uninstall and reinstall everything...  some say: "never touch a running system"...

    Thanks

    Renaud

  • Hi Renaud,

    Yes, you can safely update the compilers.  At this point, CCS won't be updated (because you now have the latest version).  Only the compilers will be updated, and that cannot cause the problem you were seeing.  I will still try to reproduce that problem, on my end, to try and understand what happened.

    Thanks,

    - Baltasar

  • Baltasar,

    Indeed, no problem after the compiler update.  For me, the problem is solved.

    Thanks for your support !

    Renaud

  • Same problem here ....

    '""' is not recognized as an internal or external command,
    operable program or batch file"

    During the install I got the following errors:

    I suggest you take the update off line until you have fixed this bug (installed today 6/5/12)!

    How would you suggest we get back to work?

  • Hi All,

    We were able to reproduce this problem locally.  CCS install-image gets corrupted when CCSv5.1.x is updated through Help > Check for Updates.  

    We will be looking into addressing this.  The easiest workaround at this point is to install a fresh full CCSv5.2.0.  You can do that by uninstalling your existing bad CCS image (through ccsv5/uninstall_CCSv5.exe) and then install CCSv5.2.0 into the same directory.  Once you have a fresh CCSv5.2.0 installed, it *is* safe to install newer versions of compilers through Help > Check for Updates (as that only updates the compilers, and does not touch CCS itself).

    Sorry for this disruption...

    Thanks,

    - Baltasar

  • Can you provide a link to the download?

    ======================

    Never mind....found it (http://processors.wiki.ti.com/index.php/Download_CCS)

    1.2GB file! 1 hour download! Dude, are you familiar with the term "regression testing"....?