求助6678新建的OpenMP编译不过 - TMS320C6678 - 嵌入式开发者社区 - 51ele.net
设为首页收藏本站

嵌入式开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 4128|回复: 3

[未解决] 求助6678新建的OpenMP编译不过

[复制链接]

9

主题

24

帖子

8万

积分

金牌会员

Rank: 6Rank: 6

积分
82453
发表于 2017-9-13 10:06:02 | 显示全部楼层 |阅读模式
新建小端模式,ELF输出,TMS320C6678,RTSC工程:

选Target是ti.targets.elf.C66,Platform是ti.runtime.openmp.platforms.evm6678,Build-profile是release.XDC版本3.50.2.20

复制高亮的两个文件到工程:

启用了OpenMP模型.

启用了--priority

出现错误:
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.


不知道怎么解决,求助.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

0

主题

44

帖子

1198

积分

创龙

Rank: 8Rank: 8

积分
1198
发表于 2017-9-13 16:38:52 | 显示全部楼层
请问,你用的是创龙的6678板子么?是的话可以按照6678例程中安装对应版本的控件,然后借鉴例程“OpenMP_Hello”,对比例程与你新建的例程代码和配置的差异。
回复 支持 反对

使用道具 举报

9

主题

24

帖子

8万

积分

金牌会员

Rank: 6Rank: 6

积分
82453
 楼主| 发表于 2017-9-14 09:10:17 | 显示全部楼层
Tr-M 发表于 2017-9-13 16:38
请问,你用的是创龙的6678板子么?是的话可以按照6678例程中安装对应版本的控件,然后借鉴例程“OpenMP_Hel ...

我有创龙AM5728,但是没6678,5728下有相应例子吗?因为我手上还有别的6678板子.
回复 支持 反对

使用道具 举报

3

主题

852

帖子

3538

积分

创龙

Rank: 8Rank: 8

积分
3538
发表于 2017-9-15 12:00:12 | 显示全部楼层
AM5728有OpenMP的例程

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|嵌入式开发者社区 ( 粤ICP备15055271号

GMT+8, 2024-3-28 18:12 , Processed in 0.045187 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2015 Comsenz Inc.

快速回复 返回顶部 返回列表