LibXZR 借楼
官方内核编译失败求助
log:
make[1]: 进入目录“/home/qiunan/桌面/Xiaomi_Kernel_OpenSource-clover-o-oss/out” HOSTCC scripts/basic/fixdep GEN ./Makefile HOSTCC scripts/basic/bin2c HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf arch/arm64/configs/clover-perf_defconfig:702:warning: override: reassigning to symbol CPU_BOOST warning: (SND_SOC_INT_CODEC && SND_SOC_EXT_CODEC && SND_SOC_MSM8996 && SND_SOC_MSM8998) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_APQ8084 SND_SOC_MSM8994 SND_SOC_MSM8996 SND_SOC_MSM8998 SND_SOC_SDM660_COMMON)) warning: (SND_SOC_INT_CODEC && SND_SOC_EXT_CODEC && SND_SOC_MSM8996 && SND_SOC_MSM8998) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_APQ8084 SND_SOC_MSM8994 SND_SOC_MSM8996 SND_SOC_MSM8998 SND_SOC_SDM660_COMMON)) # # configuration written to .config # make[1]: 离开目录“/home/qiunan/桌面/Xiaomi_Kernel_OpenSource-clover-o-oss/out” make[1]: 进入目录“/home/qiunan/桌面/Xiaomi_Kernel_OpenSource-clover-o-oss/out” GEN ./Makefile scripts/kconfig/conf –silentoldconfig Kconfig warning: (SND_SOC_INT_CODEC && SND_SOC_EXT_CODEC && SND_SOC_MSM8996 && SND_SOC_MSM8998) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_APQ8084 SND_SOC_MSM8994 SND_SOC_MSM8996 SND_SOC_MSM8998 SND_SOC_SDM660_COMMON)) warning: (SND_SOC_INT_CODEC && SND_SOC_EXT_CODEC && SND_SOC_MSM8996 && SND_SOC_MSM8998) selects SND_SOC_MSM_HDMI_CODEC_RX which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && FB_MSM_MDSS_HDMI_PANEL && (SND_SOC_APQ8084 SND_SOC_MSM8994 SND_SOC_MSM8996 SND_SOC_MSM8998 SND_SOC_SDM660_COMMON)) CHK include/config/kernel.release GEN ./Makefile CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h Using .. as source for kernel HOSTCC scripts/dtc/dtc.o HOSTCC scripts/genksyms/genksyms.o CC scripts/mod/empty.o HOSTCC scripts/selinux/genheaders/genheaders HOSTCC scripts/mod/mk_elfconfig HOSTCC scripts/dtc/flattree.o HOSTCC scripts/genksyms/parse.tab.o HOSTCC scripts/kallsyms CC scripts/mod/devicetable-offsets.s ../scripts/mod/devicetable-offsets.c:10:2: error: unexpected token at start of statement DEVID(usb_device_id); ^ ../scripts/mod/devicetable-offsets.c:4:22: note: expanded from macro ‘DEVID’ #define DEVID(devid) DEFINE(SIZE##devid, sizeof(struct devid)) ^ HOSTCC scripts/selinux/mdp/mdp ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->SIZE_usb_device_id $32 sizeof(struct usb_device_id) ^ ../scripts/mod/devicetable-offsets.c:11:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, match_flags); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_match_flags $0 offsetof(struct usb_device_id, match_flags) ^ ../scripts/mod/devicetable-offsets.c:12:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, idVendor); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_idVendor $2 offsetof(struct usb_device_id, idVendor) ^ ../scripts/mod/devicetable-offsets.c:13:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, idProduct); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_idProduct $4 offsetof(struct usb_device_id, idProduct) ^ ../scripts/mod/devicetable-offsets.c:14:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, bcdDevice_lo); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_bcdDevice_lo $6 offsetof(struct usb_device_id, bcdDevice_lo) ^ ../scripts/mod/devicetable-offsets.c:15:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, bcdDevice_hi); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_bcdDevice_hi $8 offsetof(struct usb_device_id, bcdDevice_hi) ^ ../scripts/mod/devicetable-offsets.c:16:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, bDeviceClass); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_bDeviceClass $10 offsetof(struct usb_device_id, bDeviceClass) ^ ../scripts/mod/devicetable-offsets.c:17:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, bDeviceSubClass); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_bDeviceSubClass $11 offsetof(struct usb_device_id, bDeviceSubClass) ^ ../scripts/mod/devicetable-offsets.c:18:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, bDeviceProtocol); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_bDeviceProtocol $12 offsetof(struct usb_device_id, bDeviceProtocol) ^ ../scripts/mod/devicetable-offsets.c:19:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, bInterfaceClass); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_bInterfaceClass $13 offsetof(struct usb_device_id, bInterfaceClass) ^ ../scripts/mod/devicetable-offsets.c:20:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, bInterfaceSubClass); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_bInterfaceSubClass $14 offsetof(struct usb_device_id, bInterfaceSubClass) ^ ../scripts/mod/devicetable-offsets.c:21:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, bInterfaceProtocol); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_bInterfaceProtocol $15 offsetof(struct usb_device_id, bInterfaceProtocol) ^ ../scripts/mod/devicetable-offsets.c:22:2: error: unexpected token at start of statement DEVID_FIELD(usb_device_id, bInterfaceNumber); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_usb_device_id_bInterfaceNumber $16 offsetof(struct usb_device_id, bInterfaceNumber) ^ ../scripts/mod/devicetable-offsets.c:24:2: error: unexpected token at start of statement DEVID(hid_device_id); ^ ../scripts/mod/devicetable-offsets.c:4:22: note: expanded from macro ‘DEVID’ #define DEVID(devid) DEFINE(SIZE##devid, sizeof(struct devid)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->SIZE_hid_device_id $24 sizeof(struct hid_device_id) ^ ../scripts/mod/devicetable-offsets.c:25:2: error: unexpected token at start of statement DEVID_FIELD(hid_device_id, bus); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_hid_device_id_bus $0 offsetof(struct hid_device_id, bus) ^ ../scripts/mod/devicetable-offsets.c:26:2: error: unexpected token at start of statement DEVID_FIELD(hid_device_id, group); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_hid_device_id_group $2 offsetof(struct hid_device_id, group) ^ ../scripts/mod/devicetable-offsets.c:27:2: error: unexpected token at start of statement DEVID_FIELD(hid_device_id, vendor); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_hid_device_id_vendor $4 offsetof(struct hid_device_id, vendor) ^ ../scripts/mod/devicetable-offsets.c:28:2: error: unexpected token at start of statement DEVID_FIELD(hid_device_id, product); ^ ../scripts/mod/devicetable-offsets.c:6:2: note: expanded from macro ‘DEVID_FIELD’ DEFINE(OFF##devid####field, offsetof(struct devid, field)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->OFF_hid_device_id_product $8 offsetof(struct hid_device_id, product) ^ ../scripts/mod/devicetable-offsets.c:30:2: error: unexpected token at start of statement DEVID(ieee1394_device_id); ^ ../scripts/mod/devicetable-offsets.c:4:22: note: expanded from macro ‘DEVID’ #define DEVID(devid) DEFINE(SIZE_##devid, sizeof(struct devid)) ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->SIZE_ieee1394_device_id $32 sizeof(struct ieee1394_device_id) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. ../scripts/Makefile.build:158: recipe for target ‘scripts/mod/devicetable-offsets.s’ failed make[3]: *** [scripts/mod/devicetable-offsets.s] Error 1 ../scripts/Makefile.build:408: recipe for target ‘scripts/mod’ failed make[2]: *** [scripts/mod] Error 2 make[2]: *** 正在等待未完成的任务…. HOSTCC scripts/genksyms/lex.lex.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o CC kernel/bounds.s ../kernel/bounds.c:18:2: error: unexpected token at start of statement DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS); ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->NR_PAGEFLAGS $21 __NR_PAGEFLAGS ^ ../kernel/bounds.c:19:2: error: unexpected token at start of statement DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES); ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->MAX_NR_ZONES $3 __MAX_NR_ZONES ^ ../kernel/bounds.c:21:2: error: unexpected token at start of statement DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS)); ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->NR_CPUS_BITS $3 ilog2(CONFIG_NR_CPUS) ^ ../kernel/bounds.c:23:2: error: unexpected token at start of statement DEFINE(SPINLOCK_SIZE, sizeof(spinlock_t)); ^ ../include/linux/kbuild.h:5:25: note: expanded from macro ‘DEFINE’ asm volatile(“\n->” #sym “ %0 ” #val : : “i” (val)) ^ <inline asm>:2:1: note: instantiated into assembly here ->SPINLOCK_SIZE $4 sizeof(spinlock_t) ^ 4 errors generated. .././Kbuild:44: recipe for target ‘kernel/bounds.s’ failed make[2]: *** [kernel/bounds.s] Error 1 /home/qiunan/桌面/Xiaomi_Kernel_OpenSource-clover-o-oss/Makefile:1018: recipe for target ‘prepare0’ failed make[1]: *** [prepare0] Error 2 make[1]: *** 正在等待未完成的任务…. HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o Android GCC has been deprecated in favor of Clang, and will be removed from Android in 2020-01 as per the deprecation plan in: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o HOSTLD scripts/genksyms/genksyms HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/dtc Android GCC has been deprecated in favor of Clang, and will be removed from Android in 2020-01 as per the deprecation plan in: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md /home/qiunan/桌面/Xiaomi_Kernel_OpenSource-clover-o-oss/Makefile:560: recipe for target ‘scripts’ failed make[1]: *** [scripts] Error 2 Android GCC has been deprecated in favor of Clang, and will be removed from Android in 2020-01 as per the deprecation plan in: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md Android GCC has been deprecated in favor of Clang, and will be removed from Android in 2020-01 as per the deprecation plan in: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md Android GCC has been deprecated in favor of Clang, and will be removed from Android in 2020-01 as per the deprecation plan in: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md Android GCC has been deprecated in favor of Clang, and will be removed from Android in 2020-01 as per the deprecation plan in: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md make[1]: 离开目录“/home/qiunan/桌面/Xiaomi_Kernel_OpenSource-clover-o-oss/out” Makefile:150: recipe for target ‘sub-make’ failed make: *** [sub-make] Error 2