UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer yxiaoa
Observer
871 Views
Registered: ‎05-14-2018

fatal error: 'pthread.h' file not found

hi:

when i compile my code with sdsoc without hardware function, it works, i can get the elf file.

but, when i select a function to be hardware function, it will give me an error like"fatal error: 'pthread.h' file not found".

then i compare the log file, and get the difference:

 

log without hardware function:

C:\Users\Embed\workspace_parallel\dark\Debug>exit /b 0
Compiling C:/Users/Embed/workspace_parallel/dark/src/convolutional_layer.c

aarch64-linux-gnu-gcc -c {-IC:\Users\Embed\workspace_parallel\dark\src} -Wall -O0 -g -fmessage-length=0 -MMD -MP -D __SDSCC__ -MTC:/Users/Embed/workspace_parallel/dark/Debug/src/convolutional_layer.o -MFC:/Users/Embed/workspace_parallel/dark/Debug/src/convolutional_layer.d -MTC:/Users/Embed/workspace_parallel/dark/Debug/src/convolutional_layer.o     -I F:/Xilinx/SDx/2017.4/target/aarch64-linux/include  -D HLS_NO_XIL_FPO_LIB  -I F:/Xilinx/Vivado/2017.4/include C:/Users/Embed/workspace_parallel/dark/src/convolutional_layer.c -o src/convolutional_layer.o

 

log with hardware function

C:\Users\Embed\workspace_parallel\dark\Debug>exit /b 0
Performing accelerator source linting for forward_convolutional_layer
F:/Xilinx/SDx/2017.4/bin/sdslint -target cortex-a53 -func "forward_convolutional_layer" C:/Users/Embed/workspace_parallel/dark/src/convolutional_layer.c -- -c {-IC:\Users\Embed\workspace_parallel\dark\src} -Wall -g -fmessage-length=0 -MMD -MP -D __SDSCC__ -target aarch64-linux-gnu -mcpu=cortex-a53 -O0 -g -w    -I F:/Xilinx/SDx/2017.4/target/aarch64-linux/include  -D HLS_NO_XIL_FPO_LIB  -I F:/Xilinx/Vivado/2017.4/include   -IF:/Xilinx/SDK/2017.4/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/6.2.1/include -IF:/Xilinx/SDK/2017.4/gnu/aarch64/nt/aarch64-linux/lib/gcc/aarch64-linux-gnu/6.2.1/include-fixed -IF:/Xilinx/SDK/2017.4/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/include -IF:/Xilinx/SDK/2017.4/gnu/aarch64/nt/aarch64-linux/aarch64-linux-gnu/libc/usr/include

aarch64-linux-gnu-gcc -c C:/Users/Embed/workspace_parallel/dark/Debug/_sds/swstubs/convolutional_layer.cpp -o C:/Users/Embed/workspace_parallel/dark/Debug/_sds/swstubs/convolutional_layer.o

 

i think the problem is in the second log: after  gcc -c, there is no inclued files.  if so, how could i include a driectory here?

thanks for anyone knows this.

0 Kudos
2 Replies
Visitor sdroh1027
Visitor
594 Views
Registered: ‎12-09-2018

Re: fatal error: 'pthread.h' file not found

Project properties-> c / c ++ Build -> Settings -> SDS ++ Linker -> Libraries -> Libraries (-l) -> add "pthread"

0 Kudos
Visitor zxbzsb
Visitor
308 Views
Registered: ‎04-20-2019

Re: fatal error: 'pthread.h' file not found

Hello there:
        I have encountered similar problems. How did you solve them?

0 Kudos