allenhuang87 发表于 2014-04-03 23:14

为什么openwrt的代码这么多的问题

好不容易下载了整个源码,老是编译出问题,通过查看makefile根本就看不出来是哪里使用这个ld


出错信息
make: 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: Entering directory `/home/openwrt-dreambox/build_dir/target-mips_r2_eglibc-2.8/hostapd-supplicant-full/hostapd-20111103/wpa_supplicant'
make: `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: *** Error 1
make: Leaving directory `/home/openwrt-dreambox/build_dir/target-mips_r2_eglibc-2.8/hostapd-supplicant-full/hostapd-20111103/wpa_supplicant'
make: *** Error 2
make: Leaving directory `/home/openwrt-dreambox/package/hostapd'
make: *** Error 2
make: Leaving directory `/home/openwrt-dreambox'
make: *** Error 2
make: Leaving directory `/home/openwrt-dreambox'
make: *** 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) " $@

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

qianguozheng 发表于 2014-05-07 12:48

all go through well, no any other thing happen, thanks.
页: [1]
查看完整版本: 为什么openwrt的代码这么多的问题