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.

TMS320F28075: SYS/BIOS benchmark example

Part Number: TMS320F28075
Other Parts Discussed in Thread: SYSBIOS

Versions:

   XDCtools - 3.61.2.27

   SYS/BIOS - 6.83.0.18

   Compiler - 20.12.0.STS

   CCS - 10.4.0.00006

When I attempt to build the benchmark example, it fails to compile.

I was looking at this example because I would like to use pthreads in another project. When I attempt to link in the pthreads in the other project, I am getting similar build errors.

**** Clean-only build of configuration Debug for project benchmark ****

"C:\\ti\\ccs1040\\ccs\\utils\\bin\\gmake" -k -j 12 clean -O 
 
cleaning ../src/sysbios ...
DEL /F  "benchmark.hex"  "configPkg\linker.cmd" "configPkg\compiler.opt"  "benchmark.out" 
DEL /F "benchloop.obj" 
DEL /F "benchloop.d" 
RMDIR /S/Q  "configPkg\" 
Could Not Find C:\Work\Test\workspace\benchmark\Debug\benchmark.hex
Could Not Find C:\Work\Test\workspace\benchmark\Debug\benchmark.out
Could Not Find C:\Work\Test\workspace\benchmark\Debug\benchloop.obj
Could Not Find C:\Work\Test\workspace\benchmark\Debug\benchloop.d
Finished clean
 

**** Build Finished ****

**** Build of configuration Debug for project benchmark ****

"C:\\ti\\ccs1040\\ccs\\utils\\bin\\gmake" -k -j 12 all -O 
 
Building file: "../benchloop.cfg"
Invoking: XDCtools
"C:/ti/ccs1040/xdctools_3_61_02_27_core_win32/xdctools_3_61_02_27_core/xs" --xdcpath="C:/ti/bios_6_83_00_18/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C28_float -p ti.platforms.tms320x28:TMS320F28075 -r release -c "C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-c2000_20.12.0.STS" --compileOptions "-g" "../benchloop.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring benchloop.xe28FP from package/cfg/benchloop_pe28FP.cfg ...
-v28 -DLARGE_MODEL=1 -ml --float_support=fpu32 --diag_suppress=3195 --abi=eabi -q -mo  --program_level_compile -o3 
generating custom ti.sysbios library makefile ... 
Starting build of library sources ...
making C:/Work/Test/workspace/benchmark/src/sysbios/sysbios.ae28FP ...
cle28FP C:/ti/bios_6_83_00_18/packages/ti/sysbios/BIOS.c ...
 
>> Compilation failure
Build of libraries failed.
subdir_rules.mk:19: recipe for target 'build-616432575-inproc' failed
"C:/ti/bios_6_83_00_18/packages/ti/posix/ccs/time.h", line 103: error: "timespec" has already been declared in the current scope
"C:/ti/bios_6_83_00_18/packages/ti/posix/ccs/time.h", line 108: error: "itimerspec" has already been declared in the current scope
2 errors detected in the compilation of "C:/ti/bios_6_83_00_18/packages/ti/posix/tirtos/clock.c".
gmake[1]: *** [makefile:61: BIOS.obj] Error 1
gmake: *** [C:/Work/Test/workspace/benchmark/src/makefile.libs:57: C:/Work/Test/workspace/benchmark/src/sysbios/sysbios.ae28FP] Error 2
error: xdc.cfg.SourceDir: "C:/ti/ccs1040/xdctools_3_61_02_27_core_win32/xdctools_3_61_02_27_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
 
js: "C:/ti/ccs1040/xdctools_3_61_02_27_core_win32/xdctools_3_61_02_27_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package.mak:206: package/cfg/benchloop_pe28FP.xdl] Error 1
gmake.exe: *** Deleting file 'package/cfg/benchloop_pe28FP.xdl'
gmake.exe: *** [package/cfg/benchloop_pe28FP.xdl] Deleting file 'package/cfg/benchloop_pe28FP.h'
gmake.exe: *** [package/cfg/benchloop_pe28FP.xdl] Deleting file 'package/cfg/benchloop_pe28FP.c'
js: "C:/ti/ccs1040/xdctools_3_61_02_27_core_win32/xdctools_3_61_02_27_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-616432575-inproc] Error 1
gmake: *** No rule to make target 'build-616432575', needed by 'configPkg/compiler.opt'.
gmake: *** No rule to make target 'build-616432575', needed by 'configPkg/linker.cmd'.
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • I'm seeing the same issue when I build this project. I found that if I just commented out the declarations of those timespec/itimerspec types in ti/posix/ccs/time.h it seemed to get rid of the build error. It might be conflicting with the declarations of the types of the same name in the codegen tools include files although I haven't where they're being #included.

    Whitney