-bin/sh ./hello not found,程序运行不了,库文件不对应

本文记录了作者在ARM平台使用文件系统运行Hello World程序遇到的问题及解决过程。问题表现为程序未找到,通过检查内核配置及添加静态链接选项最终解决了问题。

我现在挂上文件系统了。
编了个helloworld小程序想测试一下:
hello.c,很简单一句话:printf("hello world/n");
但是当我用armgcc编译好,放到文件系统上时,执行 ./hello,提示:
-bin/sh ./hello not found

这是什么原因?
我在内核配置里面已经选上 ELF格式支持,但是a.out 和MISC binaries没有选。现在晚上手上没板也试不了。
大侠们觉得是哪里的问题呢?
会是busybox问题么?但是我拿到3星的s3c2440下试确实没有问题的,猜测应该是内核问题?

 

后来想到编译的时候没有加静态选项,可能是缺少库文件。

马上加上库文件,果然好了。

 

拿lijay大虾的话总结:

 

一就是有可能/lib下面没有C库 就是没有glibc或者uclibc的动态库
二就是你板子上的C库和编译hello链接时用的C库不一样, 差别太大.

mkdir: cannot create directory ‘Result’: File exists make libc make[1]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/release/src' make[2]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[2]: mipsel-linux-gcc: Command not found find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec rm -f {} \; make -C test clean make[3]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test' make -C args clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/args' rm -f *.[oa] *~ core arg_test make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/args' make -C assert clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/assert' rm -f *.[oa] *~ core assert make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/assert' make -C ctype clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/ctype' rm -f *.[oa] *~ core ctype ctype_run make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/ctype' make -C ldso clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/ldso' rm -f *.o *.so dltest2 dltest core libhowdy.so dlttest dlttest2 make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/ldso' make -C pwd_grp clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/pwd_grp' rm -f *.[oa] *~ core test_pwd test_pwd_glibc test_grp test_grp_glibc test_pwd_diff test_grp_diff *.out make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/pwd_grp' make -C signal clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/signal' rm -f *.[oa] *~ core signal signal_glibc sigchld sigchld_glibc make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/signal' make -C silly clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/silly' rm -f *.[oa] *~ core hello_source hello hello_glibc tiny make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/silly' make -C stdlib clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/stdlib' rm -f *.[oa] *~ core teststrtol teststrtol_glibc teststrtol_diff qsort qsort_glibc qsort_diff teston_exit teston_exit_glibc teston_exit_diff testatexit testatexit_glibc testatexit_diff ptytest *.out make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/stdlib' make -C string clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/string' rm -f *.[oa] *~ core string string_glibc testcopy testcopy_glibc testcopy.gnu.out testcopy.out make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/string' make -C unistd clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/unistd' rm -f *.[oa] *~ core fork fork_glibc vfork vfork_glibc getcwd getopt getopt_long preadwrite make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/unistd' make -C crypt clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/crypt' rm -f *.[oa] *~ core crypt_glibc crypt crypt_glibc.out crypt.out md5c-test make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test/crypt' rm -f *.[oa] *~ core make[3]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/test' make -C ldso clean make[3]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/ldso' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[3]: mipsel-linux-gcc: Command not found set -e ; for d in ldso libdl util ; do make -C $d clean ; done make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/ldso/ldso' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found ls: cannot access '/*.S': No such file or directory ls: cannot access '/*.S': No such file or directory ls: cannot access '/*.S': No such file or directory rm -f -f ld-uClibc.so.0* ldso.o ld-uClibc-0.9.19.so* core *.o *.a *.s *.i ldso.h *~ make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/ldso/ldso' make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/ldso/libdl' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f -f .depend libdl.so* libdl-0.9.19.so core *.o *.a *.s *.i tmp_make foo *~ make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/ldso/libdl' make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/ldso/util' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f elf_header ldd *.o *~ core ./elf.h *.target make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/ldso/util' find . -name '*~' | xargs rm -f make[3]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/ldso' make -C libc/misc/internals clean make[3]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/misc/internals' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[3]: mipsel-linux-gcc: Command not found rm -f *.[oa] interp.c *~ core make[3]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/misc/internals' make -C libc/misc/wchar clean make[3]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/misc/wchar' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[3]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core iconv.target make[3]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/misc/wchar' make -C libc/unistd clean make[3]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/unistd' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[3]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core gen_sysconf sysconf_*.c make[3]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/unistd' make -C libc/sysdeps/linux/common clean make[3]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/common' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[3]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core crt[in].* *.S make[3]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/common' make -C extra/gcc-uClibc clean make[3]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/extra/gcc-uClibc' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[3]: mipsel-linux-gcc: Command not found /bin/sh: 1: mipsel-linux-gcc: not found rm -f gcc-uClibc.h *-uclibc-gcc *-uclibc-ld core make[3]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/extra/gcc-uClibc' make -C extra/locale clean make[3]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/extra/locale' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[3]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core rm -f gen_wc8bit gen_wctype gen_locale gen_ldc gen_collate rm -f c8tables.h wctables.h locale_tables.h lt_defines.h locale_collate.h rm -f gen_mmap locale.mmap lmmtolso rm -f locale_data.c locale_data.o uClibc_locale_data.h make[3]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/extra/locale' make[3]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[3]: mipsel-linux-gcc: Command not found make -C arm clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/arm' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core rm -f bits/sysnum.h make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/arm' make -C common clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/common' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core crt[in].* *.S make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/common' make -C cris clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/cris' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/cris' make -C h8300 clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/h8300' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/h8300' make -C i386 clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/i386' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core rm -f bits/sysnum.h make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/i386' make -C m68k clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/m68k' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core rm -f bits/sysnum.h make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/m68k' make -C mips clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/mips' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core rm -f bits/sysnum.h rm -f ../../../..//include/sgidefs.h make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/mips' make -C powerpc clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/powerpc' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core rm -f bits/sysnum.h make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/powerpc' make -C sh clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/sh' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core rm -f bits/sysnum.h make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/sh' make -C sparc clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/sparc' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core rm -f bits/sysnum.h make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/sparc' make -C v850 clean make[4]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/v850' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[4]: mipsel-linux-gcc: Command not found rm -f *.[oa] *~ core rm -f bits/sysnum.h make[4]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux/v850' make[3]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc/libc/sysdeps/linux' make[2]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc' make[2]: Entering directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc' /bin/sh: 1: mipsel-linux-gcc: not found /bin/sh: 1: mipsel-linux-gcc: not found make[2]: mipsel-linux-gcc: Command not found rm -rf include/bits mkdir -p include/bits can't find file extra/Configs/Config. make[2]: *** [include/bits/uClibc_config.h] Error 1 Makefile:114: recipe for target 'include/bits/uClibc_config.h' failed make[2]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/tools-src/uClibc' make[1]: *** [libc] Error 2 Makefile:141: recipe for target 'libc' failed make[1]: Leaving directory '/home/book/openwrt/tomato-source-code/tomato/release/src' make: *** [all] Error 2 Makefile:24: recipe for target 'all' failed cp: cannot stat 'release/image/code.bin': No such file or directory
最新发布
12-13
make package/helloworld/compile V=s Collecting package info: done make[1]: Entering directory '/home/dml/openwrt/openwrt-15.05.1' make[2]: Entering directory '/home/dml/openwrt/openwrt-15.05.1/package/libs/toolchain' if [ -f /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install if [ -f /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install if [ -f /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libpthread" >> /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install make[2]: Leaving directory '/home/dml/openwrt/openwrt-15.05.1/package/libs/toolchain' make[2]: Entering directory '/home/dml/openwrt/openwrt-15.05.1/package/helloworld' mkdir -p /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0 cp -fpR -u ./src/* /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ touch /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/.prepared_b743478132aa7182b38d1864e309ace8 rm -f /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/stamp/._installed (cd /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/./; if [ -x ./configure ]; then find /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ -name config.guess | xargs -r chmod u+w; find /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ -name config.guess | xargs -r -n1 cp --remove-destination /home/dml/openwrt/openwrt-15.05.1/scripts/config.guess; find /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ -name config.sub | xargs -r chmod u+w; find /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ -name config.sub | xargs -r -n1 cp --remove-destination /home/dml/openwrt/openwrt-15.05.1/scripts/config.sub; AR="arm-openwrt-linux-uclibcgnueabi-gcc-ar" AS="arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard" LD=arm-openwrt-linux-uclibcgnueabi-ld NM="arm-openwrt-linux-uclibcgnueabi-gcc-nm" CC="arm-openwrt-linux-uclibcgnueabi-gcc" GCC="arm-openwrt-linux-uclibcgnueabi-gcc" CXX="arm-openwrt-linux-uclibcgnueabi-g++" RANLIB="arm-openwrt-linux-uclibcgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-uclibcgnueabi-strip OBJCOPY=arm-openwrt-linux-uclibcgnueabi-objcopy OBJDUMP=arm-openwrt-linux-uclibcgnueabi-objdump SIZE=arm-openwrt-linux-uclibcgnueabi-size CFLAGS="-Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard " CXXFLAGS="-Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard " CPPFLAGS="-I/home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include -I/home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/include -I/home/dml/openwrt/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/include -I/home/dml/openwrt/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/include " LDFLAGS="-L/home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/lib -L/home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/lib -L/home/dml/openwrt/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/home/dml/openwrt/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib " ./configure --target=arm-openwrt-linux --host=arm-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; ) rm -f /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/.configured_* touch /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/.configured_yyy CFLAGS="-Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -I/home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include -I/home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/include -I/home/dml/openwrt/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/include -I/home/dml/openwrt/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/include " CXXFLAGS="-Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -I/home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include -I/home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/include -I/home/dml/openwrt/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/include -I/home/dml/openwrt/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/include " LDFLAGS="-L/home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/lib -L/home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/lib -L/home/dml/openwrt/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/home/dml/openwrt/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib " make -j1 -C /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/. AR="arm-openwrt-linux-uclibcgnueabi-gcc-ar" AS="arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard" LD=arm-openwrt-linux-uclibcgnueabi-ld NM="arm-openwrt-linux-uclibcgnueabi-gcc-nm" CC="arm-openwrt-linux-uclibcgnueabi-gcc" GCC="arm-openwrt-linux-uclibcgnueabi-gcc" CXX="arm-openwrt-linux-uclibcgnueabi-g++" RANLIB="arm-openwrt-linux-uclibcgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-uclibcgnueabi-strip OBJCOPY=arm-openwrt-linux-uclibcgnueabi-objcopy OBJDUMP=arm-openwrt-linux-uclibcgnueabi-objdump SIZE=arm-openwrt-linux-uclibcgnueabi-size CROSS="arm-openwrt-linux-uclibcgnueabi-" ARCH="arm" ; make[3]: Entering directory '/home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0' arm-openwrt-linux-uclibcgnueabi-gcc -Wall -Wextra -O2 -c helloworld.c -o helloworld.o cc1: note: someone does not honour COPTS correctly, passed 0 times arm-openwrt-linux-uclibcgnueabi-gcc -Wall -Wextra -O2 helloworld.o -o helloworld make[3]: Leaving directory '/home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0' touch /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi//.built mkdir -p /home/dml/openwrt/openwrt-15.05.1/bin/realview/packages /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ipkg-realview/helloworld/CONTROL /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo install -d -m0755 /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ipkg-realview/helloworld/etc/init.d/ install -m0644 ./filesystem/etc/init.d/helloworld.init /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ipkg-realview/helloworld/etc/init.d/ install -d -m0755 /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ipkg-realview/helloworld/usr/bin install -m0755 /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/helloworld /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ipkg-realview/helloworld/usr/bin find /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ipkg-realview/helloworld -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf export CROSS="arm-openwrt-linux-uclibcgnueabi-" NO_RENAME=1 ; NM="arm-openwrt-linux-uclibcgnueabi-nm" STRIP="/home/dml/openwrt/openwrt-15.05.1/staging_dir/host/bin/sstrip" STRIP_KMOD="/home/dml/openwrt/openwrt-15.05.1/scripts/strip-kmod.sh" PATCHELF="/home/dml/openwrt/openwrt-15.05.1/staging_dir/host/bin/patchelf" /home/dml/openwrt/openwrt-15.05.1/scripts/rstrip.sh /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ipkg-realview/helloworld rstrip.sh: /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ipkg-realview/helloworld/usr/bin/helloworld: executable (cd /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ipkg-realview/helloworld/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm; ) install -d -m0755 /home/dml/openwrt/openwrt-15.05.1/bin/realview/packages/base /home/dml/openwrt/openwrt-15.05.1/scripts/ipkg-build -c -o 0 -g 0 /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ipkg-realview/helloworld /home/dml/openwrt/openwrt-15.05.1/bin/realview/packages/base Packaged contents of /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/ipkg-realview/helloworld into /home/dml/openwrt/openwrt-15.05.1/bin/realview/packages/base/helloworld_1.0_realview.ipk rm -rf /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-helloworld mkdir -p /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/stamp /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-helloworld install -d -m0755 /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-helloworld/etc/init.d/ install -m0644 ./filesystem/etc/init.d/helloworld.init /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-helloworld/etc/init.d/ install -d -m0755 /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-helloworld/usr/bin install -m0755 /home/dml/openwrt/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/helloworld-1.0/helloworld /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-helloworld/usr/bin SHELL= /home/dml/openwrt/openwrt-15.05.1/staging_dir/host/bin/flock /home/dml/openwrt/openwrt-15.05.1/tmp/.root-copy.flock -c 'cp -fpR /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-helloworld/. /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/' rm -rf /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/tmp-helloworld touch /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/root-realview/stamp/.helloworld_installed if [ -f /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/helloworld.default.install.clean ]; then rm -f /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/helloworld.default.install /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/helloworld.default.install.clean; fi; echo "helloworld" >> /home/dml/openwrt/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/helloworld.default.install make[2]: Leaving directory '/home/dml/openwrt/openwrt-15.05.1/package/helloworld' make[1]: Leaving directory '/home/dml/openwrt/openwrt-15.05.1'
08-13
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值