Colibri i.MX8X Linux Kernel Building Issue

I have installed Xubuntu 18.04, for this new system, this is what I do:

Step 1: download the cross compiler toolchain from:
https://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/aarch64-linux-gnu/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu.tar.xz

Step 2: setup the cross compiler toolchain.

cd ~/
tar xJf gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu.tar.xz
export ARCH=arm64
export PATH=~/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/bin/:$PATH
export CROSS_COMPILE=aarch64-linux-gnu-

Step 3: Start building kernel

git clone Index of /linux-toradex.git
cd linux-toradex
git checkout toradex_imx_4.14.78_1.0.0_ga-bring_up

make defconfig
make -j 4

Original instruction reference: Build Apalis iMX8/Colibri iMX8X Boot Image/Linux from Scratch

The compilation result that I have:

~/projects/imx8x_kernel_predl/linux-toradex$ make defconfig
HOSTCC scripts/basic/fixdep
/bin/sh: 1: gcc: not found
scripts/Makefile.host:102: recipe for target ‘scripts/basic/fixdep’ failed
make[1]: *** [scripts/basic/fixdep] Error 127
Makefile:463: recipe for target ‘scripts_basic’ failed
make: *** [scripts_basic] Error 2

I did not do other thing for this setup, may I know is there anyone encounter the similar error?

After follow the following links,
https://developer.toradex.com/knowledge-base/board-support-package/openembedded-(core)#Prerequisites

prerequisite for my Xubuntu 18.04,
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install g+±5-multilib
sudo apt-get install curl dosfstools gawk g+±multilib gcc-multilib lib32z1-dev libcrypto++6:i386 libcrypto+±dev:i386 liblzo2-dev:i386 lzop libsdl1.2-dev libstdc+±5-dev:i386 libusb-1.0-0:i386 libusb-1.0-0-dev:i386 uuid-dev:i386 texinfo chrpath

After the above components installation, the i.MX8X kernel compilation build is OK!
The problem solved!

Thanks for letting us know.

Please note that this bring-up Linux kernel is deprecated and you should migrate to BSP 3.0b2 at your earliest convenience. As for the Linux kernel sources please have a look at the following branch:

http://git.toradex.com/cgit/linux-toradex.git/log/?h=toradex_4.14-2.0.x-imx