当前位置:   article > 正文

vitis hls 20.02 在 ubuntu 20.04 上 c simulation 和 cosimulation 编译报错的问题_vitis2020.2 ubantu20.04

vitis2020.2 ubantu20.04

c synthesis 没问题,但 c simulation 和 cosimulation 提示编译出错:

WARNING: [COSIM 212-369] AXI_master port 'coef' has a depth of '0'. Insufficient depth may result in simulation mismatch or freeze.
   Build using "/home/godfly/Xilinx/Vitis_HLS/2020.2/tps/lnx64/gcc-6.2.0/bin/g++"
   Compiling fir.cpp_pre.cpp.tb.cpp
   Compiling apatb_fir_wrap.cpp
   Compiling fir_tb.cpp_pre.cpp.tb.cpp
   Compiling apatb_fir_wrap_ir.ll
   Generating cosim.tv.exe
e-m:e-i64:64-i128:128-i256:256-i512:512-i1024:1024-i2048:2048-i4096:4096-n8:16:32:64-S128-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024/home/godfly/Xilinx/Vivado/2020.2/tps/lnx64/binutils-2.26/bin/ld: cannot find crt1.o: No such file or directory
/home/godfly/Xilinx/Vivado/2020.2/tps/lnx64/binutils-2.26/bin/ld: cannot find crti.o: No such file or directory
/home/godfly/Xilinx/Vivado/2020.2/tps/lnx64/binutils-2.26/bin/ld: cannot find -lpthread
/home/godfly/Xilinx/Vivado/2020.2/tps/lnx64/binutils-2.26/bin/ld: cannot find -lm
collect2: error: ld returned 1 exit status
make: *** [Makefile.rules:393: cosim.tv.exe] Error 1
ERROR: [COSIM 212-317] C++ compile error.
ERROR: [COSIM 212-321] EXE file generate failed.
ERROR: [COSIM 212-331] Aborting co-simulation: C simulation failed, compilation errors.
ERROR: [COSIM 212-5] *** C/RTL co-simulation file generation failed. ***
ERROR: [COSIM 212-4] *** C/RTL co-simulation finished: FAIL ***
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

我的解决方案是 export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/224399
推荐阅读
相关标签
  

闽ICP备14008679号