[Miscellaneous Android Development] FSadino:
Hi [MENTION=6842057]nathanchance[/MENTION],

Iḿ getting this error while trying to use linaro arm toolchain to build my custom.

[ 0% 164/20303] -e Prepare config for busybox binary
FAILED: /bin/bash -c "(rm -rf /home/fsadino/android/Omnirom_7.x_FSadino/out/target/product/find7op/obj/busybox/full ) && (rm -f \$(find /home/fsadino/android/Omnirom_7.x_FSadino/out/target/product/find7op/obj/EXECUTABLES/busybox_intermediates -name \"*.o\") ) && (mkdir -p /home/fsadino/android/Omnirom_7.x_FSadino/out/target/product/find7op/obj/busybox/full ) && (cat external/busybox/busybox-full.config > /home/fsadino/android/Omnirom_7.x_FSadino/out/target/product/find7op/obj/busybox/full/.config && echo \"CONFIG_CROSS_COMPILER_PREFIX=\\\"/home/fsadino/android/Omnirom_7.x_FSadino/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-\\\"\" >> /home/fsadino/android/Omnirom_7.x_FSadino/out/target/product/find7op/obj/busybox/full/.config ) && (make -C external/busybox prepare O=/home/fsadino/android/Omnirom_7.x_FSadino/out/target/product/find7op/obj/busybox/full )"
make: Entering directory '/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox'
[COLOR="Red"]/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/scripts/gcc-version.sh: linha 11: /home/fsadino/android/Omnirom_7.x_FSadino/home/fsadino/android/Omnirom_7.x_FSadino/prebuilts/gcc/linux-x86/arm/arm-linaro-linux-androideabi/bin:/home/fsadino/bin:/home/fsadino/bin:/home/fsadino/bin:/home/fsadino/platform-tools:/home/fsadino/bin:/home/fsadino/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bingcc: Ficheiro ou directoria inexistente[/COLOR]
Using /home/fsadino/android/Omnirom_7.x_FSadino/external/busybox as source for busybox
GEN /home/fsadino/android/Omnirom_7.x_FSadino/out/target/product/find7op/obj/busybox/full/Makefile
GEN include/applets.h
GEN include/usage.h
GEN libpwdgrp/Kbuild
GEN e2fsprogs/Kbuild
GEN e2fsprogs/Config.in
GEN e2fsprogs/old_e2fsprogs/Kbuild
GEN e2fsprogs/old_e2fsprogs/Config.in
GEN e2fsprogs/old_e2fsprogs/ext2fs/Kbuild
GEN e2fsprogs/old_e2fsprogs/uuid/Kbuild
GEN e2fsprogs/old_e2fsprogs/blkid/Kbuild
GEN e2fsprogs/old_e2fsprogs/e2p/Kbuild
GEN modutils/Kbuild
GEN modutils/Config.in
GEN mailutils/Kbuild
GEN mailutils/Config.in
GEN runit/Kbuild
GEN runit/Config.in
GEN scripts/Kbuild
GEN printutils/Kbuild
GEN printutils/Config.in
GEN console-tools/Kbuild
GEN console-tools/Config.in
GEN shell/Kbuild
GEN shell/Config.in
GEN selinux/Kbuild
GEN selinux/Config.in
GEN coreutils/Kbuild
GEN coreutils/Config.in
GEN coreutils/libcoreutils/Kbuild
GEN util-linux/Kbuild
GEN util-linux/Config.in
GEN util-linux/volume_id/Kbuild
GEN util-linux/volume_id/Config.in
GEN editors/Kbuild
GEN editors/Config.in
GEN archival/Kbuild
GEN archival/Config.in
GEN archival/libarchive/Kbuild
GEN debianutils/Kbuild
GEN debianutils/Config.in
GEN loginutils/Kbuild
GEN loginutils/Config.in
GEN sysklogd/Kbuild
GEN sysklogd/Config.in
GEN libbb/Kbuild
GEN libbb/Config.in
GEN networking/Kbuild
GEN networking/Config.in
GEN networking/libiproute/Kbuild
GEN networking/udhcp/Kbuild
GEN networking/udhcp/Config.in
GEN applets/Kbuild
GEN miscutils/Kbuild
GEN miscutils/Config.in
GEN findutils/Kbuild
GEN findutils/Config.in
GEN procps/Kbuild
GEN procps/Config.in
GEN init/Kbuild
GEN init/Config.in
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/scripts/basic/split-include.c: In function ‘main’:
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/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
GEN /home/fsadino/android/Omnirom_7.x_FSadino/out/target/product/find7op/obj/busybox/full/Makefile
HOSTCC scripts/kconfig/conf.o
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/scripts/kconfig/conf.c: In function ‘conf_askvalue’:
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/scripts/kconfig/conf.c:106:3: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, 128, stdin);
^
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/scripts/kconfig/conf.c: In function ‘conf_choice’:
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/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
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/scripts/kconfig/mconf.c: In function ‘show_textbox’:
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/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));
^
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/scripts/kconfig/mconf.c: In function ‘exec_conf’:
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/scripts/kconfig/mconf.c:481:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
pipe(pipefd);
^
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:152:0:
scripts/kconfig/zconf.hash.c:155:43: warning: ‘kconf_id_strings_contents’ is static but used in inline function ‘kconf_id_lookup’ which is not static
#define kconf_id_strings ((const char *) &kconf_id_strings_contents)
^
scripts/kconfig/zconf.hash.c:222:44: note: in expansion of macro ‘kconf_id_strings’
register const char *s = o + kconf_id_strings;
^
scripts/kconfig/zconf.hash.c:215:26: warning: ‘kconf_id_hash’ is static but used in inline function ‘kconf_id_lookup’ which is not static
register int key = kconf_id_hash (str, len);
^
scripts/kconfig/zconf.hash.c:171:26: warning: ‘wordlist’ is static but declared in inline function ‘kconf_id_lookup’ which is not static
static struct kconf_id wordlist[] =
^
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s Config.in
#
# using defaults found in .config
#
[COLOR="red"]/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/scripts/gcc-version.sh: linha 11: /home/fsadino/android/Omnirom_7.x_FSadino/home/fsadino/android/Omnirom_7.x_FSadino/prebuilts/gcc/linux-x86/arm/arm-linaro-linux-androideabi/bin:/home/fsadino/bin:/home/fsadino/bin:/home/fsadino/bin:/home/fsadino/platform-tools:/home/fsadino/bin:/home/fsadino/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bingcc: Ficheiro ou directoria inexistente[/COLOR]
SPLIT include/autoconf.h -> include/config/*
GEN include/bbconfigopts.h
HOSTCC applets/usage
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/applets/usage.c: In function ‘main’:
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/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
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/applets/applet_tables.c: In function ‘main’:
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/applets/applet_tables.c:144: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
[COLOR="red"]/bin/sh: 1: /home/fsadino/android/Omnirom_7.x_FSadino/home/fsadino/android/Omnirom_7.x_FSadino/prebuilts/gcc/linux-x86/arm/arm-linaro-linux-androideabi/bin:/home/fsadino/bin:/home/fsadino/bin:/home/fsadino/bin:/home/fsadino/platform-tools:/home/fsadino/bin:/home/fsadino/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bingcc: not found[/COLOR]
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/scripts/Makefile.build:197: recipe for target 'applets/applets.o' failed
make[2]: *** [applets/applets.o] Error 127
/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox/Makefile:379: recipe for target 'applets_dir' failed
make[1]: *** [applets_dir] Error 2
Makefile:119: recipe for target 'prepare' failed
make: *** [prepare] Error 2
make: Leaving directory '/home/fsadino/android/Omnirom_7.x_FSadino/external/busybox'
[ 0% 164/20303] target StaticLib: lib...C_LIBRARIES/libc_intermediates/libc.a)^Z
[1]+ Stopped schedtool -B -n 1 -e ionice -n 1 make -j `cat /proc/cpuinfo | grep "^processor" | wc -l` "$@"

real	0m55.853s
user	0m0.004s
sys	0m0.000s

real	0m56.629s
user	0m0.568s
sys	0m0.052s
fsadino@XDA-developers ~/android/Omnirom_7.x_FSadino $
[/hide]

Toolchain Path -> /home/fsadino/android/Omnirom_7.x_FSadino/prebuilts/gcc/linux-x86/arm/arm-linaro-linux-androideabi/bin/

I use this to "call" toolchain

# Export toolchain

export ARCH=arm

export SUBARCH=arm

export CROSS_COMPILE=arm-linaro-linux-androideabi

export CROSS_COMPILE=$(pwd)/home/fsadino/android/Omnirom_7.x_FSadino/prebuilts/gcc/linux-x86/arm/arm-linaro-linux-androideabi/bin:$PATH

Already cherry-picked all 4 commits to my Kernel Source

Thanks in advance!