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!

取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Visitor yanjian
Visitor
324 次查看
注册日期: ‎11-28-2018

VIVADO HLS编译错误

Starting C simulation ...
C:/Xilinx/Vivado_HLS/2016.3/bin/vivado_hls.bat D:/xiilx/milianke/array_test/array_test/solution1/csim.tcl
INFO: [HLS 200-10] Running 'C:/Xilinx/Vivado_HLS/2016.3/bin/unwrapped/win64.o/vivado_hls.exe'
INFO: [HLS 200-10] For user 'Administrator' on host 'win-20170406dtz' (Windows NT_amd64 version 6.1) on Tue Dec 11 20:59:17 +0800 2018
INFO: [HLS 200-10] In directory 'D:/xiilx/milianke/array_test'
INFO: [HLS 200-10] Opening project 'D:/xiilx/milianke/array_test/array_test'.
INFO: [HLS 200-10] Opening solution 'D:/xiilx/milianke/array_test/array_test/solution1'.
INFO: [SYN 201-201] Setting up clock 'default' with a period of 10ns.
INFO: [HLS 200-10] Setting target device to 'xc7z014sclg400-1'
INFO: [SIM 211-2] *************** CSIM start ***************
WARNING: [SIM 211-51] HLS only supports CLANG compiler in Linux.
INFO: [SIM 211-4] CSIM will launch GCC as the compiler.
Compiling ../../../../testbench.cpp in debug mode
Compiling ../../../../thin.cpp in debug mode
Generating csim.exe
In file included from C:/Xilinx/Vivado_HLS/2016.3/include/floating_point_v7_0_bitacc_cmodel.h:143:0,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls_half.h:40,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls/utils/x_hls_utils.h:37,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls/hls_axi_io.h:40,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls_video.h:48,
from ../../../../thinn.h:3,
from ../../../../testbench.cpp:1:
C:/Xilinx/Vivado_HLS/2016.3/include/gmp.h:62:0: warning: "__GMP_LIBGMP_DLL" redefined [enabled by default]
C:/Xilinx/Vivado_HLS/2016.3/include/floating_point_v7_0_bitacc_cmodel.h:135:0: note: this is the location of the previous definition
In file included from C:/Xilinx/Vivado_HLS/2016.3/include/floating_point_v7_0_bitacc_cmodel.h:143:0,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls_half.h:40,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls/utils/x_hls_utils.h:37,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls/hls_axi_io.h:40,
from C:/Xilinx/Vivado_HLS/2016.3/include/hls_video.h:48,
from ../../../../thinn.h:3,
from ../../../../thin.cpp:2:
C:/Xilinx/Vivado_HLS/2016.3/include/gmp.h:62:0: warning: "__GMP_LIBGMP_DLL" redefined [enabled by default]
C:/Xilinx/Vivado_HLS/2016.3/include/floating_point_v7_0_bitacc_cmodel.h:135:0: note: this is the location of the previous definition
obj/thin.o:thin.cpp:(.data+0x20): multiple definition of `Rotate'
obj/testbench.o:testbench.cpp:(.data+0x20): first defined here
obj/thin.o:thin.cpp:(.data+0x68): multiple definition of `Transpose'
obj/testbench.o:testbench.cpp:(.data+0x68): first defined here
obj/thin.o:thin.cpp:(.data+0x80): multiple definition of `CamcameraMatrix'
obj/testbench.o:testbench.cpp:(.data+0x80): first defined here
collect2: ld returned 1 exit status
make: *** [csim.exe] Error 1
ERROR: [SIM 211-100] 'csim_design' failed: compilation error(s).
INFO: [SIM 211-3] *************** CSIM finish ***************
4
while executing
"source D:/xiilx/milianke/array_test/array_test/solution1/csim.tcl"
invoked from within
"hls::main D:/xiilx/milianke/array_test/array_test/solution1/csim.tcl"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$args"
(procedure "hls_proc" line 5)
invoked from within
"hls_proc $argv"
Finished C simulation.

不知道是什么错误???完全找不到原因? 谢谢!!!

0 项奖励
1 条回复1
Moderator
Moderator
277 次查看
注册日期: ‎05-27-2018

回复: VIVADO HLS编译错误

Hi @yanjian,

     根据你的报错提示,有变量重定义的错误,方便把您的文件贴出来吗?

obj/thin.o:thin.cpp:(.data+0x20): multiple definition of `Rotate'
obj/testbench.o:testbench.cpp:(.data+0x20): first defined here
obj/thin.o:thin.cpp:(.data+0x68): multiple definition of `Transpose'
obj/testbench.o:testbench.cpp:(.data+0x68): first defined here
obj/thin.o:thin.cpp:(.data+0x80): multiple definition of `CamcameraMatrix'
obj/testbench.o:testbench.cpp:(.data+0x80): first defined here
collect2: ld returned 1 exit status

 谢谢,

Wen

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