AnsweredAssumed Answered

Compile Busybox for IMX6DL

Question asked by Martín Carrá on Aug 3, 2017
Latest reply on Aug 11, 2017 by Diego Adrian Cuevas

Hello all,

I've downloaded, installed and built YOCTO to compile busybox 1.24.2

I have ran the following steps:

1.- MACHINE=imx6dlsabresd DISTRO=poky source ./setup-environment base

2.- bitbake meta-toolchain

3.- executed to install the SDK

4.- executed environment-setup-armv7at2hf-neon-fslc-linux-gnueabi from the console in which I am running the make of the busybox.


~/Projects/externals/busybox-1.24.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
In file included from /opt/fslc-wayland/2.2.2/sysroots/x86_64-fslcsdk-linux/usr/lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/include-fixed/syslimits.h:7:0,
from /opt/fslc-wayland/2.2.2/sysroots/x86_64-fslcsdk-linux/usr/lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/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/fslc-wayland/2.2.2/sysroots/x86_64-fslcsdk-linux/usr/lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/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.
scripts/ recipe for target 'applets/applets.o' failed
make[1]: *** [applets/applets.o] Error 1
Makefile:372: recipe for target 'applets_dir' failed
make: *** [applets_dir] Error 2