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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

5,616件の閲覧回数
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?

タグ(2)
0 件の賞賛
返信
2 返答(返信)

5,477件の閲覧回数
ApaulSoft
Contributor I

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

0 件の賞賛
返信

5,586件の閲覧回数
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 件の賞賛
返信