VxWorks 7 SDK for Raspberry Pi 4 Build Error

I’m referring the article VxWorks 7 SDK for Raspberry Pi 4 to install vxWorks on my Raspberry Pi 4.

In Booting VxWorks on Raspberry Pi 4 section I am stuck on Step 2. In the step

CROSS_COMPILE=aarch64-linux-gnu- make rpi_4_defconfig

I’m getting error (attached bellow)

I’m using Ubuntu 22.04 LTS to build the vxWorks. I’ve installed Ubuntu in Windows using Windows Subsystem for Linux.

Error

ishaan@DESKTOP-NLJLADK:~/vxWorks/u-boot$ CROSS_COMPILE=aarch64-linux-gnu-make rpi_4_defconfig
rpi_4_defconfig: command not found
ishaan@DESKTOP-NLJLADK:~/vxWorks/u-boot$ CROSS_COMPILE=aarch64-linux-gnu- make rpi_4_defconfig
HOSTCC scripts/basic/fixdep
/bin/sh: 1: cc: not found
make[1]: *** [scripts/Makefile.host:95: scripts/basic/fixdep] Error 127
make: *** [Makefile:492: scripts_basic] Error 2

Your log shows a missing space between CROSS_COMPILE=aarch64-linux-gnu- and the rest of the make command.

The command should include a space between the CROSS_COMPILE environment variable and make.

CROSS_COMPILE=aarch64-linux-gnu- make rpi_4_defconfig

Regards,
Dan

Hi Dan,

If you looked in my second attempt I have given space.

ishaan@DESKTOP-NLJLADK:~/vxWorks/u-boot$ CROSS_COMPILE=aarch64-linux-gnu- make rpi_4_defconfig

I am getting the error

HOSTCC scripts/basic/fixdep
/bin/sh: 1: cc: not found
make[1]: *** [scripts/Makefile.host:95: scripts/basic/fixdep] Error 127
make: *** [Makefile:492: scripts_basic] Error 2

sudo apt install build-essential libc6:i386

Check the Host dependencies section of the SDK README file. You’re missing a few of host packages and build-essential is one of them.

I couldn’t find the package libc6:i386 in Ubuntu 22.04 LTS x64
I had to install sudo apt install libc6-dev-i386 flex bison bc libssl-dev
After installing the above packages I could build u-boot.