AnsweredAssumed Answered

busybox build failed by ls1043a's toolchain

Question asked by Hawkin Zhang on Mar 31, 2017
Latest reply on Apr 6, 2017 by Pavel Chubakov

i build busybox by ls1043a's toolchain linora ,but failed, If other steps i need to do.

 

hazhang@nan-lan-x25:/opt/hazhang/fsl_ls1043_arm_sdk2.0$ source environment-setup-aarch64-fsl-linux

hazhang@nan-lan-x25:/opt/hazhang/tools/opensource/busybox-1.25.0$ make CROSS_COMPILE="aarch64-fsl-linux-"
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
scripts/basic/split-include.c: In function ‘main’:
scripts/basic/split-include.c:134:6: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
      fgets(old_line, buffer_size, fp_target);
      ^
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:106:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
   fgets(line, 128, stdin);
   ^
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:354:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
    fgets(line, 128, stdin);
    ^
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/mconf.o
scripts/kconfig/mconf.c: In function ‘show_textbox’:
scripts/kconfig/mconf.c:847:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  write(fd, text, strlen(text));
  ^
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:481:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
  pipe(pipefd);
  ^
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf -s Config.in
#
# using defaults found in .config
#
  SPLIT   include/autoconf.h -> include/config/*
  GEN     include/bbconfigopts.h
  GEN     include/common_bufsiz.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:204: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
In file included from /opt/hazhang/fsl_ls1043_arm_sdk2.0/sysroots/x86_64-fslsdk-linux/usr/lib/aarch64-fsl-linux/gcc/aarch64-fsl-linux/4.9.3/include-fixed/syslimits.h:7:0,
                 from /opt/hazhang/fsl_ls1043_arm_sdk2.0/sysroots/x86_64-fslsdk-linux/usr/lib/aarch64-fsl-linux/gcc/aarch64-fsl-linux/4.9.3/include-fixed/limits.h:34,
                 from include/platform.h:141,
                 from include/libbb.h:13,
                 from include/busybox.h:8,
                 from applets/applets.c:9:
/opt/hazhang/fsl_ls1043_arm_sdk2.0/sysroots/x86_64-fslsdk-linux/usr/lib/aarch64-fsl-linux/gcc/aarch64-fsl-linux/4.9.3/include-fixed/limits.h:168:61: error: no include path in which to search for limits.h
 #include_next <limits.h>  /* recurse down to the real one */
                                                             ^
In file included from include/libbb.h:13:0,
                 from include/busybox.h:8,
                 from applets/applets.c:9:
include/platform.h:152:23: fatal error: byteswap.h: No such file or directory
 # include <byteswap.h>
                       ^
compilation terminated.
make[1]: *** [scripts/Makefile.build:198: applets/applets.o] Error 1
make: *** [Makefile:372: applets_dir] Error 2
hazhang@nan-lan-x25:/opt/hazhang/tools/opensource/busybox-1.25.0$

Outcomes