Closed HadXu closed 2 years ago
Update:
when I build with clang
clang: clang version 16.0.0 lld: LLD 16.0.0 (compatible with GNU linkers)
clang --target=aarch64-linux-gnu -std=c++11 --sysroot=/home/lay/work/vck190/mlir-aie/platforms/vck190_bare_prod/aie_platform/sw_comp/sysroots/cortexa72-cortexa53-xilinx-linux -DLIBXAIENGINEV2 -I/home/lay/work/vck190/mlir-aie/platforms/vck190_bare_prod/aie_platform/sw_comp/sysroots/cortexa72-cortexa53-xilinx-linux/usr/include/c++/10.2.0 -I/home/lay/work/vck190/mlir-aie/platforms/vck190_bare_prod/aie_platform/sw_comp/sysroots/cortexa72-cortexa53-xilinx-linux/usr/include/c++/10.2.0/aarch64-xilinx-linux -I/home/lay/work/vck190/mlir-aie/platforms/vck190_bare_prod/aie_platform/sw_comp/sysroots/cortexa72-cortexa53-xilinx-linux/usr/include/c++/10.2.0/backward -L/home/lay/work/vck190/mlir-aie/platforms/vck190_bare_prod/aie_platform/sw_comp/sysroots/cortexa72-cortexa53-xilinx-linux/usr/lib/aarch64-xilinx-linux/10.2.0 -I/home/lay/work/vck190/mlir-aie/platforms/vck190_bare_prod/aie_platform/sw_comp/sysroots/cortexa72-cortexa53-xilinx-linux/usr/include -L/home/lay/work/vck190/mlir-aie/platforms/vck190_bare_prod/aie_platform/sw_comp/sysroots/cortexa72-cortexa53-xilinx-linux/usr/lib -Iacdc_project -fuse-ld=lld -lm -rdynamic -lxaiengine -ldl -I/home/lay/work/vck190/mlir-aie/runtime_lib /home/lay/work/vck190/mlir-aie/runtime_lib/test_library.cpp test.cpp -o test.elf
ld.lld: error: cannot open crtbeginS.o: No such file or directory
ld.lld: error: cannot open crtendS.o: No such file or directory
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
clang should with -B tag. like -B platforms/vck190_bare_prod/aie_platform/sw_comp/sysroots/cortexa72-cortexa53-xilinx-linux/usr/lib/aarch64-xilinx-linux/10.2.0/.
Environment:
v++: Vitis/2021.2/bin/v++ petalinux: 2021.2
And
make xsa petalinux_build petalinux_sysroot
is successful.make aie_platform_build
error. Some info below.