# VxWorks 7 SDK for Raspberry Pi 4 Build Error

**URL:** <https://forums.windriver.com/t/vxworks-7-sdk-for-raspberry-pi-4-build-error/172>\
**Category:** VxWorks\
**Created:** [January 29, 2023, 1:18pm UTC](https://forums.windriver.com/t/vxworks-7-sdk-for-raspberry-pi-4-build-error/172 "2023-01-29T13:18:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ishaan](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@Ishaan](https://forums.windriver.com/u/Ishaan)\
**Post date:** [January 29, 2023, 1:18pm UTC](https://forums.windriver.com/t/vxworks-7-sdk-for-raspberry-pi-4-build-error/172/1 "2023-01-29T13:18:24Z")

</div>

I’m referring the article [VxWorks 7 SDK for Raspberry Pi 4](https://labs.windriver.com/downloads/wrsdk-vxworks7-docs/2203/README_raspberrypi4b.html) 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

---

<div class="post-metadata">

**Author:** ![dan.milea](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@dan.milea](https://forums.windriver.com/u/dan.milea)\
**Post date:** [January 30, 2023, 9:42am UTC](https://forums.windriver.com/t/vxworks-7-sdk-for-raspberry-pi-4-build-error/172/2 "2023-01-30T09:42:34Z")

</div>

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.

```auto
CROSS_COMPILE=aarch64-linux-gnu- make rpi_4_defconfig

```

Regards,  
Dan

---

<div class="post-metadata">

**Author:** ![Ishaan](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@Ishaan](https://forums.windriver.com/u/Ishaan)\
**Post date:** [January 30, 2023, 2:29pm UTC](https://forums.windriver.com/t/vxworks-7-sdk-for-raspberry-pi-4-build-error/172/3 "2023-01-30T14:29:48Z")

</div>

> [@dan.milea](#):
>
> `CROSS_COMPILE=aarch64-linux-gnu- make rpi_4_defconfig`

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

---

<div class="post-metadata">

**Author:** ![dan.milea](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@dan.milea](https://forums.windriver.com/u/dan.milea)\
**Post date:** [January 30, 2023, 2:46pm UTC](https://forums.windriver.com/t/vxworks-7-sdk-for-raspberry-pi-4-build-error/172/4 "2023-01-30T14:46:46Z")

</div>

```auto
sudo apt install build-essential libc6:i386

```

Check the **Host dependencies** section of the SDK [README](https://labs.windriver.com/downloads/wrsdk-vxworks7-docs/2203/README_raspberrypi4b.html) file. You’re missing a few of host packages and build-essential is one of them.

---

<div class="post-metadata">

**Author:** ![Ishaan](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@Ishaan](https://forums.windriver.com/u/Ishaan)\
**Post date:** [January 30, 2023, 5:41pm UTC](https://forums.windriver.com/t/vxworks-7-sdk-for-raspberry-pi-4-build-error/172/5 "2023-01-30T17:41:46Z")

</div>

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`.
