I'm having trouble with the "xdc all" command in the RTSC tutorial on the eclipse website. It looks like a pretty simple example but the command fails and I'm not particularly sure why as all the other previous examples in lessons 1-4 have built fine. This is the webpage with the lesson in:
http://rtsc.eclipse.org/docs-tip/RTSC_Module_Primer/Lesson_5#cl-2:1
Here is the output:
ralphc@home:~/ezsdk/rtsc_tutorial/lesson5$ xdc all
making package.mak (because of package.bld) ...
generating interfaces for package lesson5 (because package/package.xdc.inc is older than package.xdc) ...
configuring prog.x64P from package/cfg/prog_x64P.cfg ...
cl64P prog.c ...
cl64P package/cfg/prog_x64P.c ...
lnk64P prog.x64P ...
configuring prog.x86U from package/cfg/prog_x86U.cfg ...
cl86U prog.c ...
cl86U package/cfg/prog_x86U.c ...
package/cfg/prog_x86U.c: In function âxdc_runtime_System_printfExtend__Iâ:
package/cfg/prog_x86U.c:724: error: invalid initializer
package/cfg/prog_x86U.c:804: error: incompatible types when assigning to type âVaListâ from type âstruct __va_list_tag *â
package/cfg/prog_x86U.c:810: error: incompatible types when assigning to type âva_listâ from type âstruct __va_list_tag *â
package/cfg/prog_x86U.c:842: error: incompatible types when assigning to type âVaListâ from type âstruct __va_list_tag *â
gmake: *** [package/cfg/prog_x86U.o86U] Error 1
Here is my config.bld (on Linux):
/*
* ======== config.bld ========
*/
var Build = xdc.useModule('xdc.bld.BuildEnvironment');
var C64P = xdc.useModule('ti.targets.C64P');
//var GCC = xdc.useModule('gnu.targets.Mingw');
var GCC = xdc.useModule('gnu.targets.Linux86');
/* modify to match %c6xtools% */
//C64P.rootDir = "C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000";
C64P.rootDir = "/home/ralphc/ezsdk/ti-ezsdk_dm816x-evm_5_01_01_80/cgt6x_7_2_2";
//C64P.ccOpts.prefix = "--no_compress";
C64P.platform = 'ti.platforms.sim64Pxx';
/* modify to match %gcctools% */
//GCC.rootDir = "c:/rtsc/MinGW";
GCC.rootDir = "/usr/"
GCC.ccOpts.prefix = "-O2";
Build.targets = [C64P, GCC];
Please can someone help?
Thanks,
Ralph