设为首页收藏本站

恩山无线论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
小博无线
查看: 320|回复: 2

编译openwrt14.07出错!急求

[复制链接]
发表于 2018-6-12 17:28 | 显示全部楼层 |阅读模式
我是https://git.openwrt.org/14.07/openwrt.git上git clone的源码,初次编译缺少kernel3.10.49.tar.xz,网上下载了,然后make出现以下错误,急求大神解答

make -j1 V=99
make[1]: Entering directory '/home/cuimh/openwrt'
make[2]: Entering directory '/home/cuimh/openwrt'
+ mkdir -p /home/cuimh/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2
+ cd /home/cuimh/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2
+ mkdir -p bin lib include stamp
mkdir -p /home/cuimh/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/stamp
touch /home/cuimh/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/.prepared
make[3]: Entering directory '/home/cuimh/openwrt/toolchain/gdb'
make[3]: Nothing to be done for 'prepare'.
make[3]: Leaving directory '/home/cuimh/openwrt/toolchain/gdb'
make[3]: Entering directory '/home/cuimh/openwrt/toolchain/gdb'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/home/cuimh/openwrt/toolchain/gdb'
make[3]: Entering directory '/home/cuimh/openwrt/toolchain/gdb'
make[3]: Nothing to be done for 'install'.
make[3]: Leaving directory '/home/cuimh/openwrt/toolchain/gdb'
make[3]: Entering directory '/home/cuimh/openwrt/toolchain/binutils'
make[3]: Nothing to be done for 'prepare'.
make[3]: Leaving directory '/home/cuimh/openwrt/toolchain/binutils'
make[3]: Entering directory '/home/cuimh/openwrt/toolchain/binutils'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/home/cuimh/openwrt/toolchain/binutils'
make[3]: Entering directory '/home/cuimh/openwrt/toolchain/binutils'
make[3]: Nothing to be done for 'install'.
make[3]: Leaving directory '/home/cuimh/openwrt/toolchain/binutils'
make[3]: Entering directory '/home/cuimh/openwrt/toolchain/gcc/minimal'
make[3]: Nothing to be done for 'prepare'.
make[3]: Leaving directory '/home/cuimh/openwrt/toolchain/gcc/minimal'
make[3]: Entering directory '/home/cuimh/openwrt/toolchain/gcc/minimal'
make[3]: Nothing to be done for 'compile'.
make[3]: Leaving directory '/home/cuimh/openwrt/toolchain/gcc/minimal'
make[3]: Entering directory '/home/cuimh/openwrt/toolchain/gcc/minimal'
make[3]: Nothing to be done for 'install'.
make[3]: Leaving directory '/home/cuimh/openwrt/toolchain/gcc/minimal'
make[3]: Entering directory '/home/cuimh/openwrt/toolchain/kernel-headers'
xzcat /home/cuimh/openwrt/dl/linux-3.10.49.tar.xz | /bin/tar -C /home/cuimh/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2 -xf -
rm -rf /home/cuimh/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/linux-3.10.49/patches; mkdir -p /home/cuimh/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/linux-3.10.49/patches
cp -fpR "/home/cuimh/openwrt/target/linux/generic/files"/. /home/cuimh/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/linux-3.10.49/
find /home/cuimh/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/linux-3.10.49/ -name \*.rej -or -name \*.orig | xargs -r rm -f

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/003-11-001-MIPS-Declare-emulate_load_store_microMIPS-as-a-stati.patch using plaintext:
patching file arch/mips/kernel/unaligned.c
Hunk #1 succeeded at 685 (offset 1 line).

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/003-11-002-MIPS-Only-set-cpu_has_mmips-if-SYS_SUPPORTS_MICROMIP.patch using plaintext:
patching file arch/mips/include/asm/cpu-features.h

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/003-11-003-of-pci-Add-of_pci_get_devfn-function.patch using plaintext:
patching file drivers/of/of_pci.c
patching file include/linux/of_pci.h

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/003-11-004-hso-Earlier-catch-of-error-condition.patch using plaintext:
patching file drivers/net/usb/hso.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/003-11-008-hso-Fix-stack-corruption-on-some-architectures.patch using plaintext:
patching file drivers/net/usb/hso.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/003-12-001-mtd-chips-Add-support-for-PMC-SPI-Flash-chips-in-m25.patch using plaintext:
patching file drivers/mtd/devices/m25p80.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/009-mtd_m25p80_add_support_for_esmt_f25l32pa.patch using plaintext:
patching file drivers/mtd/devices/m25p80.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/020-ssb_update.patch using plaintext:
patching file drivers/ssb/Kconfig
patching file drivers/ssb/b43_pci_bridge.c
patching file drivers/ssb/driver_chipcommon_sflash.c
patching file drivers/ssb/driver_gpio.c
patching file drivers/ssb/main.c
patching file drivers/ssb/pci.c
patching file drivers/ssb/pcihost_wrapper.c
patching file drivers/ssb/sprom.c
patching file drivers/ssb/ssb_private.h
patching file include/linux/ssb/ssb.h
patching file include/linux/ssb/ssb_driver_gige.h
patching file include/linux/ssb/ssb_driver_mips.h
patching file include/linux/ssb/ssb_regs.h
patching file arch/mips/bcm47xx/sprom.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/025-bcma_backport.patch using plaintext:
patching file drivers/bcma/Kconfig
patching file drivers/bcma/Makefile
patching file drivers/bcma/bcma_private.h
patching file drivers/bcma/core.c
patching file drivers/bcma/driver_chipcommon.c
patching file drivers/bcma/driver_chipcommon_pmu.c
patching file drivers/bcma/driver_chipcommon_sflash.c
patching file drivers/bcma/driver_gpio.c
patching file drivers/bcma/driver_pci.c
patching file drivers/bcma/driver_pci_host.c
patching file drivers/bcma/driver_pcie2.c
patching file drivers/bcma/host_pci.c
patching file drivers/bcma/main.c
patching file drivers/bcma/scan.c
patching file drivers/bcma/sprom.c
patching file include/linux/bcma/bcma.h
patching file include/linux/bcma/bcma_driver_chipcommon.h
patching file include/linux/bcma/bcma_driver_pci.h
patching file include/linux/bcma/bcma_driver_pcie2.h
patching file drivers/net/wireless/brcm80211/brcmsmac/aiutils.c
patching file drivers/net/wireless/brcm80211/brcmsmac/aiutils.h
patching file drivers/net/wireless/brcm80211/brcmsmac/main.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/040-UBI-R-O-block-driver-on-top-of-UBI-volumes.patch using plaintext:
patching file drivers/mtd/ubi/Kconfig
patching file drivers/mtd/ubi/Makefile
patching file drivers/mtd/ubi/block.c
patching file drivers/mtd/ubi/build.c
patching file drivers/mtd/ubi/cdev.c
patching file drivers/mtd/ubi/ubi.h
patching file include/uapi/mtd/ubi-user.h

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/041-UBI-block-do-not-use-term-attach.patch using plaintext:
patching file drivers/mtd/ubi/block.c
patching file drivers/mtd/ubi/cdev.c
patching file drivers/mtd/ubi/ubi.h

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/042-UBI-block-Mark-init-only-symbol-as-__initdata.patch using plaintext:
patching file drivers/mtd/ubi/block.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/043-UBI-block-Use-u64-for-the-64-bit-dividend.patch using plaintext:
patching file drivers/mtd/ubi/block.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/044-UBI-rename-block-device-ioctls.patch using plaintext:
patching file drivers/mtd/ubi/block.c
patching file drivers/mtd/ubi/cdev.c
patching file include/uapi/mtd/ubi-user.h

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/045-UBI-block-Remove-__initdata-from-ubiblock_param_ops.patch using plaintext:
patching file drivers/mtd/ubi/block.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/046-UBI-avoid-workqueue-format-string-leak.patch using plaintext:
patching file drivers/mtd/ubi/block.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/047-UBI-make-UBI_IOCVOLCRBLK-take-a-parameter-for-future.patch using plaintext:
patching file include/uapi/mtd/ubi-user.h

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/060-hso_devices.patch using plaintext:
patching file drivers/net/usb/hso.c
patching file drivers/usb/storage/unusual_devs.h

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/061-arm_xz_decompressor_build_fix.patch using plaintext:
patching file arch/arm/boot/compressed/decompress.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/062-mips_decompressor_build_fix.patch using plaintext:
patching file arch/mips/boot/compressed/decompress.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/063-arm-fix-fiq-vivt.patch using plaintext:
patching file arch/arm/kernel/fiq.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/065-iio_ad799x_backport_fixes.patch using plaintext:
patching file drivers/staging/iio/adc/ad799x_core.c
patching file drivers/staging/iio/adc/ad799x.h

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/070-net_bridge_backports.patch using plaintext:
patching file net/bridge/br_device.c
patching file net/bridge/br_input.c
patching file net/bridge/br_multicast.c
patching file net/bridge/br_private.h
patching file net/bridge/br_sysfs_br.c
patching file net/bridge/br_mdb.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/100-overlayfs.patch using plaintext:
patching file Documentation/filesystems/Locking
patching file Documentation/filesystems/overlayfs.txt
patching file Documentation/filesystems/vfs.txt
patching file MAINTAINERS
patching file fs/Kconfig
patching file fs/Makefile
patching file fs/ecryptfs/main.c
patching file fs/internal.h
patching file fs/namei.c
patching file fs/namespace.c
patching file fs/open.c
patching file fs/overlayfs/Kconfig
patching file fs/overlayfs/Makefile
patching file fs/overlayfs/copy_up.c
patching file fs/overlayfs/dir.c
patching file fs/overlayfs/inode.c
patching file fs/overlayfs/overlayfs.h
patching file fs/overlayfs/readdir.c
patching file fs/overlayfs/super.c
patching file fs/splice.c
patching file include/linux/fs.h
patching file include/linux/mount.h

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/102-ehci_hcd_ignore_oc.patch using plaintext:
patching file drivers/usb/host/ehci-hcd.c
patching file drivers/usb/host/ehci-hub.c
patching file drivers/usb/host/ehci-platform.c
patching file drivers/usb/host/ehci.h
patching file include/linux/usb/ehci_pdriver.h

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/120-bridge_allow_receiption_on_disabled_port.patch using plaintext:
patching file net/bridge/br_input.c

Applying /home/cuimh/openwrt/target/linux/generic/patches-3.10/130-mips_remove_plat_dma_functions.patch using plaintext:
patching file arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h
Hunk #1 FAILED at 46.
1 out of 1 hunk FAILED -- saving rejects to file arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h.rej
patching file arch/mips/include/asm/mach-generic/dma-coherence.h
patching file arch/mips/include/asm/mach-ip27/dma-coherence.h
patching file arch/mips/include/asm/mach-ip32/dma-coherence.h
patching file arch/mips/include/asm/mach-jazz/dma-coherence.h
patching file arch/mips/include/asm/mach-loongson/dma-coherence.h
patching file arch/mips/include/asm/mach-powertv/dma-coherence.h
patching file arch/mips/mm/dma-default.c
Patch failed!  Please fix /home/cuimh/openwrt/target/linux/generic/patches-3.10/130-mips_remove_plat_dma_functions.patch!
Makefile:108: recipe for target '/home/cuimh/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/linux-3.10.49/.prepared' failed
make[3]: *** [/home/cuimh/openwrt/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/linux-3.10.49/.prepared] Error 1
make[3]: Leaving directory '/home/cuimh/openwrt/toolchain/kernel-headers'
toolchain/Makefile:86: recipe for target 'toolchain/kernel-headers/prepare' failed
make[2]: *** [toolchain/kernel-headers/prepare] Error 2
make[2]: Leaving directory '/home/cuimh/openwrt'
toolchain/Makefile:85: recipe for target '/home/cuimh/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install' failed
make[1]: *** [/home/cuimh/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/stamp/.toolchain_install] Error 2
make[1]: Leaving directory '/home/cuimh/openwrt'
/home/cuimh/openwrt/include/toplevel.mk:171: recipe for target 'world' failed
make: *** [world] Error 2
我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-6-12 18:40 | 显示全部楼层
patching file arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h
Hunk #1 FAILED at 46.
Please fix /home/cuimh/openwrt/target/linux/generic/patches-3.10/130-mips_remove_plat_dma_functions.patch!

对照dma-coherence.h文件内容修改130-mips_remove_plat_dma_functions.patch这个
我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-6-12 21:37 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|Archiver|恩山无线论坛 ( 苏ICP备05084872号-1 )  

GMT+8, 2018-8-19 05:39

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表