cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mostafa@sint
Participant
Participant
415 Views
Registered: ‎01-01-2019

problem with stdio.h in the kernel code

Jump to solution

Hi All,

 

I am using the Vitis with the sample vadd project.

I am trying to use printf in the kernel code.  but after stdio.h is added I get following error during the build process:

[v++ 207-812] 'bits/libc-header-start.h' file not found: /usr/include/stdio.h:27:10

 

Anyone knows how to solve it, or how to use printf in the kernel code?  As I mentioned I am even trying to use the xilinx vadd sample without touching it but I have 

not been able to use printf in kernel code at all.

 

Thanks for your help.

Mostafa

 

0 Kudos
1 Solution

Accepted Solutions
yangc
Xilinx Employee
Xilinx Employee
375 Views
Registered: ‎02-27-2019

Hope it helps you https://stackoverflow.com/questions/54082459/fatal-error-bits-libc-header-start-h-no-such-file-or-directory-while-compili/54082790

Try installing below:

sudo apt-get install gcc-multilib

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

2 Replies
yangc
Xilinx Employee
Xilinx Employee
376 Views
Registered: ‎02-27-2019

Hope it helps you https://stackoverflow.com/questions/54082459/fatal-error-bits-libc-header-start-h-no-such-file-or-directory-while-compili/54082790

Try installing below:

sudo apt-get install gcc-multilib

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

mostafa@sint
Participant
Participant
356 Views
Registered: ‎01-01-2019

Thanks a lot,

After two times asking it in the forum and no helpful replt finally you saved me.

 

0 Kudos