HLS: vivado_hls compile fail, csim and csyn error, no ip generated for udpLoopback and toe

博客记录了使用Vivado和Vivado HLS 2015.4编译TCP/IP项目时遇到的问题,如运行脚本编译时部分csim或csyn失败、IP生成失败且无IP文件生成。推测是Vivado HLS 2015.4安装不当,还给出了日志片段。

project: https://github.com/Xilinx/HLx_Examples/tree/master/Acceleration/tcp_ip
tool version: vivado and vivado_hls is 2015.4
compile problems:
1.run make_tcp_ip.sh to compile but some csim or csyn for udpLoopback and toe is failed, detailed is showed in follow log fragments
2.ip gerneration for udpLoopback and toe fail, and no ip file generated at toe/toe_prj/solution1/impl/ip and udp/udpLoopback/udpLoopback_prj/solution1/impl/ip
solution:

both version 2018.3 and version 2015.4 are installed, it seems vivado_hls 2015.4 is not installed properly

TODO continued

fragments of log:

...

command 'ap_source' returned error code
    while executing
"source [lindex $::argv 1] "
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 { source [lindex $::argv 1] } "

@I [HLS-112] Total elapsed time: 430.382 seconds; peak memory usage: 420 MB.

...

================================================================
  Vivado(TM) HLS - High-Level Synthesis from C, C++ and===========
  Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
  Version 2015.4
  Build 1412921 on Wed Nov 18 09:58:55 AM 2015
  Copyright (C) 2015 Xilinx Inc. All rights reserved.
================================================================
@I [HLS-10] Running '/home/wchao/Xilinx/Vivado_HLS/2015.4/bin/unwrapped/lnx64.o/vivado_hls'
            for user 'wchao' on host 'wordchao' (Linux_x86_64 version 4.15.0-51-generic) on Sun Jun 23 13:07:35 CST 2019
            in directory '/home/wchao/Documents/hls/HLx_Examples-master/Acceleration/tcp_ip/scripts/build/hls/udp/udpLoopback'
@I [HLS-10] Creating and opening project '/home/wchao/Documents/hls/HLx_Examples-master/Acceleration/tcp_ip/scripts/build/hls/udp/udpLoopback/udpLoopback_prj'.
@I [HLS-10] Adding design file 'udpLoopback.cpp' to the project
@I [HLS-10] Adding test bench file 'udpLoopback_tb.cpp' to the project
@I [HLS-10] Creating and opening solution '/home/wchao/Documents/hls/HLx_Examples-master/Acceleration/tcp_ip/scripts/build/hls/udp/udpLoopback/udpLoopback_prj/solution1'.
@I [HLS-10] Setting target device to 'xc7vx690tffg1157-2'
@I [SYN-201] Setting up clock 'default' with a period of 6.66ns.
   Compiling ../../../../udpLoopback_tb.cpp in debug mode
csim.mk:74: recipe for target 'obj/udpLoopback_tb.o' failed
In file included from /home/wchao/Xilinx/Vivado_HLS/2015.4/lnx64/tools/gcc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include-fixed/features.h:339:0,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../../../udpLoopback.hpp:29,
                 from ../../../../udpLoopback_tb.cpp:29:
/usr/include/x86_64-linux-gnu/sys/cdefs.h:467:49: error: missing binary operator before token "("
In file included from ../../../../udpLoopback.hpp:29:0,
                 from ../../../../udpLoopback_tb.cpp:29:
/usr/include/stdio.h:276:43: error: missing binary operator before token "("
/usr/include/stdio.h:349:17: error: missing binary operator before token "("
/usr/include/stdio.h:567:17: error: missing binary operator before token "("
/usr/include/stdio.h:592:43: error: missing binary operator before token "("

                 from /home/wchao/Xilinx/Vivado_HLS/2015.4/lnx64/tools/gcc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iosfwd:42,
                 from /home/wchao/Xilinx/Vivado_HLS/2015.4/lnx64/tools/gcc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ios:39,
                 from /home/wchao/Xilinx/Vivado_HLS/2015.4/lnx64/tools/gcc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/ostream:40,
                 from /home/wchao/Xilinx/Vivado_HLS/2015.4/lnx64/tools/gcc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../include/c++/4.6.3/iostream:40,
                 from ../../../../udpLoopback.hpp:30,
                 from ../../../../udpLoopback_tb.cpp:29:
/home/wchao/Xilinx/Vivado_HLS/2015.4/lnx64/tools/gcc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include-fixed/wchar.h:175:22: fatal error: xlocale.h:no that file or directory
compiling interrupted.
make: *** [obj/udpLoopback_tb.o] Error 1
@E [SIM-1] CSim file generation failed: compilation error(s).
5
    while executing
"source [lindex $::argv 1] "
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 { source [lindex $::argv 1] } "

...

cp: cannot obtain'../hls/toe/toe_prj/solution1/impl/ip' file status(stat): no that file or directory
cp: cannot obtain'../hls/udp/udpLoopback/udpLoopback_prj/solution1/impl/ip' file status(stat): no that file or directory

                            

转载于:https://www.cnblogs.com/wordchao/p/11073652.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值