# Failed to build PYNQ for Zybo Z7

**URL:** <https://discuss.pynq.io/t/failed-to-build-pynq-for-zybo-z7/3091>\
**Category:** Support\
**Created:** [September 29, 2021, 11:11pm UTC](https://discuss.pynq.io/t/failed-to-build-pynq-for-zybo-z7/3091 "2021-09-29T23:11:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rockstiff](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rockstiff](https://discuss.pynq.io/u/rockstiff)\
**Post date:** [September 29, 2021, 11:11pm UTC](https://discuss.pynq.io/t/failed-to-build-pynq-for-zybo-z7/3091/1 "2021-09-29T23:11:37Z")

</div>

Hi. Im trying to build the pynq for a Zybo Z7-10

I have downloaded the pynq 2.5 files and installed all on a virtual box machine with ubuntu 18 (Vagrant had some issues so i installed a new VM).  
I downloaded Vivado 2019.2, Vitis and Petalinux for this versions and im using this board files [https://github.com/ussamazahid96/ZYBO-PYNQ](https://github.com/ussamazahid96/ZYBO-PYNQ) for the build.

setup\_host/check\_env.sh pass correctly but if i do “make board=Zybo” i have 2 issues.  
First it fails here:

```auto
which arm-linux-gnueabihf-gcc
Makefile:356: recipe for target 'checkenv' failed

```

But if i install “gcc-arm-linux-gnueabihf” and i run the makefile again it fails

```auto
which microblaze-xilinx-elf-gcc
Makefile:356: recipe for target 'checkenv' failed

```

Here is the full log

```auto
user@user-VirtualBox:~/PYNQ/sdbuild$ make board=Zybo
/opt/qemu/bin/qemu-aarch64-static -version | fgrep 4.0.0
qemu-aarch64 version 4.0.0
/opt/qemu/bin/qemu-arm-static -version | fgrep 4.0.0
qemu-arm version 4.0.0
vivado -version | fgrep 2019.2
Vivado v2019.2 (64-bit)
vitis -version | fgrep 2019.2
****** Vitis v2019.2 (64-bit)
which petalinux-config
/tools/tools/common/petalinux/bin/petalinux-config
which arm-linux-gnueabihf-gcc
/usr/bin/arm-linux-gnueabihf-gcc
which microblaze-xilinx-elf-gcc
Makefile:356: recipe for target 'checkenv' failed
make: *** [checkenv] Error 1

```

```auto
/tools/tools/common/petalinux/bin/petalinux-build
/home/user/Xilinx/Vivado/2019.2/bin/vivado
/home/user/Xilinx/Vitis/2019.2/bin/vitis
 
ls ~/Xilinx/
DocNav Downloads Vitis Vivado xic

```

Any ideas? Anyone with a zybo z7 pynq image to share? hehe

Also, lets say i can build an older version like 2.3, is there a way to update the funcionality to 2.5 without building the image again?  
Mostly i only need the pynq to interact with DMA and SPI. My other alternative is to try to implement with vitis sdk.  
Thanks

EDIT: I already did “source settings.sh” on petalinux

---

<div class="post-metadata">

**Author:** ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)\
**Post date:** [September 30, 2021, 9:12am UTC](https://discuss.pynq.io/t/failed-to-build-pynq-for-zybo-z7/3091/2 "2021-09-30T09:12:49Z")

</div>

Looks like for some reason Petalinux 2019.2 doesn’t add it’s compilers to the PATH when sourcing the settings script. You can add it manually - they’re at `{}/tools/xsct/gnu/microblaze/lin/bin/`. Note that we don’t support 2019.2 so can’t help you with any other Petalinux issues that arise. Also I’d strongly recommend the [board agnostic flow](https://discuss.pynq.io/t/quick-porting-of-pynq-using-pre-built-images/1075) and avoiding the issue entirely.

Peter

---

<div class="post-metadata">

**Author:** ![rockstiff](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rockstiff](https://discuss.pynq.io/u/rockstiff)\
**Post date:** [October 8, 2021, 3:43pm UTC](https://discuss.pynq.io/t/failed-to-build-pynq-for-zybo-z7/3091/3 "2021-10-08T15:43:02Z")

</div>

I was able to add the tool to the PATH and the build continued using instead Vivado 2019.1 and petalinux 2019.1 to avoid more issues as you said.  
Now im facing the same issue that i [posted here](https://discuss.pynq.io/t/pynqz2-image-building-error/3092/9) using both the normal make and with the prebuilt option.

Sill searching a solution. Thanks for the reply!

---

<div class="post-metadata">

**Author:** ![david\_j](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@david\_j](https://discuss.pynq.io/u/david_j)\
**Post date:** [October 10, 2021, 12:33pm UTC](https://discuss.pynq.io/t/failed-to-build-pynq-for-zybo-z7/3091/4 "2021-10-10T12:33:59Z")

</div>

Hi, I am new in the PYNQ community. I am also wondering how to run PYNQ on ZYBO Z7.

Do we need to install Petalinux to run PYNQ on ZYBO Z7 ? Which software do I need other then Vivado and Vitis which I already have in the computer.

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [October 11, 2021, 7:23am UTC](https://discuss.pynq.io/t/failed-to-build-pynq-for-zybo-z7/3091/5 "2021-10-11T07:23:47Z")

</div>

The process to generate a SD card image is described here [PYNQ SD Card — Python productivity for Zynq (Pynq)](https://pynq.readthedocs.io/en/v2.6.1/pynq_sd_card.html)

The SD card image has everything you need to run PYNQ
