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.
Tool/software: Code Composer Studio
When building a TI-RTOS based CCS project it fails with the following error:
error: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
What is the reason for the error?
Please click This Resolved My Issue if the reply answers your question.
Explore Code Composer Studio documentation and resources using online Resource ExplorerTrack the status of a known bug in the External Bug Tracking System. Visit this FAQ to learn how to search for a bug.
A couple of different reasons could trigger this type of error.
1) Whitespaces or non-ASCII characters in paths referenced by the build tools
This was known to happen with older SYS/BIOS and TI-RTOS versions.
To avoid the error, make sure that all software packages are installed in paths without spaces, and workspace and project names also do not have spaces or non-ASCII characters.
2) Cygwin related errors
Take a look at the CCS build console for errors prior to the above diagnostic. If the errors are coming from the shell, the problem is likely related to Cygwin (which is supplied with CCS and XDCtools).
The types of shell errors that could occur are:
To avoid the error, try the solutions described in this CCS Build errors page: http://software-dl.ti.com/ccs/esd/documents/sdto_ccs_build-errors.html#rtsc-diagnostics
The Cygwin type of errors may also manifest during the automatic library build step. The same solutions described above should help in this situation as well.Please check this Mklib page for more information: http://processors.wiki.ti.com/index.php/Mklib#MKS_or_Cygwin_or_gmake_tools_in_your_path
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.