No <sys/termios.h> with aarch64-none-elf-gcc

I installed `aarch64-none-elf-gcc` from gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf.tar.xz, and on my Ubuntu22.04 computer, I try to compile a source code that contain:

Fullscreen
1
2
3
#if __has_include(<termios.h>)
#include "termios.c"
#endif
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

It found `<termios.h>`, but included it leads to:

Fullscreen
1
2
3
<...>/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf/aarch64-none-elf/include/termios.h:4:10: fatal error: sys/termios.h: No such file or directory
4 | #include <sys/termios.h>
| ^~~~~~~~~~~~~~~
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

What am I doing wrong ?

Notice that I am very new to cross compilation, so I may have missed something...

0