cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Visitor
Visitor
9,417 Views
Registered: ‎05-11-2016

Vivado HLS gcc error for testbench

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?

 

 

0 Kudos
Reply
7 Replies
Teacher
Teacher
9,406 Views
Registered: ‎03-31-2012

it seems that your -I option to the compiler is not doing the right thing. Show the whole compiler command line. 

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
0 Kudos
Reply
Visitor
Visitor
9,401 Views
Registered: ‎05-11-2016

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
0 Kudos
Reply
Visitor
Visitor
9,378 Views
Registered: ‎05-11-2016

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...

 

 

0 Kudos
Reply
Moderator
Moderator
9,369 Views
Registered: ‎04-17-2011

Are you able to see the Includes folders in the Project Window under Include? 2016.1 supports Windows 10 so that should not be an issue. 2015.4 doesn't support Windows 10. Is this issue happening with this particular project or any Vivado HLS project. Like, the example projects with HLS install?
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Reply
Visitor
Visitor
9,348 Views
Registered: ‎05-11-2016

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?

0 Kudos
Reply
Visitor
Visitor
9,342 Views
Registered: ‎05-11-2016

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.
0 Kudos
Reply
Visitor
Visitor
9,321 Views
Registered: ‎05-11-2016

Any one could be helpful? After tried different ways, but without any success...

0 Kudos
Reply