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.

CCS bundled TMS470 CGT fails building libc

it seems that CCS with TMS470 CGT 4.9.0 seems to succeed in rebuilding libc for "TI8" models but fails when used in version 4.9.1 - the library name that fails to build is "rtsv7A8_A_le_n_eabi.lib".

  • Hi,

    We found out one issue internally with the utility mklib and I reproduce the analysis and root cause below:

    discusssion said:

    After some investigation, we found out the command that issues the archiver (ar470.exe) was exceeding the limit of characters for a DOS command. This limit is set by default to 32767 chars according to the reference below, and by default Windows sets the TMP and TEMP environment variables to a long path inside the user area.

     

    http://blogs.msdn.com/b/oldnewthing/archive/2003/12/10/56028.aspx

     

    Therefore a solution was to redirect the temporary directory to a shorter path (C:\TEMP).

     

    Thus the invocation of the command (in my case) was:

     

    C:\TI\TMS470_CGT_491\lib>mklib --pattern=rtsv7A8_A_le_eabi.lib --index=libc.a --tmpdir=C:\TEMP

    Another solution is to change the system variables TMP and TEMP to a shorter path. This will not only repair the command-line but also from within CCS.

     

    This is a bug filed under number SDSCM00042061 and is still under investigation.

    Hope this helps,

    Rafael