andre1araujo / YOLO-on-PYNQ-Z2

This repository contains all the necessary material to implement a YOLOv3 object detection algorithm on the PYNQ-Z2 FPGA. There is a step-by-step tutorial associated so everyone can do it.
https://andre-araujo.gitbook.io/yolo-on-pynq-z2/
Apache License 2.0
27 stars 4 forks source link

Errors after running petalinux build #12

Closed ghost closed 1 month ago

ghost commented 1 month ago

I tried running the petalinux build command and these errors occured:

image

can you help me with this?

the log:

mantra@Kendall:~$ source /opt/petalinux/settings.sh
PetaLinux environment set to '/opt/petalinux'
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution
mantra@Kendall:~$ cd /home/mantra/Desktop
mantra@Kendall:~/Desktop$ cd dpu_integration/pynqz2_dpu/
mantra@Kendall:~/Desktop/dpu_integration/pynqz2_dpu$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
[INFO] generating workspace directory
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################| Time: 0:00:03
Loaded 3980 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:09
Parsing of 2894 .bb files complete (2893 cached, 1 parsed). 3981 targets, 169 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:19
Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:01:27
Sstate summary: Wanted 846 Found 361 Missed 970 Current 1751 (42% match, 81% complete)
NOTE: Executing SetScene Tasks
WARNING: Logfile for failed setscene task is /home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/libfontenc/1_1.1.3-r0/temp/log.do_package_write_rpm_setscene.3543
WARNING: Setscene task (/opt/petalinux/components/yocto/source/arm/layers/core/meta/recipes-graphics/xorg-lib/libfontenc_1.1.3.bb:do_package_write_rpm_setscene) failed with exit code '1' - real task will be run instead
WARNING: Logfile for failed setscene task is /home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/libxslt/1.1.32-r0/temp/log.do_package_qa_setscene.3777
WARNING: Setscene task (/opt/petalinux/components/yocto/source/arm/layers/core/meta/recipes-support/libxslt/libxslt_1.1.32.bb:do_package_qa_setscene) failed with exit code '1' - real task will be run instead
WARNING: Logfile for failed setscene task is /home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/socat/1.7.3.2-r0/temp/log.do_populate_lic_setscene.3951
WARNING: Setscene task (/opt/petalinux/components/yocto/source/arm/layers/core/meta/recipes-connectivity/socat/socat_1.7.3.2.bb:do_populate_lic_setscene) failed with exit code '1' - real task will be run instead
WARNING: Logfile for failed setscene task is /home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/x86_64-linux/libice-native/1_1.0.9-r0/temp/log.do_populate_sysroot_setscene.5433
WARNING: Setscene task (virtual:native:/opt/petalinux/components/yocto/source/arm/layers/core/meta/recipes-graphics/xorg-lib/libice_1.0.9.bb:do_populate_sysroot_setscene) failed with exit code '1' - real task will be run instead
NOTE: Executing RunQueue Tasks
WARNING: libfontenc-1_1.1.3-r0 do_fetch: Failed to fetch URL http://xorg.freedesktop.org/releases/individual/lib/libfontenc-1.1.3.tar.bz2, attempting MIRRORS if available
ERROR: libfontenc-1_1.1.3-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1659"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_SSL_CAINFO="/opt/petalinux/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/opt/petalinux/components/yocto/source/arm/layers/core/scripts:/home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/libfontenc/1_1.1.3-r0/recipe-sysroot-native/usr/bin/arm-xilinx-linux-gnueabi:/home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/libfontenc/1_1.1.3-r0/recipe-sysroot/usr/bin/crossscripts:/home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/libfontenc/1_1.1.3-r0/recipe-sysroot-native/usr/sbin:/home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/libfontenc/1_1.1.3-r0/recipe-sysroot-native/usr/bin:/home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/libfontenc/1_1.1.3-r0/recipe-sysroot-native/sbin:/home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/libfontenc/1_1.1.3-r0/recipe-sysroot-native/bin:/opt/petalinux/tools/xsct/bin:/opt/petalinux/tools/xsct/gnu/microblaze/lin/bin:/opt/petalinux/tools/xsct/gnu/aarch32/lin/gcc-arm-none-eabi/bin:/opt/petalinux/tools/xsct/gnu/armr5/lin/gcc-arm-none-eabi/bin:/opt/petalinux/tools/xsct/gnu/aarch64/lin/aarch64-none/bin:/opt/petalinux/components/yocto/source/arm/layers/core/bitbake/bin:/home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/hosttools"; export HOME="/home/mantra"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -P /home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/downloads 'http://xorg.freedesktop.org/releases/individual/lib/libfontenc-1.1.3.tar.bz2' --progress=dot -v failed with exit code 4, output:
--2024-08-07 06:54:05--  http://xorg.freedesktop.org/releases/individual/lib/libfontenc-1.1.3.tar.bz2
Resolving xorg.freedesktop.org... 131.252.210.176
Connecting to xorg.freedesktop.org|131.252.210.176|:80... failed: Connection timed out.
Retrying.

--2024-08-07 06:54:37--  (try: 2)  http://xorg.freedesktop.org/releases/individual/lib/libfontenc-1.1.3.tar.bz2
Connecting to xorg.freedesktop.org|131.252.210.176|:80... failed: Connection timed out.
Giving up.

ERROR: libfontenc-1_1.1.3-r0 do_fetch: Fetcher failure for URL: 'http://xorg.freedesktop.org/releases/individual/lib/libfontenc-1.1.3.tar.bz2'. Unable to fetch URL from any source.
ERROR: libfontenc-1_1.1.3-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/mantra/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/cortexa9t2hf-neon-xilinx-linux-gnueabi/libfontenc/1_1.1.3-r0/temp/log.do_fetch.15585
ERROR: Task (/opt/petalinux/components/yocto/source/arm/layers/core/meta/recipes-graphics/xorg-lib/libfontenc_1.1.3.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4805 tasks of which 3873 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /opt/petalinux/components/yocto/source/arm/layers/core/meta/recipes-graphics/xorg-lib/libfontenc_1.1.3.bb:do_fetch
Summary: There was 1 WARNING message shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
andre1araujo commented 1 month ago

Hello! You cannot build the petalinux project without making the configurations. Is that what happened? You just accessed the directory and made build? If following this part of the tutorial led to that error, we have to investigate further. It seems just that the program could not fetch one library from a URL. It leads me to suspect that your internet connection was not working correctly at the time because the URL exists and is functional. I would try that again but making sure that the internet connection on the Virtual Machine is working right. I hope this helps! If you make any progress let me know! :)

ghost commented 1 month ago

Yeah, we tried again and figured that issue was internet and we have progressed to further steps.

Thank you.

On Wed, 7 Aug, 2024, 15:45 André Araújo, @.***> wrote:

Hello! You cannot build the petalinux project without making the configurations. Is that what happened? You just accessed the directory and made build? If following this part https://andre-araujo.gitbook.io/yolo-on-pynq-z2/dpu-implementation/implementing-the-dpu-on-a-sd-card-image#petalinux-project of the tutorial led to that error, we have to investigate further. It seems just that the program could not fetch one library from a URL. It leads me to suspect that your internet connection was not working correctly at the time because the URL exists and is functional. I would try that again but making sure that the internet connection on the Virtual Machine is working right. I hope this helps! If you make any progress let me know! :)

— Reply to this email directly, view it on GitHub https://github.com/andre1araujo/YOLO-on-PYNQ-Z2/issues/12#issuecomment-2273120193, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX6BESKB5JSFT57YOMAIMOLZQHXSXAVCNFSM6AAAAABMDYCKLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZTGEZDAMJZGM . You are receiving this because you authored the thread.Message ID: @.***>

andre1araujo commented 1 month ago

You are welcome! If you find further issues, be sure to open a new issue as now I will be closing this one. Good luck on the project!