ubuntu编译openwrt错误

时光鸭 2016-04-19 09:24:56
在ubuntu编译openwrt的时候出现很多打补丁错误,试过改了几个源文件,这几个源文件就打补丁成功了,但是还有很多文件有错,不可能要改这么多吧,有没有其他方法呢。错误时出现在编译alsa-lib-1.1.0.tar.bz2这个包时候才会有的,这个包是系统编译时候下载不了的包,我手动下载的。版本没有错。不知道有没有人遇到过。求解。以下是错误信息。


Applying ./patches/001-link_fix.patch using plaintext:
patching file src/Makefile.in
Hunk #1 succeeded at 421 (offset 3 lines).
patching file src/pcm/scopes/Makefile.in

Applying ./patches/005-fix_include_file_redirect_warnings.patch using plaintext:
patching file src/seq/seq.c
patching file aserver/aserver.c
patching file include/asoundlib-head.h
patching file include/asoundlib.h
patching file include/local.h
patching file src/control/control.c
patching file src/control/control_shm.c
patching file src/pcm/pcm.c
patching file src/pcm/pcm_direct.c
patching file src/pcm/pcm_mmap.c
patching file src/pcm/pcm_share.c
patching file src/pcm/pcm_shm.c
patching file src/shmarea.c

Applying ./patches/005-fix_include_file_redirect_warnings.patch~ using plaintext:
patching file src/seq/seq.c
Hunk #1 FAILED at 777.
1 out of 1 hunk FAILED -- saving rejects to file src/seq/seq.c.rej
patching file aserver/aserver.c
Hunk #1 FAILED at 20.
1 out of 1 hunk FAILED -- saving rejects to file aserver/aserver.c.rej
patching file include/asoundlib-head.h
Hunk #1 FAILED at 35.
1 out of 1 hunk FAILED -- saving rejects to file include/asoundlib-head.h.rej
patching file include/asoundlib.h
Hunk #1 FAILED at 35.
1 out of 1 hunk FAILED -- saving rejects to file include/asoundlib.h.rej
patching file include/local.h
Hunk #1 FAILED at 47.
1 out of 1 hunk FAILED -- saving rejects to file include/local.h.rej
patching file src/control/control.c
Hunk #1 FAILED at 48.
1 out of 1 hunk FAILED -- saving rejects to file src/control/control.c.rej
patching file src/control/control_shm.c
Hunk #1 FAILED at 27.
1 out of 1 hunk FAILED -- saving rejects to file src/control/control_shm.c.rej
patching file src/pcm/pcm.c
Hunk #1 FAILED at 634.
1 out of 1 hunk FAILED -- saving rejects to file src/pcm/pcm.c.rej
patching file src/pcm/pcm_direct.c
Hunk #1 FAILED at 30.
1 out of 1 hunk FAILED -- saving rejects to file src/pcm/pcm_direct.c.rej
patching file src/pcm/pcm_mmap.c
Hunk #1 FAILED at 21.
1 out of 1 hunk FAILED -- saving rejects to file src/pcm/pcm_mmap.c.rej
patching file src/pcm/pcm_share.c
Hunk #1 FAILED at 34.
1 out of 1 hunk FAILED -- saving rejects to file src/pcm/pcm_share.c.rej
patching file src/pcm/pcm_shm.c
Hunk #1 FAILED at 36.
1 out of 1 hunk FAILED -- saving rejects to file src/pcm/pcm_shm.c.rej
patching file src/shmarea.c
Hunk #1 FAILED at 22.
1 out of 1 hunk FAILED -- saving rejects to file src/shmarea.c.rej
Patch failed! Please fix ./patches/005-fix_include_file_redirect_warnings.patch~!
make[3]: *** [/home/xhg/openwrt/build_dir/target-arm_cortex-a7_musl-1.1.14_eabi/alsa-lib-1.1.0/.prepared_88617a09304c4ea5b18efd15a6d978e3] Error 1
make[3]: Leaving directory `/home/xhg/openwrt/feeds/packages/libs/alsa-lib'
make[2]: *** [package/feeds/packages/alsa-lib/compile] Error 2
make[2]: Leaving directory `/home/xhg/openwrt'
make[1]: *** [/home/xhg/openwrt/staging_dir/target-arm_cortex-a7_musl-1.1.14_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/xhg/openwrt'
make: *** [world] 错误 2
...全文
523 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
LubinLew 2016-04-20
  • 打赏
  • 举报
回复
openwrt是一个嵌入式linux系统,官网提供编译好的执行文件下载, 你自己编译的话,交叉编译选项什么的都设置对了吗?

679

社区成员

发帖
与我相关
我的任务
社区描述
智能路由器通常具有独立的操作系统,包括OpenWRT、eCos、VxWorks等,可以由用户自行安装各种应用,实现网络和设备的智能化管理。
linuxpython 技术论坛(原bbs)
社区管理员
  • 智能路由器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧