Other Parts Discussed in Thread: SYSBIOS,
Tool/software: Code Composer Studio
Tools:
- CCS 7.4
- XDCTOOLS 3.50.4 & 3.50.3
- SYSBIOS 6.52
- GCC 6.3.1
Build Target: AM5728 Cortex-A15
Problem Details:
Usually we can see that in a newly created SYSBIOS project properties, the GNU Linker always link libc because it's written inside "Project Properties -> CCS Build -> GNU Linker -> Libraries".
But after I change the XDCTOOLS version inside "Project Properties -> CCS General -> Products" tab (in my case, changing from 3.50.4 to 3.50.3), the libc is gone somehow from GNU Linker's Libraries settings.
And as an result, the project building process will be stopped at linking stage, by throwing out the following errors(I did some simplification):
newlib/libc/reent/signalr.c:61: undefined reference to '_kill'.
newlib/libc/reent/signalr.c:97: undefined reference to '_getpid'.
newlib/libc/reent/fstatr.c:62: undefined reference to '_fstat'.
newlib/libc/reent/isattyr:58: undefined reference to '_isatty'.
newlib/libc/reent/lseekr.c:58: undefined reference to '_lseek'.
newlib/libc/reent/readr.c:58: undefined reference to '_read'.
If I manually add 'libc' into linker's libraries setting, linking process will be fine.
I think this problem may be a bug of some project file re-configurer or generator for CCS.