Xilinx / Vitis-Tutorials

Vitis In-Depth Tutorials
https://Xilinx.github.io/Vitis-Tutorials/
MIT License
1.25k stars 554 forks source link

ERROR: [v++ 60-1576] Input Object file validation failed: zip_exception: Failed to open zip archive for reading #82

Closed m-kru closed 3 years ago

m-kru commented 3 years ago

I am trying to compile the vadd example provided with Vitis 2020.2. As I want to prepare my custom Makefile I have started with super simple stuff. I first run

v++ --platform xilinx_u50_gen3x16_xdma_201920_3  -c src/example/kernel/krnl_vadd.cpp -o build/krnl_vadd.xo

It seems to work correctly. Then, I run

v++ -l --platform xilinx_u50_gen3x16_xdma_201920_3  build/krnl_vadd.xo -o bin/ExampleKrnl.xclbin

However, during the built I get following error:

ERROR: [v++ 60-1576] Input Object file validation failed: zip_exception: Failed to open zip archive for reading build/krnl_vadd.xo

I have tried to google the problem, but without success. Theoretically I use OS which is supported by Xilinx, Ubuntu 20.04.

Does anyone know what might be wrong?

m-kru commented 3 years ago

SOLVED:

I have been missing the --kernel flag.

Anyway, the error message was useless.