UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
1,613 次查看
注册日期: ‎06-07-2018

xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答

Description Resource Path Location Type
inlining failed in call to always_inline 'vadd_f32': target specific option mismatch test line 532, external location: e:\xilinx\sdk\2017.4\gnu\aarch32\nt\gcc-arm-none-eabi\lib\gcc\arm-none-eabi\6.2.1\include\arm_neon.h C/C++ Problem

0 项奖励
1 个已接受解答

已接受的解答
Moderator
Moderator
1,606 次查看
注册日期: ‎05-23-2018

回复: xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答

Hi, @liuxiaowa271739

报错信息中提示的错误处代码是什么样的?有关于neon的编译选项是怎么设置的?

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
11 条回复11
Moderator
Moderator
1,607 次查看
注册日期: ‎05-23-2018

回复: xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答

Hi, @liuxiaowa271739

报错信息中提示的错误处代码是什么样的?有关于neon的编译选项是怎么设置的?

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
1,592 次查看
注册日期: ‎06-07-2018

回复: xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答
你好!用的sdk 自带的LWIP echo server 裸机 例子,编译选项 -mvectorize-with-neon-quad -mcpu=cortex-a9 -ftree-vectorize -mfpu=neon -mfpu=vfpv3 -mfloat-abi=hard -nostartfiles -Wall -Wextra
报错处代码:
ne10_result_t ne10_addc_float_neon (ne10_float32_t * dst, ne10_float32_t * src, const ne10_float32_t cst, ne10_uint32_t count)
{
NE10_DstSrcCst_DO_COUNT_TIMES_FLOAT_NEON
(
n_dst = vaddq_f32 (n_src, n_cst);
,
n_rest = vadd_f32 (n_rest, n_rest_cst);
);
}
下面是报错信息:
e:\xilinx\sdk\2017.4\gnu\aarch32\nt\gcc-arm-none-eabi\lib\gcc\arm-none-eabi\6.2.1\include\arm_neon.h:9530:1: error: inlining failed in call to always_inline 'vst1q_f32': target specific option mismatch
vst1q_f32 (float32_t * __a, float32x4_t __b)
^~~~~~~~~
In file included from E:\lwh\Axi_Hp\project_1817channel_radio.sdk\test\NE10\common/macros.h:32:0,
from ../NE10/modules/math/NE10_addc.neon.c:36:
E:\lwh\Axi_Hp\project_1817channel_radio.sdk\test\NE10\common/factor.h:123:6: note: called from here
vst1q_f32 ( (float32_t*)dst , n_dst ); /* store the results back */ \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:\lwh\Axi_Hp\project_1817channel_radio.sdk\test\NE10\common/factor.h:145:6: note: in definition of macro 'NE10_DstSrcCst_OPERATION_FLOAT_NEON'
loopCode1; \
^~~~~~~~~
E:\lwh\Axi_Hp\project_1817channel_radio.sdk\test\NE10\common/macros.h:48:9: note: in expansion of macro 'NE10_DstSrcCst_MAINLOOP_FLOAT_NEON'
NE10_DstSrcCst_MAINLOOP_FLOAT_NEON(loopCode1); , \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../NE10/modules/math/NE10_addc.neon.c:41:5: note: in expansion of macro 'NE10_DstSrcCst_DO_COUNT_TIMES_FLOAT_NEON'
NE10_DstSrcCst_DO_COUNT_TIMES_FLOAT_NEON


标记 (1)
0 项奖励
1,576 次查看
注册日期: ‎06-07-2018

xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答
xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?
你好!用的sdk 自带的LWIP echo server 裸机 例子,编译选项 -mvectorize-with-neon-quad -mcpu=cortex-a9 -ftree-vectorize -mfpu=neon -mfpu=vfpv3 -mfloat-abi=hard -nostartfiles -Wall -Wextra
报错处代码:
ne10_result_t ne10_addc_float_neon (ne10_float32_t * dst, ne10_float32_t * src, const ne10_float32_t cst, ne10_uint32_t count)
{
NE10_DstSrcCst_DO_COUNT_TIMES_FLOAT_NEON
(
n_dst = vaddq_f32 (n_src, n_cst);
,
n_rest = vadd_f32 (n_rest, n_rest_cst);
);
}
下面是报错信息:hg.jpgerrors
e:\xilinx\sdk\2017.4\gnu\aarch32\nt\gcc-arm-none-eabi\lib\gcc\arm-none-eabi\6.2.1\include\arm_neon.h:9530:1: error: inlining failed in call to always_inline 'vst1q_f32': target specific option mismatch
vst1q_f32 (float32_t * __a, float32x4_t __b)
^~~~~~~~~
In file included from E:\lwh\Axi_Hp\project_1817channel_radio.sdk\test\NE10\common/macros.h:32:0,
from ../NE10/modules/math/NE10_addc.neon.c:36:
E:\lwh\Axi_Hp\project_1817channel_radio.sdk\test\NE10\common/factor.h:123:6: note: called from here
vst1q_f32 ( (float32_t*)dst , n_dst ); /* store the results back */ \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E:\lwh\Axi_Hp\project_1817channel_radio.sdk\test\NE10\common/factor.h:145:6: note: in definition of macro 'NE10_DstSrcCst_OPERATION_FLOAT_NEON'
loopCode1; \
^~~~~~~~~
E:\lwh\Axi_Hp\project_1817channel_radio.sdk\test\NE10\common/macros.h:48:9: note: in expansion of macro 'NE10_DstSrcCst_MAINLOOP_FLOAT_NEON'
NE10_DstSrcCst_MAINLOOP_FLOAT_NEON(loopCode1); , \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../NE10/modules/math/NE10_addc.neon.c:41:5: note: in expansion of macro 'NE10_DstSrcCst_DO_COUNT_TIMES_FLOAT_NEON'
NE10_DstSrcCst_DO_COUNT_TIMES_FLOAT_NEON
0 项奖励
Moderator
Moderator
1,542 次查看
注册日期: ‎05-23-2018

回复: xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答

Hi, @liuxiaowa271739

从报错信息看来是数据类型不匹配导致的,你的vst1q_f32 ( (float32_t*)dst , n_dst ); 中的n_dst是怎么定义的?

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 项奖励
1,519 次查看
注册日期: ‎06-07-2018

回复: xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答

这是SDK自带的库文件截图,里面定义了,如下:
dsd.jpg

0 项奖励
Moderator
Moderator
1,494 次查看
注册日期: ‎05-23-2018

回复: xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答

Hi, @liuxiaowa271739

我指的是E:\lwh\Axi_Hp\project_1817channel_radio.sdk\test\NE10\common/factor.h中的第123行处代码vst1q_f32 ( (float32_t*)dst , n_dst );。报错信息显示该处函数的实参类型与库文件中的不匹配。你的相关代码是什么样的?另外,E:\lwh\Axi_Hp\project_1817channel_radio.sdk\test\NE10\common/factor.h:145:6处的宏定义也有报错,可以把这些代码贴出来吗?

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
0 项奖励
1,459 次查看
注册日期: ‎06-07-2018

回复: xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答

这个是NE10的库文件  见附件   E:\lwh\Axi_Hp\project_1817channel_radio.sdk\test\NE10\common/factor.h  erA.jpg

0 项奖励
Moderator
Moderator
1,451 次查看
注册日期: ‎05-23-2018

回复: xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答

Hi, @liuxiaowa271739

感觉是宏定义在调用的过程的顺序上存在问题,方便把所有代码打包发送上来吗?另外,您也可以自己检查一下代码,保证NE10_DstSrcCst_MAINLOOP_FLOAT_NEON这个宏在被调用时,n_dst已经被定义为float32*4_t的类型。

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------------------------------------
1,390 次查看
注册日期: ‎06-07-2018

回复: xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答

附件是原工程   环境 vivado 2017.4 SDK .hui.jpgsde.jpg

0 项奖励
1,294 次查看
注册日期: ‎06-07-2018

回复: xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答

xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

0 项奖励
Newbie qianxun
Newbie
654 次查看
注册日期: ‎05-13-2019

回复: xilinx sdk(2017.4版)编译NE10 报错 不知怎么解决?

转到解答

你好,请问你问题解决了吗?能分享一下怎么用SDK编译NE10吗?万分感谢。。。

0 项奖励