Vivado HLS 2016.02 has an error when building binary files (for co-simulation) on Ubuntu 14.04. (Don’t know about other distributions, or other versions of Ubuntu)
I got my help from this blog post.
The problem I got was as follows:
INFO: [HLS 200-10] In directory '/home/username/Vivado_HLS_projects/XorGenerator/XorGenerator/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_username/160961476017075859177 INFO: [APCC 202-1] APCC is done. Generating cosim.tv.exe In file included from apatb_do_xor.cpp:18:0: /opt/Xilinx/Vivado_HLS/2016.2/include/ap_stream.h:70:2: warning: #warning AP_STREAM macros are deprecated. Please use hls::stream<> from "hls_stream.h" instead. [-Wcpp] /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld: cannot find crti.o: No such file or directory
So the problem was that crt1.o and crti.o are note found. Just to give you a hint, these files are under
However instead of adding that directory as the build path or Library path (which I think is the intuition and the right way to do it…) The workaround in the blog post is to copy the
crti.o, crt1.o, and crtn.o file to the Vivado HLS's gcc directories.
The path has changed since Vivado HLS 2012.02 as in the post.
Now the path is at
Thus you will want to execute the following command:
cp /usr/lib/x86_64-linux-gnu/crt?.o /opt/Xilinx/Vivado_HLS/2016.2/lnx64/tools/gcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/