嵌入式开发者社区

标题: 求助6678新建的OpenMP编译不过 [打印本页]

作者: cl17726    时间: 2017-9-13 10:06
标题: 求助6678新建的OpenMP编译不过
新建小端模式,ELF输出,TMS320C6678,RTSC工程:
[attach]2784[/attach]
选Target是ti.targets.elf.C66,Platform是ti.runtime.openmp.platforms.evm6678,Build-profile是release.XDC版本3.50.2.20
[attach]2785[/attach]
复制高亮的两个文件到工程:
[attach]2786[/attach]
启用了OpenMP模型.
[attach]2787[/attach]
启用了--priority
[attach]2788[/attach]
出现错误:
error: xdc.cfg.Program: "C:/ti/xdctools_3_50_02_20_core/packages/xdc/cfg/Program.xs", line 71: xdc.cfg.Program : The package 'ti.sysbios.family.c64p' is not compatible with XDCtools used in this build. Please either use XDCtools compatible with that package, or update the product containing that package, or rebuild the package with XDCtools 3.50 or later.
js: "C:/ti/xdctools_3_50_02_20_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/omp_config_pe66.xdl] Error 1
js: "C:/ti/xdctools_3_50_02_20_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-1916027617-inproc] Error 1
gmake: *** [build-1916027617] Error 2
gmake[1]: Leaving directory 'C:/Users/TaterLi/workspace_v7/OpenMP_Hello/Debug'
subdir_rules.mk:16: recipe for target 'build-1916027617' failed
gmake: Target 'all' not remade because of errors.


同样方法再次新建工程,只区别于XDC版本是3.32.2.25和3.32.1.22,均不能通过.但错误都是:

>> Compilation failure
subdir_rules.mk:9: recipe for target 'hello.obj' failed
"../hello.c", line 13: fatal error #1965: cannot open source file "omp.h"
1 catastrophic error detected in the compilation of "../hello.c".
Compilation terminated.
gmake: *** [hello.obj] Error 1
gmake: Target 'all' not remade because of errors.


不知道怎么解决,求助.

作者: Tr-M    时间: 2017-9-13 16:38
请问,你用的是创龙的6678板子么?是的话可以按照6678例程中安装对应版本的控件,然后借鉴例程“OpenMP_Hello”,对比例程与你新建的例程代码和配置的差异。
作者: cl17726    时间: 2017-9-14 09:10
Tr-M 发表于 2017-9-13 16:38
请问,你用的是创龙的6678板子么?是的话可以按照6678例程中安装对应版本的控件,然后借鉴例程“OpenMP_Hel ...

我有创龙AM5728,但是没6678,5728下有相应例子吗?因为我手上还有别的6678板子.
作者: human    时间: 2017-9-15 12:00
AM5728有OpenMP的例程[attach]2793[/attach]





欢迎光临 嵌入式开发者社区 (https://51ele.net/) Powered by Discuz! X3.4