PYNQ 2.5 - ERROR: pmu-firmware-2019.1+gitAUTOINC+26c14d9861-r0 do_configure: Function failed: do_configure

I am trying to build PYNQ2.5 image for Xilinx ZCU106. I have build the environment as instructed by official UG (Ubuntu18.04.1 LTS+petalinux2019.1+vivado2019.1+PYNQ2.5), I’ve also downloaded ZCU106 2019.1 bsp and prebuild file from Xilinx . The “setup_host.sh” script and “make checkenv” in PYNQ works fine. But here is my problem when I attempt to make img with this instruction “make BOARDS=ZCU106 PREBUILT=./prebuild/bionic.aarch64.2.5.img”.
here is the debug info:

NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: pmu-firmware-2019.1+gitAUTOINC+26c14d9861-r0 do_configure: Function failed: do_configure (log file is located at /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/temp/log.do_configure.68938)
ERROR: Logfile of failure stored in: /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/temp/log.do_configure.68938
Log data follows:
| DEBUG: Executing shell function do_configure
| MISC_ARG is  -yamlconf /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/pmu-firmware.yaml
| APP_ARG is  -app "ZynqMP PMU Firmware"
| Using xsct from: /home/bchen/Software/petalinux2019.1/tools/xsct/bin/xsct
| cmd is: xsct -sdx -nodisp /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/app.tcl -ws /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/build -pname pmu-firmware -rp /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/git -processor psu_pmu_0 -hdf /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/deploy/images/zcu106-zynqmp/Xilinx-zcu106-zynqmp.hdf -arch 32  -app "ZynqMP PMU Firmware"  -yamlconf /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/pmu-firmware.yaml
| INFO: [Hsi 55-1698] elapsed time for repository loading 0 seconds
| INFO: Update hw pmu-firmware_plat project
| Loading the sw platform from /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/build/pmu-firmware_plat/platform.spr
| Reading the platform  : "pmu-firmware_plat"
| Opening the hardware design, this may take few seconds.
| App name
| Description
| ERROR:set_bsp_conf set dt_overlay TRUE: Cannot set Property "dt_overlay" with TRUE
| 
| ERROR: Could not find the bsp config parameter.
| to get the list of valida parameters on "os" run "bsp listparams -os"
| to get the list of valida parameters on "processor" instance run "bsp listparams -proc"
| to get the list of valida parameters on "library" run "bsp listparams -lib <libraryname>"
| Error in copy exception raised, while copying /home/bchen/Software/petalinux2019/tools/xsct/scripts/xsct/data/scw/generic.readme To /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/build/pmu-firmware_plat/export/pmu-firmware_plat/sw/sysconfig1/boot
|  Exception Message boost::filesystem::copy_file: No such file or directory: "/home/bchen/Software/petalinux2019/tools/xsct/scripts/xsct/data/scw/generic.readme", "/home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/build/pmu-firmware_plat/export/pmu-firmware_plat/sw/sysconfig1/boot/generic.readme"
| /home/bchen/Software/petalinux2019/tools/xsct/gnu/microblaze/lin
| 
| 
| Couldn't figure out compiler's library directory
| 
| ERROR: [Hsi 55-1545] Problem running tcl command ::sw_cpu_v2_9::generate : Couldn't figure out compiler's library directory
|     while executing
| "error "Couldn't figure out compiler's library directory" "" "hsi_error""
|     (procedure "::sw_cpu_v2_9::generate" line 147)
|     invoked from within
| "::sw_cpu_v2_9::generate psu_pmu_0"
| 
| ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()
| 
| Failed to generate the platform.
| Reason: Failed to generate the bsp sources for domain.pmu-firmware_domain
| 
| Details: /home/bchen/Software/petalinux2019/tools/xsct/gnu/microblaze/lin
| 
| 
| Couldn't figure out compiler's library directory
| 
| ERROR: [Hsi 55-1545] Problem running tcl command ::sw_cpu_v2_9::generate : Couldn't figure out compiler's library directory
|     while executing
| "error "Couldn't figure out compiler's library directory" "" "hsi_error""
|     (procedure "::sw_cpu_v2_9::generate" line 147)
|     invoked from within
| "::sw_cpu_v2_9::generate psu_pmu_0"
| 
| ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()
| 
|     while executing
| "builtin_platform -generate quick"
|     (procedure "platform" line 221)
|     invoked from within
| "platform generate -quick"
|     invoked from within
| "if { $params(ws) ne "" } {
| 	#Local Work Space available
| 	if { $params(pname) ne "" } {
| 		# hwpname/bspname is empty then default it to pname+_hwproj/b..."
|     (file "/home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26..." line 139)
| WARNING: /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/temp/run.do_configure.68938:1 exit 1 from 'eval xsct -sdx -nodisp /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/app.tcl -ws /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/build -pname pmu-firmware -rp /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/git -processor psu_pmu_0 -hdf /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/deploy/images/zcu106-zynqmp/Xilinx-zcu106-zynqmp.hdf -arch 32 ${APP_ARG} ${MISC_ARG}'
| ERROR: Function failed: do_configure (log file is located at /home/bchen/Software/zcu106_bk/PYNQ/sdbuild/build/ZCU106/petalinux_project/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2019.1+gitAUTOINC+26c14d9861-r0/temp/log.do_configure.68938)
ERROR: Task (/home/bchen/Software/petalinux2019.1/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu-firmware/pmu-firmware_git.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 613 tasks of which 612 didn't need to be rerun and 1 failed.

How can i fix this?

Hi,

Please find the following build guide and issue report:

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