免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2484 | 回复: 1
打印 上一主题 下一主题

[学习] 为什么openwrt的代码这么多的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-04-03 23:14 |只看该作者 |倒序浏览
好不容易下载了整个源码,老是编译出问题,通过查看makefile根本就看不出来是哪里使用这个ld


出错信息
make[3]: Entering directory `/home/openwrt-dreambox/package/hostapd'
CFLAGS="-I/home/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/usr/include/libnl-tiny -I/home/openwrt-dreambox/build_dir/target-mips_r2_eglibc-2.8/hostapd-supplicant-full/hostapd-20111103/src/crypto -I/home/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/usr/include -I/home/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/include -I/home/openwrt-dreambox/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_eglibc-2.8/usr/include -I/home/openwrt-dreambox/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_eglibc-2.8/include -I/home/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/usr/include/madwifi -I/home/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/usr/include/mac80211 -DCONFIG_LIBNL20 -D_GNU_SOURCE -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -ffunction-sections -fdata-sections" make -C /home/openwrt-dreambox/build_dir/target-mips_r2_eglibc-2.8/hostapd-supplicant-full/hostapd-20111103/wpa_supplicant AR=mips-openwrt-linux-gnu-ar AS="mips-openwrt-linux-gnu-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -ffunction-sections -fdata-sections" LD=mips-openwrt-linux-gnu-ld NM=mips-openwrt-linux-gnu-nm CC="mips-openwrt-linux-gnu-gcc" GCC="mips-openwrt-linux-gnu-gcc" CXX="mips-openwrt-linux-gnu-g++" RANLIB=mips-openwrt-linux-gnu-ranlib STRIP=mips-openwrt-linux-gnu-strip OBJCOPY=mips-openwrt-linux-gnu-objcopy OBJDUMP=mips-openwrt-linux-gnu-objdump SIZE=mips-openwrt-linux-gnu-size CONFIG_DRIVER_NL80211=y CONFIG_DRIVER_MADWIFI= CONFIG_DRIVER_HOSTAP= CONFIG_IEEE80211N=y CONFIG_IEEE80211W=y CONFIG_DRIVER_WEXT=  CONFIG_DRIVER_ROBOSWITCH= LIBS="-L/home/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/usr/lib -L/home/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/lib -L/home/openwrt-dreambox/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_eglibc-2.8/usr/lib -L/home/openwrt-dreambox/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_eglibc-2.8/lib -Wl,--gc-sections -lm -lnl-tiny"  wpa_cli wpa_supplicant
make[4]: Entering directory `/home/openwrt-dreambox/build_dir/target-mips_r2_eglibc-2.8/hostapd-supplicant-full/hostapd-20111103/wpa_supplicant'
make[4]: `wpa_cli' is up to date.
1111111111111111111111111111111111111
/home/openwrt-dreambox/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_eglibc-2.8/usr/lib/gcc/mips-openwrt-linux-gnu/4.3.3/../../../../mips-openwrt-linux-gnu/bin/ld: can not make stub section: File format not recognized
/home/openwrt-dreambox/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_eglibc-2.8/usr/lib/gcc/mips-openwrt-linux-gnu/4.3.3/../../../../mips-openwrt-linux-gnu/bin/ld: failed to set dynamic section sizes: File format not recognized
collect2: ld returned 1 exit status
make[4]: *** [wpa_supplicant] Error 1
make[4]: Leaving directory `/home/openwrt-dreambox/build_dir/target-mips_r2_eglibc-2.8/hostapd-supplicant-full/hostapd-20111103/wpa_supplicant'
make[3]: *** [/home/openwrt-dreambox/build_dir/target-mips_r2_eglibc-2.8/hostapd-supplicant-full/hostapd-20111103/.built] Error 2
make[3]: Leaving directory `/home/openwrt-dreambox/package/hostapd'
make[2]: *** [package/hostapd/compile] Error 2
make[2]: Leaving directory `/home/openwrt-dreambox'
make[1]: *** [/home/openwrt-dreambox/staging_dir/target-mips_r2_eglibc-2.8/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/openwrt-dreambox'
make: *** [world] Error 2



makefile文件如下:
wpa_supplicant_multi.a: .config $(BCHECK) $(OBJS) $(EXTRA_progs)
        $(Q)$(CC) -c -o wpa_supplicant_multi.o -Dmain=wpa_supplicant_main $(CFLAGS) main.c
        @$(E) "  CC " $<
        @rm -f $@
        @$(AR) cr $@ wpa_supplicant_multi.o $(OBJS)

wpa_supplicant: .config $(BCHECK) $(OBJS) $(EXTRA_progs)
        @echo "1111111111111111111111111111111111111"
             $(Q)$(LDO) $(LDFLAGS) -o wpa_supplicant $(OBJS) $(LIBS) $(EXTRALIBS)
        @$(E) "  $(LD) " $@


有编译过的兄弟和大师麻烦帮忙解答解答!不胜感激

论坛徽章:
7
IT运维版块每日发帖之星
日期:2016-05-27 06:20:00IT运维版块每日发帖之星
日期:2016-06-09 06:20:00操作系统版块每日发帖之星
日期:2016-06-12 06:20:00程序设计版块每日发帖之星
日期:2016-06-12 06:20:00操作系统版块每日发帖之星
日期:2016-06-13 06:20:00IT运维版块每日发帖之星
日期:2016-06-17 06:20:002015-2016NBA季后赛纪念章
日期:2016-06-28 17:42:27
2 [报告]
发表于 2014-05-07 12:48 |只看该作者
all go through well, no any other thing happen, thanks.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP