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!

HLS工具COSimulation时报错 libpthread.so.0: 无法添加符号: 不可识别的文件格式

发帖数: 7
注册日期: ‎03-14-2017

HLS工具COSimulation时报错 libpthread.so.0: 无法添加符号: 不可识别的文件格式

NFO: [HLS 200-10] Running '/home/find/d/fpga/Vivado_HLS/2016.4/bin/unwrapped/lnx64.o/apcc'
INFO: [HLS 200-10] For user 'find' on host 'finddebian' (Linux_x86_64 version 4.9.0-2-amd64) on Wed Apr 19 16:35:51 CST 2017
INFO: [HLS 200-10] On os Debian GNU/Linux 9.0 (stretch)
INFO: [HLS 200-10] In directory '/home/find/d/fpga/projects/test4/soluition1/sim/wrapc'
clang: warning: argument unused during compilation: '-fno-builtin-isinf'
clang: warning: argument unused during compilation: '-fno-builtin-isnan'
INFO: [APCC 202-3] Tmp directory is /tmp/apcc_db_find/55431492590951232786
INFO: [APCC 202-1] APCC is done.
   Generating cosim.tv.exe
Makefile.rules:349: recipe for target 'cosim.tv.exe' failed
In file included from apatb_mat.cpp:18:0:
/home/find/d/fpga/Vivado_HLS/2016.4/include/ap_stream.h:70:2: warning: #warning AP_STREAM macros are deprecated. Please use hls::stream<> from "hls_stream.h" instead. [-Wcpp]
/lib/x86_64-linux-gnu/libpthread.so.0: 无法添加符号: 不可识别的文件格式
collect2: ld returned 1 exit status
make: *** [cosim.tv.exe] Error 1
ERROR: [COSIM 212-317] C++ compile error.
ERROR: [COSIM 212-321] EXE file generate failed.
ERROR: [COSIM 212-321] EXE file generate failed.
ERROR: [COSIM 212-331] Aborting co-simulation: C simulation failed, compilation errors.
ERROR: [COSIM 212-4] *** C/RTL co-simulation finished: FAIL ***
command 'ap_source' returned error code
    while executing
"source /home/find/d/fpga/projects/test4/soluition1/cosim.tcl"
    invoked from within
"hls::main /home/find/d/fpga/projects/test4/soluition1/cosim.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/RTL cosimulation.


发帖数: 102
注册日期: ‎06-25-2010

回复: HLS工具COSimulation时报错 libpthread.so.0: 无法添加符号: 不可识别的文件格式

你的仿真环境在Debian Linux下面,出现的问题是make rule,出问题的文件是apatb_mat.cpp,启动的编译器是apcc,建议你把所有的个人设计C/C++文件全部改为cpp。