在干净的FPGA开发者AMI(AL2)上执行hello_world示例出现错误。

0

【以下的问题经过翻译处理】 问题:

在按照aws-fpga存储库中的说明进行操作后,运行hello_world示例失败。

故障签名:

INFO: [ConfigUtil 60-1032] emulation configuration file emconfig.json is created in ./_x.sw_emu.xilinx_aws-vu9p-f1_shell-v04261818_201920_2 directory cp -rf ./_x.sw_emu.xilinx_aws-vu9p-f1_shell-v04261818_201920_2/emconfig.json . XCL_EMULATION_MODE=sw_emu ./hello_world ./build_dir.sw_emu.xilinx_aws-vu9p-f1_shell-v04261818_201920_2/vadd.xclbin /home/ec2-user/src/project_data/aws-fpga/Vitis/examples/xilinx_2020.2/common/includes/xcl2/xcl2.cpp:50 Error calling err = cl::Platform::get(&platforms), error code is: -1001 make[1]: *** [run] Error 1 make[1]: Leaving directory `/home/ec2-user/src/project_data/aws-fpga/Vitis/examples/xilinx_2020.2/hello_world' make: *** [check] Error 2

重现:

1.启动带有FPGA开发人员AMI(Amazon Linux 2)和Vitis 2020.2的EC2实例。

2.按照此处的说明安装XRT库(https://github.com/aws/aws-fpga/blob/master/Vitis/docs/XRT_installation_instructions.md )。

3.源设置脚本并尝试编译SW_Emulation,按照此处的说明执行操作(https://github.com/aws/aws-fpga/blob/master/Vitis/README.md )。

  1. $ cd $VITIS_DIR/examples/xilinx/hello_world //没有错误

$ make clean //看到“basename:missing operand”

$ make check TARGET = sw_emu DEVICE = $AWS_PLATFORM all //看到上面的故障

profile picture
EXPERTE
gefragt vor einem Jahr43 Aufrufe
1 Antwort
0

【以下的回答经过翻译处理】 问题在于我们在LD_LIBRARY_PATH路径中捆绑了不兼容更新g++的AL2的Vitis标准库。解决方法是使用与你正在编译的系统ABI兼容的标准库。

默认情况下,如果您未设置LD_LIBRARY_PATH,g++应该查找/lib64。然而,由于它在Vitis路径中找到了libstdc++,它没有在其他路径下查找,导致失败。

因此,您的解决方法应该可以无问题地工作,因为它将库添加到LD_LIBRARY_PATH指定的"/opt/xilinx/xrt/lib"路径中。我们还将修复代码,不在将Vitis包含到LD_LIBRARY_PATH中,这应该会令g++在/lib64中自动找到这个库。我们将很快发布修复版本。

profile picture
EXPERTE
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen