# Makefile Failure - Pynq 2.7, Ubuntu 20.04, Vivado 2020.2

**URL:** <https://discuss.pynq.io/t/makefile-failure-pynq-2-7-ubuntu-20-04-vivado-2020-2/3985>\
**Category:** Support\
**Created:** [April 7, 2022, 4:32am UTC](https://discuss.pynq.io/t/makefile-failure-pynq-2-7-ubuntu-20-04-vivado-2020-2/3985 "2022-04-07T04:32:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rngsys\_a](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rngsys_a/32/2988_2.png) [@rngsys\_a](https://discuss.pynq.io/u/rngsys_a)\
**Post date:** [April 7, 2022, 4:32am UTC](https://discuss.pynq.io/t/makefile-failure-pynq-2-7-ubuntu-20-04-vivado-2020-2/3985/1 "2022-04-07T04:32:51Z")

</div>

Hey all, apologies for this post if it doesn’t meet rules, I’m new to the PYNQ world but have had difficulty trying to compile the base Pynq-Z1 overlays in my environment. I’ve run the makefile (using the command `make all`) and directly from Vivado 2020.2 using the TCL scripts (`source ./build_ip.tcl`). I made sure to check the Releases page for PYNQ 2.7 to make sure I had the correct version of Vivado, and made sure that Ubuntu 20.04 was listed as supported. What am I doing incorrectly, or what do I not have configured correctly?

My error message output (following a successful compile of color\_convert I believe) is the following:

```auto
****** Vivado v2020.2 (64-bit)
  **** SW Build 3064766 on Wed Nov 18 09:12:47 MST 2020
  **** IP Build 3064653 on Wed Nov 18 14:17:31 MST 2020
    ** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.

source run_ippack.tcl -notrace
bad lexical cast: source type value could not be interpreted as target
    while executing
"rdi::set_property core_revision 2204062314 {component component_1}"
    invoked from within
"set_property core_revision $Revision $core"
    (file "run_ippack.tcl" line 937)
INFO: [Common 17-206] Exiting Vivado at Wed Apr 6 23:14:43 2022...
ERROR: [IMPL 213-28] Failed to generate IP.
INFO: [HLS 200-111] Finished Command export_design CPU user time: 11.72 seconds. CPU system time: 0.75 seconds. Elapsed time: 13.75 seconds; current allocated memory: 239.345 MB.
command 'ap_source' returned error code
    while executing
"source color_convert/script.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 [list source $arg] "

INFO: [HLS 200-112] Total CPU user time: 24.19 seconds. Total CPU system time: 1.83 seconds. Total elapsed time: 26.04 seconds; peak allocated memory: 235.505 MB.
INFO: [Common 17-206] Exiting vitis_hls at Wed Apr 6 23:14:46 2022...
child process exited abnormally
INFO: [Common 17-206] Exiting Vivado at Wed Apr 6 23:14:46 2022...
make: *** [makefile:10: hls_ip] Error 1

```

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![rngsys\_a](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rngsys_a/32/2988_2.png) [@rngsys\_a](https://discuss.pynq.io/u/rngsys_a)\
**Post date:** [April 7, 2022, 5:16am UTC](https://discuss.pynq.io/t/makefile-failure-pynq-2-7-ubuntu-20-04-vivado-2020-2/3985/2 "2022-04-07T05:16:21Z")

</div>

I corrected the issue: After doing a bit more digging, I found that this was a bug in Vivado that was patched by Xilinx. Apologies for the obvious question, but for anyone else who could be dealing with the same issue, see here:

[https://support.xilinx.com/s/article/76960?language=en\_US](https://support.xilinx.com/s/article/76960?language=en_US)

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [April 7, 2022, 7:00am UTC](https://discuss.pynq.io/t/makefile-failure-pynq-2-7-ubuntu-20-04-vivado-2020-2/3985/3 "2022-04-07T07:00:29Z")

</div>

Thanks for posting back with your solution.

Cathal

---

<div class="post-metadata">

**Author:** ![ldesulme](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/ldesulme/32/3468_2.png) [@ldesulme](https://discuss.pynq.io/u/ldesulme)\
**Post date:** [August 8, 2022, 6:18pm UTC](https://discuss.pynq.io/t/makefile-failure-pynq-2-7-ubuntu-20-04-vivado-2020-2/3985/4 "2022-08-08T18:18:40Z")

</div>

> **[AMD-Xilinx Vivado/Vitis HLS Y2k22 Patch Application Guide](https://www.hackster.io/whitney-knitter/amd-xilinx-vivado-vitis-hls-y2k22-patch-application-guide-6af1cd)**
>
> Applying the y2k22 patch for HLS in my system took a few extra steps outlined in this post. By Whitney Knitter.

Hey just resolved this on my end. I think the link above will help.  
Best of luck.

---

<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:** [August 8, 2022, 6:36pm UTC](https://discuss.pynq.io/t/makefile-failure-pynq-2-7-ubuntu-20-04-vivado-2020-2/3985/5 "2022-08-08T18:36:29Z")

</div>


