05-11-2016 10:49 AM
Dear All,
I am using Vivado HLS 2015.4, Win10 OS. I could synthesis the code without error, but when I test the testbench, it will show following error.
Compiling ../../../test.cpp in debug mode csim.mk:74: recipe for target 'obj/test.o' failed gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include/opencv -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include/ap_sysc -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/common/technology/generic/SystemC -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/common/technology/generic/SystemC/AESL_FP_comp -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/common/technology/generic/SystemC/AESL_comp -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/win64/tools/auto_cc/include -D__SIM_FPO__: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/common/technology/generic/SystemC/AESL_comp -D__xilinx_ip_top=: No such file or directory make: *** [obj/test.o] Error 1 @E [SIM-1] 'csim_design' failed: compilation error(s).
I tried reinstall the program, without work....
I tried with my another computer, same Win10, Vivado 15.4, works fine for me. Any idea what might be the possible cause this?
05-11-2016 12:17 PM
it seems that your -I option to the compiler is not doing the right thing. Show the whole compiler command line.
05-11-2016 12:51 PM
Here is the console output:
Starting C simulation ... C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/bin/vivado_hls.bat C:/XUP/HLS_WS3/LAB5/LAB6/solution1/csim.tcl @I [HLS-10] Running 'C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/bin/unwrapped/win64.o/vivado_hls.exe' for user 'TZ' on host 'desktop-0d9m91b' (Windows NT_amd64 version 6.2) on Wed May 11 14:36:46 -0400 2016 in directory 'C:/XUP/HLS_WS3/LAB5' @I [HLS-10] Opening project 'C:/XUP/HLS_WS3/LAB5/LAB6'. @I [HLS-10] Opening solution 'C:/XUP/HLS_WS3/LAB5/LAB6/solution1'. @I [SYN-201] Setting up clock 'default' with a period of 10ns. @I [HLS-10] Setting target device to 'xc7z020clg484-1' Compiling ../../../test.cpp in debug mode csim.mk:74: recipe for target 'obj/test.o' failed gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include/opencv -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include/ap_sysc -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/common/technology/generic/SystemC -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/common/technology/generic/SystemC/AESL_FP_comp -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/common/technology/generic/SystemC/AESL_comp -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/win64/tools/auto_cc/include -D__SIM_FPO__: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include -I: No such file or directory gcc.exe: error: C:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/common/technology/generic/SystemC/AESL_comp -D__xilinx_ip_top=: No such file or directory make: *** [obj/test.o] Error 1 @E [SIM-1] 'csim_design' failed: compilation error(s). 4 while executing "source C:/XUP/HLS_WS3/LAB5/LAB6/solution1/csim.tcl" invoked from within "hls::main C:/XUP/HLS_WS3/LAB5/LAB6/solution1/csim.tcl" ("uplevel" body line 1) invoked from within "uplevel 1 hls::main {*}$args" (procedure "hls_proc" line 5) invoked from within "hls_proc $argv"
Here are the commind of gcc c++ compiler
-DAESL_TB -D__llvm__ -D__llvm__ -IC:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include -IC:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include/ap_sysc -IC:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/win64/tools/auto_cc/include -IC:/XUP/HLS_WS3/LAB5 -IC:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include/etc -IC:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/win64/tools/systemc/include -O0 -g3 -Wall -c -fmessage-length=0
Here are the commind of gcc c compiler
-DAESL_TB -D__llvm__ -D__llvm__ -IC:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include -IC:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include/ap_sysc -IC:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/win64/tools/auto_cc/include -IC:/XUP/HLS_WS3/LAB5 -IC:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/include/etc -IC:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/win64/tools/systemc/include -O0 -g3 -Wall -c -fmessage-length=0
Here is GCC c++ linker
-LC:/Xilinx/SDSoC/2015.4/Vivado_HLS/2015.4/win64/tools/systemc/lib
05-11-2016 07:44 PM
Do you have any idea? I tried to reinstall the Vivado 2016. Which report the same result. If I use c not cpp as test bench file. Which still report the error, but this time, not -I error, but the library could not be regnized...
05-11-2016 09:48 PM
05-12-2016 06:46 AM
I could see the project folder very well, all included folder could be checked from project tree.
2016.1 results the same issue.
This issue happening all the other projects, even if they are sample project from HLS or I created project.
Is there something happen about gcc?
05-12-2016 07:18 AM
Starting C simulation ...
C:/Xilinx/Vivado_HLS/2016.1/bin/vivado_hls.bat C:/XUP/HLS_WS3/labs/lab2/test3/solution1/csim.tcl
INFO: [HLS 200-10] Running 'C:/Xilinx/Vivado_HLS/2016.1/bin/unwrapped/win64.o/vivado_hls.exe'
INFO: [HLS 200-10] For user 'Taisen Zhuang' on host 'desktop-0d9m91b' (Windows NT_amd64 version 6.2) on Thu May 12 10:18:14 -0400 2016
INFO: [HLS 200-10] In directory 'C:/XUP/HLS_WS3/labs/lab2'
INFO: [HLS 200-10] Opening project 'C:/XUP/HLS_WS3/labs/lab2/test3'.
INFO: [HLS 200-10] Opening solution 'C:/XUP/HLS_WS3/labs/lab2/test3/solution1'.
INFO: [SYN 201-201] Setting up clock 'default' with a period of 10ns.
INFO: [HLS 200-10] Setting target device to 'xc7z020clg484-1'
Compiling ../../../test.cpp in debug mode
csim.mk:74: recipe for target 'obj/test.o' failed
gcc.exe: error: C:/Xilinx/Vivado_HLS/2016.1/include -I: No such file or directory
gcc.exe: error: C:/Xilinx/Vivado_HLS/2016.1/include/opencv -I: No such file or directory
gcc.exe: error: C:/Xilinx/Vivado_HLS/2016.1/include/ap_sysc -I: No such file or directory
gcc.exe: error: C:/Xilinx/Vivado_HLS/2016.1/common/technology/generic/SystemC -I: No such file or directory
gcc.exe: error: C:/Xilinx/Vivado_HLS/2016.1/common/technology/generic/SystemC/AESL_FP_comp -I: No such file or directory
gcc.exe: error: C:/Xilinx/Vivado_HLS/2016.1/common/technology/generic/SystemC/AESL_comp -I: No such file or directory
gcc.exe: error: C:/Xilinx/Vivado_HLS/2016.1/win64/tools/auto_cc/include -D__SIM_FPO__: No such file or directory
gcc.exe: error: C:/Xilinx/Vivado_HLS/2016.1/include -I: No such file or directory
gcc.exe: error: C:/Xilinx/Vivado_HLS/2016.1/common/technology/generic/SystemC/AESL_comp -D__xilinx_ip_top=: No such file or directory
make: *** [obj/test.o] Error 1
CRITICAL WARNING: [SIM 211-1] 'csim_design' failed: compilation error(s).
4
while executing
"source C:/XUP/HLS_WS3/labs/lab2/test3/solution1/csim.tcl"
invoked from within
"hls::main C:/XUP/HLS_WS3/labs/lab2/test3/solution1/csim.tcl"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$args"
(procedure "hls_proc" line 5)
invoked from within
"hls_proc $argv"
Finished C simulation.
05-12-2016 12:23 PM
Any one could be helpful? After tried different ways, but without any success...