cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
989 Views
Registered: ‎10-13-2019

Vivado HLS 2019.2 - C Simulation Error

Jump to solution

Just starting to explore vivado HLS but unable to get past the C simulation (CSIM) stage of a FIR filter example due to the following error:

 

INFO: [SIM 2] *************** CSIM start ***************
INFO: [SIM 4] CSIM will launch GCC as the compiler.
Compiling ../../../../fir_2ch_int_tb.cpp in debug mode
csim.mk:74: recipe for target 'obj/fir_2ch_int_tb.o' failed
In file included from /opt/Xilinx/Vivado/2019.2/tps/lnx64/gcc-6.2.0/include/c++/6.2.0/x86_64-pc-linux-gnu/bits/c++config.h:495:0,
from /opt/Xilinx/Vivado/2019.2/tps/lnx64/gcc-6.2.0/include/c++/6.2.0/iostream:38,
from ../../../../fir_2ch_int_tb.cpp:93:
/opt/Xilinx/Vivado/2019.2/tps/lnx64/gcc-6.2.0/include/c++/6.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:22: fatal error: features.h: No such file or directory
#include <features.h>
^
compilation terminated.
make: *** [obj/fir_2ch_int_tb.o] Error 1
ERR: [SIM 100] 'csim_design' failed: compilation error(s).
INFO: [SIM 3] *************** CSIM finish ***************

 

I'm on Ubuntu 18.04.3 LTS. Vitis and Vivado are working well so I'm hoping it's some simple config issue I've overlooked.

Appreciate any help forum members can provide. Thanks.

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
984 Views
Registered: ‎05-31-2017

HI @rskfam ,

It occurs due to the missing of few libraries on your machine.

Try installing the glibc-devel.x86_64 and glibc-utils.x86_64  packages on your ubuntu machine, then run C simulation and see if it helps.

View solution in original post

4 Replies
Highlighted
Moderator
Moderator
985 Views
Registered: ‎05-31-2017

HI @rskfam ,

It occurs due to the missing of few libraries on your machine.

Try installing the glibc-devel.x86_64 and glibc-utils.x86_64  packages on your ubuntu machine, then run C simulation and see if it helps.

View solution in original post

Highlighted
Observer
Observer
899 Views
Registered: ‎10-13-2019

Hi @shameera ,

With a slight modification to your suggestion, I installed the libc6-dev-amd64 package and re-ran the C simulation. A different compilation error complaining of "No such file or directory #include <asm/errno.h>" appeared.

Instead of an "asm" directory, my version of Ubuntu has a "asm-generic" directory. The work-around is to use a symbolic link, i.e.

ln -s /usr/include/asm-generic /usr/include/asm

For more info, interested members can follow this link

Thanks to your assistance, the Vivado HLS is now working.

 

 

 

0 Kudos
Highlighted
Newbie
Newbie
515 Views
Registered: ‎03-20-2020

I have the same problem on a windows 10 machine.

0 Kudos
Highlighted
Newbie
Newbie
287 Views
Registered: ‎10-01-2018

I have the same problem on a windows 10 machine. Do you had solved it?

0 Kudos