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.

Troubles building the samples for DK-TM4C129X : gmake : error 3

Other Parts Discussed in Thread: TM4C129XNCZAD, SYSBIOS

I just received the DK-TM4C129X eval board and installed:

* CCSV5.5

* TIRTOS_1_20_00_28

* XDCTOOLS_3_25_04_88

using the TI resource explorer i did the suggested stepes 1,2.3 ... to import some of the provied samples und to build and execute them.

as a example: after importing "uartlogging_TivaTM4C129XNCZAD" and trying to build it i get the following errors:

**** Build of configuration Debug for project uartlogging_TivaTM4C129XNCZAD ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../uartlogging.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_25_04_88/xs" --xdcpath="C:/ti/tirtos_1_20_00_28/packages;C:/ti/tirtos_1_20_00_28/products/bios_6_37_00_20/packages;C:/ti/tirtos_1_20_00_28/products/ipc_3_10_01_11/packages;C:/ti/tirtos_1_20_00_28/products/ndk_2_23_00_00/packages;C:/ti/tirtos_1_20_00_28/products/uia_1_04_00_06/packages;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.tiva:TM4C129XNCZAD -r release -c "C:/ti/ccsv5/tools/compiler/arm_5.1.1" "../uartlogging.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring uartlogging.xem4f from package/cfg/uartlogging_pem4f.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making C:/project/dcds/texas/TI_RTOS_schb/uartlogging_TivaTM4C129XNCZAD/src/sysbios.aem4f ...
gmake[1]: Entering directory `C:/project/dcds/texas/TI_RTOS_schb/uartlogging_TivaTM4C129XNCZAD/src/sysbios'
clem4f C:/ti/tirtos_1_20_00_28/products/bios_6_37_00_20/packages/ti/sysbios/BIOS.c ...
asmem4f C:/ti/tirtos_1_20_00_28/products/bios_6_37_00_20/packages/ti/sysbios/family/arm/m3/Clobber_asm.sv7M ...
gmake[1]: *** [m3_Clobber_asm.obj] Error 3
gmake[1]: Leaving directory `C:/project/dcds/texas/TI_RTOS_schb/uartlogging_TivaTM4C129XNCZAD/src/sysbios'
gmake: *** [C:/project/dcds/texas/TI_RTOS_schb/uartlogging_TivaTM4C129XNCZAD/src/sysbios.aem4f] Error 2
Build of libraries failed.
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_25_04_88/packages/xdc/cfg/SourceDir.xs", line 184: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

js: "C:/ti/xdctools_3_25_04_88/packages/xdc/cfg/Main.xs", line 153: Error: Configuration failed!
gmake.exe: *** [package/cfg/uartlogging_pem4f.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/uartlogging_pem4f.xdl'
gmake.exe: *** [package/cfg/uartlogging_pem4f.xdl] Deleting file `package/cfg/uartlogging_pem4f.h'
gmake.exe: *** [package/cfg/uartlogging_pem4f.xdl] Deleting file `package/cfg/uartlogging_pem4f.c'
js: "C:/ti/xdctools_3_25_04_88/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake: *** [configPkg/linker.cmd] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

these arror messages read similar when i try to build some other sample.

it seems that the system fails to build C:/project/dcds/texas/TI_RTOS_schb/uartlogging_TivaTM4C129XNCZAD/src/sysbios.aem4f

when i move into that directory and issue "gmake" there manually it generates the first not already geenerated .obj file but writes an error message:

              gmake: *** [m3_IntrinsicsSupport_asm.obj] Error 3

when i call gmake again ut builds the next obajcet.

after manually building ALL of the obkects in the makefile finally the library "sysbios.aem4f" gets generated WITHOUT an error !

after tat, when it call "Build" again on this project it get the foloowing errors:

**** Build of configuration Debug for project uartlogging_TivaTM4C129XNCZAD ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../DK_TM4C129X.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="C:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="C:/ti/tirtos_1_20_00_28/products/TivaWare_C_Series-2.0b" -g --gcc --define=PART_TM4C129XNCZAD --define=ccs --define=TIVAWARE --diag_warning=225 --display_error_number --diag_wrap=off --gen_func_subsections=on --preproc_with_compile --preproc_dependency="DK_TM4C129X.pp" --cmd_file="./configPkg/compiler.opt"  "../DK_TM4C129X.c"
"C:/ti/xdctools_3_25_04_88/packages/xdc/cfg/global.h", line 39: fatal error #1965: cannot open source file "C:/project/dcds/texas/TI_RTOS_schb/uartlogging_TivaTM4C129XNCZAD/Debug/configPkg/package/cfg/uartlogging_pem4f.h"

>> Compilation failure
1 catastrophic error detected in the compilation of "../DK_TM4C129X.c".
Compilation terminated.
gmake: *** [DK_TM4C129X.obj] Error 1
'Building file: ../UARTUtils.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="C:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="C:/ti/tirtos_1_20_00_28/products/TivaWare_C_Series-2.0b" -g --gcc --define=PART_TM4C129XNCZAD --define=ccs --define=TIVAWARE --diag_warning=225 --display_error_number --diag_wrap=off --gen_func_subsections=on --preproc_with_compile --preproc_dependency="UARTUtils.pp" --cmd_file="./configPkg/compiler.opt"  "../UARTUtils.c"
'Finished building: ../UARTUtils.c'
' '
'Building file: ../uartlogging.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me --include_path="C:/ti/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="C:/ti/tirtos_1_20_00_28/products/TivaWare_C_Series-2.0b" -g --gcc --define=PART_TM4C129XNCZAD --define=ccs --define=TIVAWARE --diag_warning=225 --display_error_number --diag_wrap=off --gen_func_subsections=on --preproc_with_compile --preproc_dependency="uartlogging.pp" --cmd_file="./configPkg/compiler.opt"  "../uartlogging.c"
"C:/ti/xdctools_3_25_04_88/packages/xdc/cfg/global.h", line 39: fatal error #1965: cannot open source file "C:/project/dcds/texas/TI_RTOS_schb/uartlogging_TivaTM4C129XNCZAD/Debug/configPkg/package/cfg/uartlogging_pem4f.h"
1 catastrophic error detected in the compilation of "../uartlogging.c".
Compilation terminated.

>> Compilation failure
gmake: *** [uartlogging.obj] Error 1
'Building file: ../uartlogging.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_25_04_88/xs" --xdcpath="C:/ti/tirtos_1_20_00_28/packages;C:/ti/tirtos_1_20_00_28/products/bios_6_37_00_20/packages;C:/ti/tirtos_1_20_00_28/products/ipc_3_10_01_11/packages;C:/ti/tirtos_1_20_00_28/products/ndk_2_23_00_00/packages;C:/ti/tirtos_1_20_00_28/products/uia_1_04_00_06/packages;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.tiva:TM4C129XNCZAD -r release -c "C:/ti/ccsv5/tools/compiler/arm_5.1.1" "../uartlogging.cfg"
configuring uartlogging.xem4f from package/cfg/uartlogging_pem4f.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making C:/project/dcds/texas/TI_RTOS_schb/uartlogging_TivaTM4C129XNCZAD/src/sysbios.aem4f ...
gmake[1]: Entering directory `C:/project/dcds/texas/TI_RTOS_schb/uartlogging_TivaTM4C129XNCZAD/src/sysbios'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `C:/project/dcds/texas/TI_RTOS_schb/uartlogging_TivaTM4C129XNCZAD/src/sysbios'
Build of libraries done.
clem4f package/cfg/uartlogging_pem4f.c ...
'Finished building: ../uartlogging.cfg'
' '
gmake: Target `all' not remade because of errors.

**** Build Finished ****

when AFTER THAT it simle again start a "Build" : ta taa : the build worked and i finally get the results that is ready for debugging.

my questions:

* how can this be fixed that building / rebuilding works with one single request (i it should be) ?

* what is this ERROR 3 ?

* maybe the sequence of the build steps have somehow to get rearranged ??

thanks for advice !

kind regards

schb