fatal error: 'sys/io.h' file not found

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

fatal error: 'sys/io.h' file not found

4,079 Views
gonewithwind-peter
Senior Contributor I

Hi 

I am play imx8qm iwave board.

when I use the clang toolchain, I tried to build with code as the below line in makefile:
aarch64-poky-linux-clang -O2 makeBmp.c process01.c -o makeBmp --sysroot=/opt/fsl-imx-xwayland/L4.14.98-2.0.0_GA/sysroots/aarch64-poky-linux -lm -Wall -ffunction-sections -Wl,-gc-sections

but error:
./common01.h:9:10: fatal error: 'sys/io.h' file not found
#include <sys/io.h>
^~~~~~~~~~
1 error generated.
In file included from process01.c:8:

what components I missed in the toolchains? I searched online but no solutions.

when I build my clang toolchains I only add:
TOOLCHAIN ?= "clang". in my local file

any suggestion?

0 Kudos
2 Replies

3,940 Views
ApaulSoft
Contributor I

instead of 'sys/io.h' use 'sys/uio.h' in your code for imx8qm iwave board.

0 Kudos

4,049 Views
igorpadykov
NXP Employee
NXP Employee

Hi Peter

iwave boards are supported by iwavesystems directly and

issue may be posted on Support | iWave Systems 

Alternatively one can try nxp linux from source.codeaurora.org/external/imx/linux-imx  repository
linux-imx - i.MX Linux kernel 

i.MX8 Boot process and creating a bootable image 

Embedded Linux for i.MX Applications Processors | NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos