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 基准测试示例

Guru**** 2847400 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1027296/tms320f28075-sys-bios-benchmark-example

器件型号:TMS320F28075
Thread 中讨论的其他器件:SYSBIOS

版本:

  XDCtools - 3.61.2.27

  SYS/BIOS - 6.83.0.18

  编译器- 20.12.0.STS

  CCS - 10.4.0.00006

当我尝试构建基准测试示例时、它无法编译。

我查看这个示例是因为我想在另一个项目中使用 pthread。 当我尝试在另一个项目的 pthread 中进行链接时、我会遇到类似的构建错误。

**** 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 ****

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我在构建该项目时看到的问题相同。 我发现、如果我刚才在 ti/posix/Ccs/time.h 中注释掉了这些 timespec / itimerspec 类型的声明、似乎消除了构建错误。 它可能与 codegen 工具包含文件中同名类型的声明冲突、尽管我没有它们被#included 的位置。

    惠特尼