|
发表于 2023-4-26 10:36:21
|
显示全部楼层
本帖最后由 jxph1123 于 2023-4-26 10:37 编辑
我用的你们官网拉的内核5.4的工具链编译4.6版本,GCC8.4,报下面错误,怎么解决哇~用GCC5.5就没问题,但是GCC5.5太老了,很多ipk编译报错。。
In file included from include/linux/ipv6.h:4,
from include/net/ipv6.h:16,
from include/linux/sunrpc/clnt.h:27,
from include/linux/nfs_fs.h:30,
from init/do_mounts.c:32:
include/uapi/linux/ipv6.h:105:1: error: alignment 1 of 'struct ipv6_destopt_hao' is less than 2 [-Werror=packed-not-aligned]
} __attribute__((packed));
^
cc1: all warnings being treated as errors
scripts/Makefile.build:337: recipe for target 'init/do_mounts.o' failed
make[6]: *** [init/do_mounts.o] Error 1
Makefile:971: recipe for target 'init' failed
make[5]: *** [init] Error 2
make[5]: Leaving directory '/home/etek/gl-infra-builder-4.60/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016'
Makefile:23: recipe for target '/home/etek/gl-infra-builder-4.60/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/.modules' failed
make[4]: *** [/home/etek/gl-infra-builder-4.60/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-4.4.60-qsdk-11f09717303ecd83c3a64e9efe23f25921dc1016/.modules] Error 2
make[4]: Leaving directory '/home/etek/gl-infra-builder-4.60/wlan-ap/feeds/ipq807x/ipq807x'
Makefile:11: recipe for target 'compile' failed
make[3]: *** [compile] Error 2
make[3]: Leaving directory '/home/etek/gl-infra-builder-4.60/wlan-ap/openwrt/target/linux'
time: target/linux/compile#25.12#22.82#50.79
ERROR: target/linux failed to build.
target/Makefile:23: recipe for target 'target/linux/compile' failed
make[2]: *** [target/linux/compile] Error 1
make[2]: Leaving directory '/home/etek/gl-infra-builder-4.60/wlan-ap/openwrt'
target/Makefile:18: recipe for target '/home/etek/gl-infra-builder-4.60/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.target_compile' failed
make[1]: *** [/home/etek/gl-infra-builder-4.60/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.target_compile] Error 2
make[1]: Leaving directory '/home/etek/gl-infra-builder-4.60/wlan-ap/openwrt'
/home/etek/gl-infra-builder-4.60/wlan-ap/openwrt/include/toplevel.mk:228: recipe for target 'world' failed
make: *** [world] Error 2
|
|