Closed fxxccp closed 1 year ago
电犀牛r68s 4G版编译同样报错
./tools/install.sh -D -m 644 include/threads.h /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0 _musl//include/threads.h ./tools/install.sh -D -m 644 include/time.h /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_mu sl//include/time.h ./tools/install.sh -D -m 644 include/uchar.h /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_m usl//include/uchar.h ./tools/install.sh -D -m 644 include/ucontext.h /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3. 0_musl//include/ucontext.h ./tools/install.sh -D -m 644 include/ulimit.h /home/cucy/lede/staging_dir/toolchain-aarch64_genericgcc-11.3.0 musl//include/ulimit.h ./tools/install.sh -D -m 644 include/unistd.h /home/cucy/lede/staging_dir/toolchain-aarch64_genericgcc-11.3.0 musl//include/unistd.h ./tools/install.sh -D -m 644 include/utime.h /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_m usl//include/utime.h ./tools/install.sh -D -m 644 include/utmp.h /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_mu sl//include/utmp.h ./tools/install.sh -D -m 644 include/utmpx.h /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_m usl//include/utmpx.h ./tools/install.sh -D -m 644 include/values.h /home/cucy/lede/staging_dir/toolchain-aarch64_genericgcc-11.3.0 musl//include/values.h ./tools/install.sh -D -m 644 include/wait.h /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_mu sl//include/wait.h ./tools/install.sh -D -m 644 include/wchar.h /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_m usl//include/wchar.h ./tools/install.sh -D -m 644 include/wctype.h /home/cucy/lede/staging_dir/toolchain-aarch64_genericgcc-11.3.0 musl//include/wctype.h ./tools/install.sh -D -m 644 include/wordexp.h /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0 _musl//include/wordexp.h ./tools/install.sh -D -l libc.so /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl//lib/ld- musl-aarch64.so.1 || true make[4]: Leaving directory '/home/cucy/lede/build_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/musl-1.2.3' cp -fpR ./include /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/ mkdir -p /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/stamp touch /home/cucy/lede/build_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/musl-1.2.3/.built touch /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/stamp/.musl_installed make[3]: Leaving directory '/home/cucy/lede/toolchain/musl' time: toolchain/musl/compile#75.85#16.93#13.42 make[2]: Leaving directory '/home/cucy/lede' make[1]: [toolchain/Makefile:93: /home/cucy/lede/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/stam p/.toolchain_compile] Error 2 make[1]: Leaving directory '/home/cucy/lede' make: [/home/cucy/lede/include/toplevel.mk:231: world] Error 2
X86 同样报错
1.关于你要提交的问题
Q:是否搜索了issue (使用 "x" 选择)
2. 详细叙述
(1) 具体问题
A:R2S/R4S编译报错,kernel-headers failed to build
(2) 路由器型号和固件版本
A:5.15
(3) 详细日志
make[3] -C tools/firmware-utils compile make[2] toolchain/compile make[3] -C toolchain/binutils compile make[3] -C toolchain/gdb compile make[3] -C toolchain/fortify-headers compile make[3] -C toolchain/gcc/initial compile make[3] -C toolchain/kernel-headers compile make[3] -C toolchain/musl compile ERROR: toolchain/kernel-headers failed to build. make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on make: [/workdir/openwrt/include/toplevel.mk:231: world] Error 1 make[2]: Entering directory '/workdir/openwrt/scripts/config' make[2]: 'conf' is up to date. make[2]: Leaving directory '/workdir/openwrt/scripts/config' make[1] world make[2] toolchain/compile make[3] -C toolchain/gdb compile make[3] -C toolchain/binutils compile make[3] -C toolchain/gcc/initial compile make[3] -C toolchain/kernel-headers compile ERROR: toolchain/kernel-headers failed to build. make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on make: [/workdir/openwrt/include/toplevel.mk:231: world] Error 1 make[2]: Entering directory '/workdir/openwrt/scripts/config' make[2]: 'conf' is up to date. make[2]: Leaving directory '/workdir/openwrt/scripts/config' make[1]: Entering directory '/workdir/openwrt' make[2]: Entering directory '/workdir/openwrt'
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-01-mm-x86-arm64-add-arch_has_hw_pte_young.patch using plaintext: patching file arch/arm64/include/asm/pgtable.h patching file arch/x86/include/asm/pgtable.h patching file include/linux/pgtable.h patching file mm/memory.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-02-mm-x86-add-CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG.patch using plaintext: patching file arch/Kconfig patching file arch/x86/Kconfig patching file arch/x86/include/asm/pgtable.h patching file arch/x86/mm/pgtable.c patching file include/linux/pgtable.h
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-03-mm-vmscan.c-refactor-shrink_node.patch using plaintext: patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-04-Revert-include-linux-mm_inline.h-fold-__update_lru_s.patch using plaintext: patching file include/linux/mm_inline.h
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-05-mm-multi-gen-LRU-groundwork.patch using plaintext: patching file fs/fuse/dev.c patching file include/linux/mm.h patching file include/linux/mm_inline.h patching file include/linux/mmzone.h patching file include/linux/page-flags-layout.h patching file include/linux/page-flags.h patching file include/linux/sched.h patching file kernel/bounds.c patching file mm/Kconfig patching file mm/huge_memory.c patching file mm/memcontrol.c patching file mm/memory.c patching file mm/mm_init.c patching file mm/mmzone.c patching file mm/swap.c patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-06-mm-multi-gen-LRU-minimal-implementation.patch using plaintext: patching file include/linux/mm_inline.h patching file include/linux/mmzone.h patching file include/linux/page-flags-layout.h patching file kernel/bounds.c patching file mm/Kconfig patching file mm/swap.c patching file mm/vmscan.c patching file mm/workingset.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-07-mm-multi-gen-LRU-exploit-locality-in-rmap.patch using plaintext: patching file include/linux/memcontrol.h patching file include/linux/mmzone.h patching file mm/internal.h patching file mm/memcontrol.c patching file mm/rmap.c patching file mm/swap.c patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-08-mm-multi-gen-LRU-support-page-table-walks.patch using plaintext: patching file fs/exec.c patching file include/linux/memcontrol.h patching file include/linux/mm_types.h patching file include/linux/mmzone.h patching file include/linux/swap.h patching file kernel/exit.c patching file kernel/fork.c patching file kernel/sched/core.c patching file mm/memcontrol.c patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-09-mm-multi-gen-LRU-optimize-multiple-memcgs.patch using plaintext: patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-10-mm-multi-gen-LRU-kill-switch.patch using plaintext: patching file include/linux/cgroup.h patching file include/linux/mm_inline.h patching file include/linux/mmzone.h patching file kernel/cgroup/cgroup-internal.h patching file mm/Kconfig patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-11-mm-multi-gen-LRU-thrashing-prevention.patch using plaintext: patching file include/linux/mmzone.h patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-12-mm-multi-gen-LRU-debugfs-interface.patch using plaintext: patching file include/linux/nodemask.h patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-13-mm-mglru-don-t-sync-disk-for-each-aging-cycle.patch using plaintext: patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-14-mm-multi-gen-LRU-retry-pages-written-back-while-isol.patch using plaintext: patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-15-mm-multi-gen-LRU-move-lru_gen_add_mm-out-of-IRQ-off-.patch using plaintext: patching file fs/exec.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-17-mm-add-dummy-pmd_young-for-architectures-not-having-.patch using plaintext: patching file arch/mips/include/asm/pgtable.h patching file arch/riscv/include/asm/pgtable.h patching file arch/s390/include/asm/pgtable.h patching file arch/sparc/include/asm/pgtable_64.h patching file arch/x86/include/asm/pgtable.h patching file include/linux/pgtable.h
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.1-18-mm-introduce-arch_has_hw_nonleaf_pmd_young.patch using plaintext: patching file arch/x86/include/asm/pgtable.h patching file include/linux/pgtable.h patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.2-16-mm-multi-gen-LRU-fix-crash-during-cgroup-migration.patch using plaintext: patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.3-19-mm-add-vma_has_recency.patch using plaintext: patching file include/linux/mm_inline.h patching file mm/memory.c patching file mm/rmap.c patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.3-20-mm-support-POSIX_FADV_NOREUSE.patch using plaintext: patching file include/linux/fs.h patching file include/linux/mm_inline.h patching file mm/fadvise.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.3-21-mm-multi-gen-LRU-rename-lru_gen_struct-to-lru_gen_pa.patch using plaintext: patching file include/linux/mm_inline.h patching file include/linux/mmzone.h patching file mm/vmscan.c patching file mm/workingset.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.3-22-mm-multi-gen-LRU-rename-lrugen-lists-to-lrugen-pages.patch using plaintext: patching file include/linux/mm_inline.h patching file include/linux/mmzone.h patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.3-23-mm-multi-gen-LRU-remove-eviction-fairness-safeguard.patch using plaintext: patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.3-24-mm-multi-gen-LRU-remove-aging-fairness-safeguard.patch using plaintext: patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.3-25-mm-multi-gen-LRU-shuffle-should_run_aging.patch using plaintext: patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.3-26-mm-multi-gen-LRU-per-node-lru_gen_page-lists.patch using plaintext: patching file include/linux/memcontrol.h patching file include/linux/mm_inline.h patching file include/linux/mmzone.h patching file mm/memcontrol.c patching file mm/page_alloc.c patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.3-27-mm-multi-gen-LRU-clarify-scan_control-flags.patch using plaintext: patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.3-28-mm-multi-gen-LRU-simplify-arch_has_hw_pte_young-chec.patch using plaintext: patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/020-v6.3-29-mm-multi-gen-LRU-avoid-futile-retries.patch using plaintext: patching file mm/vmscan.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/050-v5.16-00-MIPS-uasm-Enable-muhu-opcode-for-MIPS-R6.patch using plaintext: patching file arch/mips/include/asm/uasm.h patching file arch/mips/mm/uasm-mips.c patching file arch/mips/mm/uasm.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/050-v5.16-01-mips-uasm-Add-workaround-for-Loongson-2F-nop-CPU-err.patch using plaintext: patching file arch/mips/include/asm/uasm.h
Applying /workdir/openwrt/target/linux/generic/backport-5.15/050-v5.16-02-mips-bpf-Add-eBPF-JIT-for-32-bit-MIPS.patch using plaintext: patching file arch/mips/net/Makefile patching file arch/mips/net/bpf_jit_comp.c patching file arch/mips/net/bpf_jit_comp.h patching file arch/mips/net/bpf_jit_comp32.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/050-v5.16-03-mips-bpf-Add-new-eBPF-JIT-for-64-bit-MIPS.patch using plaintext: patching file arch/mips/net/bpf_jit_comp64.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/050-v5.16-04-mips-bpf-Add-JIT-workarounds-for-CPU-errata.patch using plaintext: patching file arch/mips/net/bpf_jit_comp.c patching file arch/mips/net/bpf_jit_comp.h patching file arch/mips/net/bpf_jit_comp64.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/050-v5.16-05-mips-bpf-Enable-eBPF-JITs.patch using plaintext: patching file MAINTAINERS patching file arch/mips/Kconfig patching file arch/mips/net/Makefile
Applying /workdir/openwrt/target/linux/generic/backport-5.15/050-v5.16-06-mips-bpf-Remove-old-BPF-JIT-implementations.patch using plaintext: patching file arch/mips/net/bpf_jit.h patching file arch/mips/net/bpf_jit_asm.S
Applying /workdir/openwrt/target/linux/generic/backport-5.15/081-net-next-regmap-allow-to-define-reg_update_bits-for-no-bus.patch using plaintext: patching file drivers/base/regmap/regmap.c patching file include/linux/regmap.h
Applying /workdir/openwrt/target/linux/generic/backport-5.15/201-v5.16-scripts-dtc-Update-to-upstream-version-v1.6.1-19-g0a.patch using plaintext: patching file scripts/dtc/checks.c patching file scripts/dtc/dtc-lexer.l patching file scripts/dtc/dtc.c patching file scripts/dtc/dtc.h patching file scripts/dtc/flattree.c patching file scripts/dtc/libfdt/fdt.c patching file scripts/dtc/libfdt/fdt_rw.c patching file scripts/dtc/libfdt/fdt_strerror.c patching file scripts/dtc/libfdt/libfdt.h patching file scripts/dtc/livetree.c patching file scripts/dtc/treesource.c patching file scripts/dtc/util.h patching file scripts/dtc/version_gen.h patching file scripts/dtc/yamltree.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/300-v5.18-pinctrl-qcom-Return--EINVAL-for-setting-affinity-if-no-IRQ-parent.patch using plaintext: patching file drivers/pinctrl/qcom/pinctrl-msm.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/301-v5.16-soc-qcom-smem-Support-reserved-memory-description.patch using plaintext: patching file drivers/of/platform.c patching file drivers/soc/qcom/smem.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/330-v5.16-01-MIPS-kernel-proc-add-CPU-option-reporting.patch using plaintext: patching file arch/mips/kernel/proc.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/330-v5.16-02-MIPS-Fix-using-smp_processor_id-in-preemptible-in-sh.patch using plaintext: patching file arch/mips/kernel/proc.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/331-v5.19-mtd-spinand-Add-support-for-XTX-XT26G0xA.patch using plaintext: patching file drivers/mtd/nand/spi/Makefile patching file drivers/mtd/nand/spi/core.c patching file drivers/mtd/nand/spi/xtx.c patching file include/linux/mtd/spinand.h
Applying /workdir/openwrt/target/linux/generic/backport-5.15/344-v5.18-01-phy-marvell-phy-mvebu-a3700-comphy-Remove-port-from-.patch using plaintext: patching file drivers/phy/marvell/phy-mvebu-a3700-comphy.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/344-v5.18-02-phy-marvell-phy-mvebu-a3700-comphy-Add-native-kernel.patch using plaintext: patching file drivers/phy/marvell/phy-mvebu-a3700-comphy.c
Applying /workdir/openwrt/target/linux/generic/backport-5.15/345-v5.17-arm64-dts-marvell-armada-37xx-Add-xtal-clock-to-comp.patch using plaintext: patching file arch/arm64/boot/dts/marvell/armada-37xx.dtsi
Applying /workdir/openwrt/target/linux/generic/backport-5.15/346-v5.18-01-Revert-ata-ahci-mvebu-Make-SATA-PHY-optional-for-Arm.patch using plaintext: patching file drivers/ata/ahci.h Hunk #1 FAILED at 240. 1 out of 1 hunk FAILED -- saving rejects to file drivers/ata/ahci.h.rej make[3]: [Makefile:121: /workdir/openwrt/build_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/linux-5.15.120/.prepared] Error 1 patching file drivers/ata/ahci_mvebu.c patching file drivers/ata/libahci_platform.c Patch failed! Please fix /workdir/openwrt/target/linux/generic/backport-5.15/346-v5.18-01-Revert-ata-ahci-mvebu-Make-SATA-PHY-optional-for-Arm.patch! make[3]: Leaving directory '/workdir/openwrt/toolchain/kernel-headers' time: toolchain/kernel-headers/compile#10.39#4.44#12.55 ERROR: toolchain/kernel-headers failed to build. make[2]: Leaving directory '/workdir/openwrt' make[2]: [toolchain/Makefile:97: toolchain/kernel-headers/compile] Error 1 make[1]: Leaving directory '/workdir/openwrt' make[1]: [toolchain/Makefile:93: /workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/stamp/.toolchain_compile] Error 2 make: [/workdir/openwrt/include/toplevel.mk:231: world] Error 2 Error: Process completed with exit code 2.