Error while c synthesis

https://app.livestorm.co/adiuvo-engineering/vitis-hls-hero/live?s=46eeebfe-f0d3-4c8c-bda5-20f6ebf0187b#/

i am facing this error many time i try so hard to solve it please some help !!!
NFO: [HLS 200-111] Finished File checks and directory preparation: CPU user time: 0.02 seconds. CPU system time: 0.01 seconds. Elapsed time: 0.02 seconds; current allocated memory: 197.297 MB.
INFO: [HLS 200-10] Analyzing design file ‘laab1/lap1.cpp’ …
ERROR: [HLS 207-812] ‘features.h’ file not found: /tools/Xilinx/Vitis_HLS/2021.1/tps/lnx64/gcc-6.2.0/lib/gcc/x86_64-pc-linux-gnu/6.2.0/…/…/…/…/include/c++/6.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:10
INFO: [HLS 200-111] Finished Command csynth_design CPU user time: 0.65 seconds. CPU system time: 0.8 seconds. Elapsed time: 1.01 seconds; current allocated memory: 197.840 MB.
command ‘ap_source’ returned error code
while executing

.log file
INFO: [SIM 2] *************** CSIM start ***************
INFO: [SIM 4] CSIM will launch GCC as the compiler.
Compiling …/…/…/lab1.cpp in debug mode
In file included from /tools/Xilinx/Vitis_HLS/2021.1/tps/lnx64/gcc-6.2.0/include/c++/6.2.0/x86_64-pc-linux-gnu/bits/c++config.h:495:0,
from /tools/Xilinx/Vitis_HLS/2021.1/tps/lnx64/gcc-6.2.0/include/c++/6.2.0/cstdint:38,
from …/…/…/lab1.cpp:1:
/tools/Xilinx/Vitis_HLS/2021.1/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/lab1.o] Error 1
ERR: [SIM 100] ‘csim_design’ failed: compilation error(s).
INFO: [SIM 3] *************** CSIM finish ***************

@cathalmccabe i see that maybe you can help me, thanks

Hi @Roua_Zaied,

This is not a PYNQ related question, you may better off asking the author.

Having said that, make sure you are using the same Vivado/Vitis version as the author of the post.

Mario

1 Like