PYNQ: PYTHON PRODUCTIVITY

ZCU111 build error - Could not resolve host: github.com (embeddedsw)

Hi,

I am building ZCU111 Pynq image.
During the build process, I am getting following error
fatal: unable to access ‘https://github.com/Xilinx/embeddedsw/’: Could not resolve host: github.com
Tried more than 3 times to triple check that it is not a network error.
I can easily access github.com and clone “embeddedsw” repo manually. No issues.

I am using Ubuntu 18.04.3. Using the Master branch for both Pynq and ZCU111-PYNQ

Processing /root/xrfclk_build
Requirement already satisfied: pynq in /usr/local/lib/python3.6/dist-packages (from xrfclk==0.1)
Requirement already satisfied: pandas; python_version >= “3.5.3” in /usr/lib/python3/dist-packages (from pynq->xrfclk==0.1)
Requirement already satisfied: cffi in /usr/lib/python3/dist-packages (from pynq->xrfclk==0.1)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from pynq->xrfclk==0.1)
Requirement already satisfied: setuptools>=24.2.0 in /usr/lib/python3/dist-packages (from pynq->xrfclk==0.1)
Installing collected packages: xrfclk
Running setup.py install for xrfclk … done
Successfully installed xrfclk-0.1
make[1]: Leaving directory ‘/root/xrfclk_build’

  • cd /root
  • rm -rf xrfclk_build
  • rm /home/mypc/PYNQ/sdbuild/build/bionic.ZCU111/qemu.sh
  • ‘[’ -e /home/mypc/ZCU111-PYNQ//ZCU111/packages/xrfclk/post.sh ‘]’
  • for p in $@
  • ‘[’ -n /home/mypc/ZCU111-PYNQ//ZCU111/packages -a -e /home/mypc/ZCU111-PYNQ//ZCU111/packages/xrfdc ‘]’
  • f=/home/mypc/ZCU111-PYNQ//ZCU111/packages/xrfdc
  • ‘[’ -e /home/mypc/ZCU111-PYNQ//ZCU111/packages/xrfdc/pre.sh ‘]’
  • /home/mypc/ZCU111-PYNQ//ZCU111/packages/xrfdc/pre.sh /home/mypc/PYNQ/sdbuild/build/bionic.ZCU111
  • target=/home/mypc/PYNQ/sdbuild/build/bionic.ZCU111
    +++ dirname /home/mypc/ZCU111-PYNQ//ZCU111/packages/xrfdc/pre.sh
    ++ cd /home/mypc/ZCU111-PYNQ//ZCU111/packages/xrfdc
    ++ pwd
  • script_dir=/home/mypc/ZCU111-PYNQ/ZCU111/packages/xrfdc
  • sudo cp -r /home/mypc/ZCU111-PYNQ/ZCU111/packages/xrfdc/pkg /home/mypc/PYNQ/sdbuild/build/bionic.ZCU111/root/xrfdc_build
  • ‘[’ -e /home/mypc/ZCU111-PYNQ//ZCU111/packages/xrfdc/qemu.sh ‘]’
  • cp /home/mypc/ZCU111-PYNQ//ZCU111/packages/xrfdc/qemu.sh /home/mypc/PYNQ/sdbuild/build/bionic.ZCU111
  • sudo -E chroot /home/mypc/PYNQ/sdbuild/build/bionic.ZCU111 bash qemu.sh
  • set -e
  • cd /root/xrfdc_build
  • make embeddedsw
    make[1]: Entering directory ‘/root/xrfdc_build’
    git clone https://github.com/Xilinx/embeddedsw -b release-2018.3 embeddedsw
    Cloning into ‘embeddedsw’…
    fatal: unable to access ‘https://github.com/Xilinx/embeddedsw/’: Could not resolve host: github.com
    Makefile:24: recipe for target ‘embeddedsw’ failed
    make[1]: *** [embeddedsw] Error 128
    make[1]: Leaving directory ‘/root/xrfdc_build’
  • unmount_special
  • for fs in $fss
  • sudo umount -l /home/mypc/PYNQ/sdbuild/build/bionic.ZCU111/proc
  • for fs in $fss
  • sudo umount -l /home/mypc/PYNQ/sdbuild/build/bionic.ZCU111/run
  • for fs in $fss
  • sudo umount -l /home/mypc/PYNQ/sdbuild/build/bionic.ZCU111/dev
  • sudo umount -l /home/mypc/PYNQ/sdbuild/build/bionic.ZCU111/ccache
  • rmdir /home/mypc/PYNQ/sdbuild/build/bionic.ZCU111/ccache
    Makefile:324: recipe for target ‘/home/mypc/PYNQ/sdbuild/output/ZCU111-2.5.img’ failed
    make: *** [/home/mypc/PYNQ/sdbuild/output/ZCU111-2.5.img] Error 2

Hmm…
Could you try:
“git clone https://github.com/Xilinx/PYNQ.git -b v2.5.1” <- This is official release of PYNQ and it worked for me several times.

Also, you could try first make image for Pynq-Z2 just for test.
If it builds that means error is in ZCU111

I tried v2.5.1 with Ubuntu18. It is not compiling under under Ubuntu18.
However, v2.5.4 (and Master Branch) works fine with Ubuntu18 and no issues with Pynq Z2 compilation.

I tried latest master branch with Ubuntu16 and Vivado, Petalinux 2019.1
Build process worked like a charm.
However, found some issues after linux boot on A53 processor.
I will raise it in another post.