Proper solution to "No such file stdarg.h" error

1

When I try to compile an rtl8723au wifi driver for my laptop but I keep on getting the following error:

./include/linux/kernel.h:6:10: fatal error: stdarg.h: No such file or directory

My current solution is to add directory to compiler includes path like this:

/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/include/

But it is very bad solution, because I have to change compiler version (8.1.0 in above example) after each time when compiler updates. What is proper solution to this problem?

diralik

Posted 2018-06-11T16:04:05.917

Reputation: 111

Interesting question. Is the ad-hoc solution you are currently using based on this issue ticket connected to that repo?

– JakeGould – 2018-06-11T16:33:48.713

1

@JakeGould in fact I discover this solution by myself, but before asking this question I found that issue with same (not ideal) solution, so I decide to ask question

– diralik – 2018-06-11T16:39:19.790

No answers