Xilinx / Vitis-AI

Vitis AI is Xilinx’s development stack for AI inference on Xilinx hardware platforms, including both edge devices and Alveo cards.
https://www.xilinx.com/ai
Apache License 2.0
1.44k stars 625 forks source link

Can not build Petalinux 2022.1 with VitisAI 2.5 - Fetch fails, mirrors not available #1240

Open fschramka opened 1 year ago

fschramka commented 1 year ago

Added VitisAI 2.5 as user package like described in the manual.

While building VitisAI this output is shown:

WARNING: unilog-2.5-r0 do_fetch: Failed to fetch URL git://gitenterprise.xilinx.com/Vitis/vitis-ai-staging;protocol=https;branch=2.5, attempting MIRRORS if available
ERROR: unilog-2.5-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; (...)
ERROR: unilog-2.5-r0 do_fetch: Fetcher failure for URL: 'git://gitenterprise.xilinx.com/Vitis/vitis-ai-staging;protocol=https;branch=2.5'. Unable to fetch URL from any source. 
WARNING: xir-2.5-r0 do_fetch: Failed to fetch URL git://gitenterprise.xilinx.com/Vitis/vitis-ai-staging;protocol=https;branch=2.5, attempting MIRRORS if available
ERROR: xir-2.5-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; (...)
WARNING: target-factory-2.5-r0 do_fetch: Failed to fetch URL git://gitenterprise.xilinx.com/Vitis/vitis-ai-staging;protocol=https;branch=2.5, attempting MIRRORS if available
ERROR: target-factory-2.5-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; (...)
ERROR: target-factory-2.5-r0 do_fetch: Fetcher failure for URL: 'git://gitenterprise.xilinx.com/Vitis/vitis-ai-staging;protocol=https;branch=2.5'. Unable to fetch URL from any source.
WARNING: vitis-ai-library-2.5-r0 do_fetch: Failed to fetch URL git://gitenterprise.xilinx.com/Vitis/vitis-ai-staging;protocol=https;branch=2.5, attempting MIRRORS if available
ERROR: vitis-ai-library-2.5-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; (...)
WARNING: vart-2.5-r0 do_fetch: Failed to fetch URL git://gitenterprise.xilinx.com/Vitis/vitis-ai-staging;protocol=https;branch=2.5, attempting MIRRORS if available
ERROR: vart-2.5-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; (...)
ERROR: vart-2.5-r0 do_fetch: Fetcher failure for URL: 'git://gitenterprise.xilinx.com/Vitis/vitis-ai-staging;protocol=https;branch=2.5'. Unable to fetch URL from any source. 

I removed the paths within the error message to make it more "readable"

Rly have no idea what to do here...

AlbertaBeef commented 1 year ago

There are two releases : one is a branch called "2.5", and the other is a tag called "v2.5". You are using the last one, but should be using the first one.

Make sure you are using this one (which has a valid (public) github.com repository URL): https://github.com/Xilinx/Vitis-AI/blob/2.5/setup/petalinux/recipes-vitis-ai/vitis-ai-library/vitisai.inc

Do not use this one (which has the invalid (private) gitenterprise.xilinx.com URL): https://github.com/Xilinx/Vitis-AI/blob/v2.5/setup/petalinux/recipes-vitis-ai/vitis-ai-library/vitisai.inc

Cheers ! Mario.

fschramka commented 1 year ago

Well this was it! Thanks a lot @AlbertaBeef !

I took the https://github.com/Xilinx/Vitis-AI/releases/tag/v2.5 Release - This should be changed in there as well. Releases are here to be used :D

2652390306 commented 11 months ago

When building the project and generating the SD card image, petalinux-build, the following error occurred:

WARNING: unilog-1.2.0-r0 do_fetch: Failed to fetch URL git://gits@xcdl190260/aisw/unilog.git;protocol=ssh, attempting MIRRORS if available ERROR: unilog-1.2.0-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus,guid=e26b08e676b92c8348bfbc556524d453"; export SSH_AGENT_PID="3209"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export GIT_SSL_CAINFO="/opt/pkg/petalinux/2020.2/components/yocto/buildtools/sysroots/x86_64-petalinux-linux/etc/ssl/certs/ca-certificates.crt"; export PATH="/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/components/yocto/layers/core/scripts:/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/build/tmp/work/aarch64-xilinx-linux/unilog/1.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-xilinx-linux:/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/build/tmp/work/aarch64-xilinx-linux/unilog/1.2.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/build/tmp/work/aarch64-xilinx-linux/unilog/1.2.0-r0/recipe-sysroot-native/usr/sbin:/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/build/tmp/work/aarch64-xilinx-linux/unilog/1.2.0-r0/recipe-sysroot-native/usr/bin:/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/build/tmp/work/aarch64-xilinx-linux/unilog/1.2.0-r0/recipe-sysroot-native/sbin:/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/build/tmp/work/aarch64-xilinx-linux/unilog/1.2.0-r0/recipe-sysroot-native/bin:/opt/pkg/petalinux/2020.2/tools/xsct//bin:/opt/pkg/petalinux/2020.2/tools/xsct//gnu/microblaze/lin/bin:/opt/pkg/petalinux/2020.2/tools/xsct//gnu/aarch32/lin/gcc-arm-none-eabi/bin:/opt/pkg/petalinux/2020.2/tools/xsct//gnu/armr5/lin/gcc-arm-none-eabi/bin:/opt/pkg/petalinux/2020.2/tools/xsct//gnu/aarch64/lin/aarch64-none/bin:/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/components/yocto/layers/core/bitbake/bin:/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/build/tmp/hosttools"; export HOME="/home/w401"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror ssh://gits@xcdl190260/aisw/unilog.git /home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/build/downloads/git2/xcdl190260.aisw.unilog.git --progress failed with exit code 128, output: Cloning into bare repository '/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/build/downloads/git2/xcdl190260.aisw.unilog.git'... ssh: Could not resolve hostname xcdl190260: Name or service not known fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

ERROR: unilog-1.2.0-r0 do_fetch: Fetcher failure for URL: 'git://gits@xcdl190260/aisw/unilog.git;protocol=ssh'. Unable to fetch URL from any source. ERROR: Logfile of failure stored in: /home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/build/tmp/work/aarch64-xilinx-linux/unilog/1.2.0-r0/temp/log.do_fetch.3738 ERROR: Task (/home/w401/FPGA/Alinx_MPSoc/peta_prj/linuxPsBase/petalinux/components/yocto/layers/meta-vitis-ai/recipes-vai/unilog/unilog_1.2.0.bb:do_fetch) failed with exit code '1'

quentonh commented 11 months ago

@2652390306 In addition to the problem that @AlbertaBeef outlines above, I see numerous references to the internal xcdl server in the repo. Specifically, the below grep search is based on tag v2.5, though I don't see that these issues have been fixed on the 2.5 branch. Branching/tagging strategy reference here, FYI: https://xilinx.github.io/Vitis-AI/3.5/html/docs/install/branching_tagging_strategy.html?highlight=tagging

image

Unfortunately, it appears that there are several scripts that need to be changed to account for the fact that for external users will have cloned the sources related to all of the Petalinux Bitbake recipes into their local repo. For example: https://github.com/Xilinx/Vitis-AI/tree/v2.5/src/Vitis-AI-Runtime/VART/unilog

So in addition to leveraging the 2.5 branch (always recommended per the above strategy reference), I suspect you may have to edit these scripts.