在linux环境下,使用交叉编译工具链aarch64-poky-linux-gcc编译程序时提示fatal error: gnu/stubs-32.h: No such file or directory
book@100ask:/Program/igh_motor/src$ ls/Program/igh_motor/src$ make
igh_ethercat_dc_motor.c Makefile parameter_parser.c parameter_parser.h
book@100ask:
aarch64-poky-linux-gcc -mcpu=cortex-a53+crc+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/book/SDK/sysroots/aarch64-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -g -Wall -O2 -I /home/book/imx8/ethercat/__install/include -c -o parameter_parser.o parameter_parser.c
In file included from /home/book/SDK/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.2.0/include/features.h:474,
from /home/book/SDK/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.2.0/include/bits/libc-header-start.h:33,
from /home/book/SDK/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.2.0/include/stdio.h:27,
from parameter_parser.c:3:
/home/book/SDK/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux/gcc/aarch64-poky-linux/9.2.0/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
7 | # include <gnu/stubs-32.h>
compilation terminated.
: recipe for target 'parameter_parser.o' failed
make: *** [parameter_parser.o] Error 1