找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 18672|回复: 16

openwrt编译出错,求助!!1

[复制链接]
openwrt编译出错,求助!!
这个是为什么??
ips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80060000 -DCONFIG_BOARD_GENERIC -c -o printf.o printf.c
mips-openwrt-linux-musl-gcc -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -ffunction-sections -pipe -mlong-calls -fno-common -ffreestanding -fhonour-copts -mabi=32 -march=mips32r2 -Wa,-32 -Wa,-march=mips32r2 -Wa,-mips32r2 -Wa,--trap -D_LZMA_PROB32 -DLZMA_WRAPPER=1 -DLOADADDR=0x80060000 -DCONFIG_BOARD_GENERIC -c -o LzmaDecode.o LzmaDecode.c
mips-openwrt-linux-musl-ld -r -b binary --oformat elf32-tradbigmips -T lzma-data.lds -o data.o /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/vmlinux.bin.lzma
mips-openwrt-linux-musl-ld -static --gc-sections -no-warn-mismatch -e startup -T loader.lds -Ttext 0x80a00000 -o loader head.o loader.o cache.o board.o printf.o LzmaDecode.o data.o
mips-openwrt-linux-musl-objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -R .MIPS.abiflags -S loader loader.bin
mips-openwrt-linux-musl-ld -r -b binary --oformat elf32-tradbigmips -o loader2.o loader.bin
mips-openwrt-linux-musl-ld -e startup -T loader2.lds -Ttext 0x80060000 -o loader.elf loader2.o
make[7]: Leaving directory '/home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/lzma-loader'
cp -fpR /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/lzma-loader/loader.elf /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/loader-generic.elf
make[6]: Leaving directory '/home/openwrt/openwrt/target/linux/ar71xx/image/lzma-loader'
cp -fpR /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/loader-generic.elf /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/loader-generic.elf
cp: '/home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/loader-generic.elf' and '/home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/loader-generic.elf' are the same file
Makefile:2642: recipe for target 'image_prepare' failed
make[5]: [image_prepare] Error 1 (ignored)
# Use symbolic permissions to avoid clobbering SUID/SGID/sticky bits
find /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx -type f -not -perm /0100 -not -name 'ssh_host*' -not -name 'shadow' -print0 | xargs -r -0 chmod u+rw,g+r,o+r
find /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx -type f -perm /0100 -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
find /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx -type d -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
install -d -m0755 /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx/tmp /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx/overlay
chmod 1777 /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/root-ar71xx/tmp
cp /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/vmlinux.elf /home/openwrt/openwrt/bin/ar71xx/openwrt-asus/hugo-1.0-ar71xx-generic-vmlinux.elf
cp: cannot create regular file '/home/openwrt/openwrt/bin/ar71xx/openwrt-asus/hugo-1.0-ar71xx-generic-vmlinux.elf': No such file or directory
Makefile:2642: recipe for target 'kernel_prepare' failed
make[5]: *** [kernel_prepare] Error 1
make[5]: Leaving directory '/home/openwrt/openwrt/target/linux/ar71xx/image'
Makefile:24: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/openwrt/openwrt/target/linux/ar71xx'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/openwrt/openwrt/target/linux'
target/Makefile:21: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/home/openwrt/openwrt'
target/Makefile:17: recipe for target '/home/openwrt/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.target_install' failed
make[1]: *** [/home/openwrt/openwrt/staging_dir/target-mips_34kc_musl-1.1.14/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/openwrt/openwrt'
/home/openwrt/openwrt/include/toplevel.mk:192: recipe for target 'world' failed
make: *** [world] Error 2


我的恩山、我的无线 The best wifi forum is right here.
来自手机 | 显示全部楼层
我只要帮顶下。刚好我也正在编译这个ar系列的。看出错不。对了。你这个是-j1带的错误?我是看不明白咯。吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

之前编译过一次吗?如果是的话,make clean后再make V=s -j1试试呢~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
cp /home/openwrt/openwrt/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/vmlinux.elf /home/openwrt/openwrt/bin/ar71xx/openwrt-asus/hugo-1.0-ar71xx-generic-vmlinux.elf cp: cannot create regular file '/home/openwrt/openwrt/bin/ar71xx/openwrt-asus/hugo-1.0-ar71xx-generic-vmlinux.elf': No such file or directory
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我又来了,我原来编译过7620的固件,编译ar7xxx居然是一次成功,我都木有make clean啊。
默认编译的固件真多啊,也大啊,1.69个g啊。我慢慢丢百度盘去。功能和7620的完全一致啊 。
http://pan.baidu.com/s/1pKkh1Mz#path=%252F7620-7620a
固件默认web地址为192.168.1.1:8088
       默认密码:admin
       默认开启ssh ,端口22
       默认启动wifidog,可以自行随意关闭和设置参数。


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
我知道了,我加了一个不该用的符号“/”
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

解决了吗   求救
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

解决了嘛?求教
make[2]: Entering directory '/home/cuimh/openwrt/scripts/config'
make[2]: Leaving directory '/home/cuimh/openwrt/scripts/config'
bash: gtime: command not found
target/Makefile:23: recipe for target 'target/linux/prereq' failed
make[3]: *** [target/linux/prereq] Error 127
target/Makefile:17: recipe for target '/home/cuimh/openwrt/staging_dir/target-mips-linux-gcc_musl/stamp/.target_prereq' failed
make[2]: *** [/home/cuimh/openwrt/staging_dir/target-mips-linux-gcc_musl/stamp/.target_prereq] Error 2
/home/cuimh/openwrt/include/toplevel.mk:196: recipe for target 'prereq' failed
make[1]: *** [prereq] Error 2
/home/cuimh/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

你编译过一次,尝试先make dirclean 然后make defconfig或make menuconfig。

如果make menuconfig和defconfig不行,在尝试“make dirclean”或“make tools / clean”?

点评

这个问题这么久了,我肯定解决了啦  详情 回复 发表于 2018-11-9 10:44
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
xftv5608 发表于 2018-11-6 22:02
你编译过一次,尝试先make dirclean 然后make defconfig或make menuconfig。

如果make menuconfig和defc ...

这个问题这么久了,我肯定解决了啦

点评

请问是哪里出现问题了呢?怎么解决的?  详情 回复 发表于 2018-11-29 04:11
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

429632952 发表于 2018-11-9 10:44
这个问题这么久了,我肯定解决了啦

请问是哪里出现问题了呢?怎么解决的?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
我make clean后重新编译就正常了,make V=99

点评

有详细的办法吗?我make clean 后执行make v=99 报错和之前的一模一样,你具体是怎么操作的啊  详情 回复 发表于 2021-2-25 13:44
make clean 之后重新make V=99是不是要等很久 跟之前第一次编译一样?  详情 回复 发表于 2019-11-13 11:40
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

429632952 发表于 2018-12-2 15:20
我make clean后重新编译就正常了,make V=99

make clean 之后重新make V=99是不是要等很久  跟之前第一次编译一样?

点评

首次编译要先编toolchain,会很久。make clean并不清 toolchain,所以不会很久,我这里是i5的vm,约15分钟。  详情 回复 发表于 2019-11-13 12:17
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

zpx694063351 发表于 2019-11-13 11:40
make clean 之后重新make V=99是不是要等很久  跟之前第一次编译一样?

首次编译要先编toolchain,会很久。make clean并不清 toolchain,所以不会很久,我这里是i5的vm,约15分钟。

点评

是不是刷不一样的固件要clean一下。我clean了怎么没把之前编译的X86固件去掉。  详情 回复 发表于 2019-11-13 15:08
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

jacquetcc 发表于 2019-11-13 12:17
首次编译要先编toolchain,会很久。make clean并不清 toolchain,所以不会很久,我这里是i5的vm,约15分 ...

是不是刷不一样的固件要clean一下。我clean了怎么没把之前编译的X86固件去掉。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 09:53

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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