COS simulation fails with errors
INFO: [RTGEN 206-500] Setting interface mode on port 'arrayinit/maxi_arr' to 'm_axi'.
INFO: [RTGEN 206-500] Setting interface mode on port 'arrayinit/arr' to 's_axilite & ap_none'.
INFO: [RTGEN 206-500] Setting interface mode on function 'arrayinit' to 's_axilite & ap_ctrl_hs'.
INFO: [RTGEN 206-100] Bundling port 'arr' and 'return' to AXI-Lite port AXILiteS.
INFO: [RTGEN 206-100] Finished creating RTL model for 'arrayinit'.
INFO: [HLS 200-111] Elapsed time: 0.05 seconds; current allocated memory: 59.102 MB.
INFO: [HLS 200-111] Finished generating all RTL models Time (s): cpu = 00:00:03 ; elapsed = 00:00:23 . Memory (MB): peak = 583.598 ; gain = 144.703 ; free physical = 690 ; free virtual = 12449
INFO: [SYSC 207-301] Generating SystemC RTL for arrayinit.
INFO: [VHDL 208-304] Generating VHDL RTL for arrayinit.
INFO: [VLOG 209-307] Generating Verilog RTL for arrayinit.
INFO: [COSIM 212-47] Using XSIM for RTL simulation.
INFO: [COSIM 212-14] Instrumenting C test bench ...
ERROR: [COSIM 212-24] TB preprocess failed : In file included from /opt/cad/xilinx/vivado/Vivado_HLS/2017.2/lnx64/tools/gcc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include-fixed/features.h:339:0,
from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:28,
from /home/wimi/cjh/tapasco/kernel/arrayinit/arrayinit-tb.c:23:
/usr/include/sys/cdefs.h:481:49: error: missing binary operator before token "("
In file included from /home/wimi/cjh/tapasco/kernel/arrayinit/arrayinit-tb.c:23:0:
/usr/include/stdio.h:320:43: error: missing binary operator before token "("
/usr/include/stdio.h:399:17: error: missing binary operator before token "("
/usr/include/stdio.h:657:43: error: missing binary operator before token "("
In file included from /home/wimi/cjh/tapasco/kernel/arrayinit/arrayinit-tb.c:24:0:
/usr/include/stdlib.h:183:17: error: missing binary operator before token "("
ERROR: [HLS 200-70] Cannot find file /home/wimi/cjh/tapasco/core/arrayinit/axi4mm/pynq/hls/axi4mm/solution/./sim/autowrap/testbench/arrayinit-tb.c_pre.c.
ERROR: [COSIM 212-4] *** C/RTL co-simulation finished: FAIL ***
24
while executing
"source [lindex $::argv 1] "
("uplevel" body line 1)
invoked from within
"uplevel \#0 { source [lindex $::argv 1] } "