关于在x86平台下交叉编译目标架构为loongarch64的驱动。工具是8.3版本loongarch64-linux-genu-gcc
#在执行一下命令后:
make -C /opt/build/deps/loongarch64/5.4/linux-headers-5.4.18-85-generic M=/opt/build/src/km/20230809/client/5.4/sigspy modules ARCH=loongarch64 CROSS_COMPILE=loongarch64-linux-gnu-
#出现报错:
unrecognized e_machine 258 /opt/build/src/km/20230809/client/5.4/sigspy/spy.o
/opt/build/src/km/20230809/client/5.4/sigspy/spy.o: failed
scripts/Makefile.build:273: recipe for target '/opt/build/src/km/20230809/client/5.4/sigspy/spy.o' failed
make[1]: *** [/opt/build/src/km/20230809/client/5.4/sigspy/spy.o] Error 1
make[1]: *** 正在删除文件“/opt/build/src/km/20230809/client/5.4/sigspy/spy.o”
Makefile:1698: recipe for target '/opt/build/src/km/20230809/client/5.4/sigspy' failed
make: *** [/opt/build/src/km/20230809/client/5.4/sigspy] Error 2
make: 离开目录“/opt/build/deps/loongarch64/5.4/linux-headers-5.4.18-85-generic”
#通过loongarch64-linux-genu-gcc --version确保编译器配置没问题,在此之前编译x86、arm64是没有问题的,到龙芯这里就报错了。请问这是为什么呢