# PYNQ 2.7 - Makefile:344: recipe for target Fails Error 23

**URL:** https://discuss.pynq.io/t/pynq-2-7-makefile-recipe-for-target-fails-error-23/4607
**Category:** Support
**Created:** [August 28, 2022, 3:40am UTC](https://discuss.pynq.io/t/pynq-2-7-makefile-recipe-for-target-fails-error-23/4607 "2022-08-28T03:40:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Nabiel\_Kandiel](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/nabiel_kandiel/32/3543_2.png) [@Nabiel\_Kandiel](https://discuss.pynq.io/u/Nabiel_Kandiel)
#### Post date: [August 28, 2022, 3:40am UTC](https://discuss.pynq.io/t/pynq-2-7-makefile-recipe-for-target-fails-error-23/4607/1 "2022-08-28T03:40:57Z")

</div>

I am trying to build PYNQ 2.7 for the zedboard. I am using Ubuntu 18.04.6 and Xilinx tools 2020.2.

I am able to run “make” in the sdbuild folder and have a successful build, but when I try to build for the zedboard I get this error.

```auto
var/log/ubuntu-advantage.log
var/log/unattended-upgrades/
var/log/dpkg.log
var/crash/
var/mail/
+ cd /home/nab/Documents/PYNQ/sdbuild/build/PYNQ
+ rsync -rptL --ignore-existing '/home/nab/Documents/PYNQ/sdbuild/build/PYNQ/sdist_untar/*/pynq/lib/*' pynq/lib/
rsync: change_dir "/home/nab/Documents/PYNQ/sdbuild/build/PYNQ/sdist_untar/*/pynq/lib" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
+ unmount_special
+ for fs in $fss
+ sudo umount -l /home/nab/Documents/PYNQ/sdbuild/build/focal.arm/proc
+ for fs in $fss
+ sudo umount -l /home/nab/Documents/PYNQ/sdbuild/build/focal.arm/run
+ for fs in $fss
+ sudo umount -l /home/nab/Documents/PYNQ/sdbuild/build/focal.arm/dev
+ sudo umount -l /home/nab/Documents/PYNQ/sdbuild/build/focal.arm/ccache
+ rmdir /home/nab/Documents/PYNQ/sdbuild/build/focal.arm/ccache
Makefile:344: recipe for target '/home/nab/Documents/PYNQ/sdbuild/output/focal.arm.2.7.0.tar.gz' failed
make: *** [/home/nab/Documents/PYNQ/sdbuild/output/focal.arm.2.7.0.tar.gz] Error 23

```

My zedboard.spec looks like the following

```auto
ARCH_ZED := arm
BSP_ZED := zedboard.bsp

STAGE4_PACKAGES_ZED := ethernet

```

The command I am running is

```auto
make PYNQ_SDIST=focal.arm.2.7.0_2011_11_17.tar.gz BOARDS=ZED

```

I had other issues that I resolved by upgrading ct-ng from 1.24 to 1.25 and that allows me to get this far into the build process, but I am having trouble figuring out what is causing this error. I read somewhere that unmounting to quickly could be the issue and to increase the sleep time in the makefile to 5, but mine is already at 5. Also I am using Ubuntu18.04.6 because a lot of packages were broken when I installed 18.04.4 and it seemed like the only way to fix it was an apt update.

---

<div class="post-metadata">

### Author: ![briansune](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/briansune/32/3087_2.png) [@briansune](https://discuss.pynq.io/u/briansune)
#### Post date: [August 28, 2022, 5:07pm UTC](https://discuss.pynq.io/t/pynq-2-7-makefile-recipe-for-target-fails-error-23/4607/2 "2022-08-28T17:07:53Z")

</div>

Hi,

Please find the following build guide and issue report:

> [@Stuck at extract yocoto](https://discuss.pynq.io/t/stuck-at-extract-yocoto/4134/8):
>
> Unless people having hard time on setting up the environment: Vagrant is not a good method to setup the SD build environment. I have not investigate to the bottom but what previous engineer shows there might Virtual R/W issue during such setup. STEPS: I will suggest download 18.04.06 LTS Ubuntu from official website Create a virtual disk size about 200GB or more, set the CPU \>#4, RAM \>#8192 Update Ubuntu packages before setting up the PYNQ 3b) Git clone the PYNQ to /home//PYNQ 3c) sudo ch…

> [@UltraZYNQ+ Build](https://discuss.pynq.io/t/ultrazynq-build/4404/4):
>
> Problem solve: Indeed the boot arg is not default edited by the make script on the PYNQ. I not even notice this is the case as once it stuck I had no idea how I can get the log why and what reason it is stucking. Maybe Sarunas you can advise a bit how we can debug the root cause it is stuck. Starting Samba NMB Daemon... Starting OpenBSD Secure Shell server... Starting Permit User Sessions... [OK] Started Unattended Upgrades Shutdown. [OK] Finished Permit U…

This setup confirmed by many developers that had good result.  
Remember any share folder or right restricted folder will result in so many unexpected build issues.  
This setup targeted PYNQ2.7 Vivado2020.2 not .2.#

Meantime, the make command should be make BOARDS=xxxx PREBUILT=focal.arm.xxxxx

---

<div class="post-metadata">

### Author: ![Nabiel\_Kandiel](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/nabiel_kandiel/32/3543_2.png) [@Nabiel\_Kandiel](https://discuss.pynq.io/u/Nabiel_Kandiel)
#### Post date: [August 28, 2022, 11:27pm UTC](https://discuss.pynq.io/t/pynq-2-7-makefile-recipe-for-target-fails-error-23/4607/3 "2022-08-28T23:27:53Z")

</div>

doing  
sudo chmod -R 777 ./PYNQ/\*  
and chaning my command to use PREBUILT solved my issue. Thanks!

---

<div class="post-metadata">

### Author: ![briansune](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/briansune/32/3087_2.png) [@briansune](https://discuss.pynq.io/u/briansune)
#### Post date: [August 29, 2022, 1:21am UTC](https://discuss.pynq.io/t/pynq-2-7-makefile-recipe-for-target-fails-error-23/4607/4 "2022-08-29T01:21:26Z")

</div>

Great~  
Your are welcome =]
