【问题标题】:How can i make the busybox1.23.2 Compile success?如何让busybox1.23.2编译成功?
【发布时间】:2017-03-10 06:19:25
【问题描述】:

包:busybox 版本:1.23.2 当我制作busybox时,它会产生意想不到的结果。 我使用的crosschaintool是ARM/uClinux Toolchain arm-2010q1-189-arm- uclinuxeabi-i686-pc-linux-gnu,但是我不能做busybox,像这样:

root@ubuntu:/busybox/busybox-1.23.2# make
  SPLIT   include/autoconf.h -> include/config/*
  GEN     include/bbconfigopts.h
  HOSTCC  applets/usage
applets/usage.c: In function ‘main’:
applets/usage.c:52:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
   write(STDOUT_FILENO, usage_array[i].usage, strlen(usage_array[i].usage) + 1);
   ^
  GEN     include/usage_compressed.h
  HOSTCC  applets/applet_tables
applets/applet_tables.c: In function ‘main’:
applets/applet_tables.c:161:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
    fgets(line_old, sizeof(line_old), fp);
    ^
  GEN     include/applet_tables.h
  CC      applets/applets.o
  LD      applets/built-in.o
  HOSTCC  applets/usage_pod
applets/usage_pod.c: In function ‘main’:
applets/usage_pod.c:74:3: warning: format not a string literal and no format arguments [-Wformat-security]
   printf(usage_array[i].aname);
   ^
  CC      libbb/appletlib.o
  CC      libbb/vfork_daemon_rexec.o
  AR      libbb/lib.a
  CC      shell/hush.o
shell/hush.c: In function 'builtin_source':
shell/hush.c:8901: warning: 'sv.sv_g_malloced' may be used uninitialized in this function
shell/hush.c:8901: warning: 'sv.sv_g_argc' may be used uninitialized in this function
shell/hush.c:8901: warning: 'sv.sv_g_argv' may be used uninitialized in this function
shell/hush.c:8901: warning: 'sv.sv_argv0' may be used uninitialized in this function
  AR      shell/lib.a
  LINK    busybox_unstripped
Trying libraries: crypt m
 Library crypt is not needed, excluding it
 Library m is not needed, excluding it
Final link with: <none>
arm-uclinuxeabi-strip:busybox_unstripped: File format not recognized
Makefile:723: recipe for target 'busybox' failed
make: *** [busybox] Error 1

我该怎么办?是busybox不能使用ARM/uClinux工具链吗?我该怎么办?如果您能给我们一些建议和一些指导,我们将不胜感激,谢谢!

【问题讨论】:

  • answer 是否适用于您的问题?

标签: linux arm busybox


【解决方案1】:

LINK busybox_unstripped 尝试库:crypt m Library crypt 不需要,不包括库 m 不需要,不包括 最终链接:arm-uclinuxeabi-strip:busybox_unstripped: 文件 格式无法识别 Makefile:723:目标“busybox”的配方失败 make: *** [busybox] 错误 1

由于整个编译日志只有一小部分,一些建议是:

1) 请从头开始检查编译日志是否有其他重要的警告或错误。

2)busybox_unstripped 文件是否生成?检查makefile的依赖,看看是否所有的依赖文件都生成成功。从日志中排除了一些库,因此您可能必须检查busybox 配置文件。

3) 如果生成了busybox_unstripped 文件,检查makefile 关于“Final link with:”的链接语法。为使跨工具链链接成功,请确保链接命令正确。

祝你好运!

【讨论】:

    猜你喜欢
    • 2020-01-22
    • 1970-01-01
    • 1970-01-01
    • 2013-04-25
    • 1970-01-01
    • 2012-03-16
    • 2017-01-11
    • 2018-03-25
    • 1970-01-01
    相关资源
    最近更新 更多