I am trying to compile one of the example projects from Starterware and a compilation error pops up regarding an error in mklib. The compilation log is given below:
"C:\\ti\\ccsv6\\utils\\bin\\gmake" all
'Building file: ../main.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/bin/armcl" -mv7A8 --code_state=32 --abi=eabi -me --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/include" --include_path="C:/ti/AM335X_StarterWare_02_00_01_01/include" --include_path="C:/ti/AM335X_StarterWare_02_00_01_01/include/hw" --include_path="C:/ti/AM335X_StarterWare_02_00_01_01/include/armv7a" --include_path="C:/ti/AM335X_StarterWare_02_00_01_01/include/armv7a/am335x" -g --define=am3358 --diag_wrap=off --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
'Finished building: ../main.c'
' '
'Building file: ../tdb_gpio.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/bin/armcl" -mv7A8 --code_state=32 --abi=eabi -me --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/include" --include_path="C:/ti/AM335X_StarterWare_02_00_01_01/include" --include_path="C:/ti/AM335X_StarterWare_02_00_01_01/include/hw" --include_path="C:/ti/AM335X_StarterWare_02_00_01_01/include/armv7a" --include_path="C:/ti/AM335X_StarterWare_02_00_01_01/include/armv7a/am335x" -g --define=am3358 --diag_wrap=off --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="tdb_gpio.pp" "../tdb_gpio.c"
'Finished building: ../tdb_gpio.c'
' '
'Building target: gpio_test.out'
'Invoking: ARM Linker'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/bin/armcl" -mv7A8 --code_state=32 --abi=eabi -me -g --define=am3358 --diag_wrap=off --display_error_number --diag_warning=225 -z -m"gpio_test.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/include" --reread_libs --define=A8_CORE=1 --display_error_number --diag_wrap=off --warn_sections --xml_link_info="gpio_test_linkInfo.xml" --rom_model -o "gpio_test.out" "./main.obj" "./tdb_gpio.obj" "../gpio_test.cmd" -l"C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\drivers\Debug\drivers.lib" -l"C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\system_config\Debug\system.lib" -l"C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\utils\Debug\utils.lib" -l"libc.a"
<Linking>
warning #10366-D: automatic library build: using library "C:\ti\ccsv6\tools\compiler\ti-cgt-arm_5.2.7\lib\rtsv7A8_A_le_n_eabi.lib" for the first time, so it must be built. This may take a few minutes.
'[' is not recognized as an internal or external command,
operable program or batch file.
'[' is not recognized as an internal or external command,
operable program or batch file.
process_begin: CreateProcess(NULL, armcl array_del.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false --neon -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~2.7/lib/src -fr c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj -fs c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj -ft c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj, ...) failed.
process_begin: CreateProcess(NULL, armcl array_new.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false --neon -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~2.7/lib/src -fr c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj -fs c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj -ft c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj, ...) failed.
process_begin: CreateProcess(NULL, armcl array_nodel.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false --neon -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~2.7/lib/src -fr c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj -fs c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj -ft c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj, ...) failed.
process_begin: CreateProcess(NULL, armcl array_nonew.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false --neon -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~2.7/lib/src -fr c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj -fs c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj -ft c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj, ...) failed.
make (e=2): The system cannot find the file specified.
gmake.exe[1]: *** [c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj/array_del.obj] Error 2
gmake.exe[1]: *** Waiting for unfinished jobs....
make (e=2): The system cannot find the file specified.
gmake.exe[1]: *** [c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj/array_new.obj] Error 2
make (e=2): The system cannot find the file specified.
gmake.exe[1]: *** [c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj/array_nodel.obj] Error 2
make (e=2): The system cannot find the file specified.
gmake.exe[1]: *** [c:/users/neeraj~1/appdata/local/temp/ti9505~1/obj/array_nonew.obj] Error 2
>> ERROR: mklib: gmake error during rtsv7A8_A_le_n_eabi.lib build
warning #10207-D: automatic RTS selection: resolving index library "libc.a" to "rtsv7A8_A_le_n_eabi.lib", but "rtsv7A8_A_le_n_eabi.lib" was not found
warning #10247-D: creating output section ".cinit" without a SECTIONS specification
undefined first referenced
symbol in file
--------- ----------------
__STACK_END C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\system_config\Debug\system.lib<init.obj>
__TI_auto_init C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\system_config\Debug\system.lib<init.obj>
__TI_zero_init
printf ./main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "gpio_test.out" not built
>> Compilation failure
gmake: *** [gpio_test.out] Error 1
**** Build Finished ****
I noticed a similar error in another post. But, It had to do something with conflicting versions of Cygwin which I don't have. I installed CCS on another computer with Windows 7 (The computer that gave the error has Windows 10) and it worked fine. I also tried to independently generate the run-time library using command prompt and mklib. That showed the same error as the one on this compilation log. I suspect that there are compatibility issues with Windows 10.
Please weigh in on this. Thanks.