Hi NXP
We try to compiler Yocto 3.3 5.10.72 BSP in imx8m-plus nxp evk board.
Get the Build Fail Error message.
(try to send "bitbake -c cleanall nnshark " and "bitbake -c compile -f nnshark")
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| + Setting up common submodule
| Submodule 'common' (git://anongit.freedesktop.org/gstreamer/common) registered for path 'common'
| Cloning into '/home/adv/adv-release-bsp/build-3720-xwayland/tmp/work/cortexa53-crypto-poky-linux/nnshark/2021.10.imx+gitAUTOINC+b2943cdda2-r0/git/common'...
| fatal: repository 'https://anongit.freedesktop.org/gstreamer/common/' not found
| fatal: clone of 'git://anongit.freedesktop.org/gstreamer/common' into submodule path '/home/adv/adv-release-bsp/build-3720-xwayland/tmp/work/cortexa53-crypto-poky-linux/nnshark/2021.10.imx+gitAUTOINC+b2943cdda2-r0/git/common' failed
| Failed to clone 'common'. Retry scheduled
| Cloning into '/home/adv/adv-release-bsp/build-3720-xwayland/tmp/work/cortexa53-crypto-poky-linux/nnshark/2021.10.imx+gitAUTOINC+b2943cdda2-r0/git/common'...
| fatal: repository 'https://anongit.freedesktop.org/gstreamer/common/' not found
| fatal: clone of 'git://anongit.freedesktop.org/gstreamer/common' into submodule path '/home/adv/adv-release-bsp/build-3720-xwayland/tmp/work/cortexa53-crypto-poky-linux/nnshark/2021.10.imx+gitAUTOINC+b2943cdda2-r0/git/common' failed
| Failed to clone 'common' a second time, aborting
| There is something wrong with your source tree.
| You are missing common/gst-autogen.sh
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/adv/adv-release-bsp/build-3720-xwayland/tmp/work/cortexa53-crypto-poky-linux/nnshark/2021.10.imx+gitAUTOINC+b2943cdda2-r0/temp/run.do_configure.110309' failed with exit code 1
ERROR: Task (/home/adv/adv-release-bsp/sources/meta-imx/meta-ml/recipes-nnstreamer/nnshark/nnshark_2021.10.imx.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2074 tasks of which 2068 didn't need to be rerun and 1 failed.
Do you have any advice?
已解决! 转到解答。
hi all:
i met this issue too. and finally i solved it. i put my solution here and hope it can help someone who also meet this issue.
find imx-yocto-bsp/sources/meta-imx/meta-ml/recipes-nnstreamer/nnshark/nnshark_2021.10.imx.bb
edit it as below:
use "bitbake -c cleanall nnshark" to clean nnshark first and then use "bitbake nnshark" or "bitbake imx-image-full -c populate_sdk" to build again.
in my case, i failed at the first try. i don't know why. maybe due to the bad network? but i clean nnshark and rebuild again, it success.
The problem is that the submodule url of nnshark is not connected.
You need to change url = git://anongit.freedesktop.org/gstreamer/common of nnshark's .gitmodules
I changed to url = https://github.com/GStreamer/common
In the state where an error occurred, even if the file was modified, it was not applied.
After I clean with bitbake -c cleanall nnshark
bitbake -c fetch nnshark
bitbake -c unpack nnshark
Now edit .gitmodules
bitbake nnshark
(I don't know if this order is correct.)
This successfully completed the build.
Alternatively, manually perform git clone in the source folder of nnshark.
under "build-wayland/tmp/work/armv8a-poky-linux/nnshark/2021.10.imx-r0/git"
git clone https://anongit.freedesktop.org/git/gstreamer/common.git/
'https://anongit.freedesktop.org/gstreamer/common/'
The repository is not found.
Do you have any advice?
Hi NXP
The build env in docker. Docker file:
4 mkdir ~/bin
5 curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
6 chmod a+x ~/bin/repo
7 export PATH=~/bin:$PATH
8 git config --global user.name "Your Name"
9 git config --global user.email "Your Email"
10 ls -al
11 sudo chown adv:adv adv-release-bsp
12 cd adv-release-bsp
13 export GIT_SSL_NO_VERIFY=1
14 git config --global http.sslverify false
15 git config --global url."https://".insteadOf git://
16 ls -al
17 repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-hardknott -m imx-5.10.72-2.2.0.xml
18 repo sync
19 ls
20 ls -al
21 DISTRO=fsl-imx-xwayland MACHINE=imx8mpevk source imx-setup-release.sh -b build-3720-xwayland
22 bitbake imx-image-full
Hi charleshuang,
We are also facing same issue when building yocto. what was the fix for this issue?
Regards,
Vinay
Hi there,
It seems there has been an change on YOCTO standards and now, by default, it does not allow network connection for any task except "do_fetch".
Therefore, you must add this to the nnshark_2021.10.imx.bb recipe (or use a .bbappend file):
do_configure[network] = "1"
Run bitbake again and it should work fine.
Hello All,
I solved it by making changes to sources/meta-imx/meta-ml/recipes-nnstreamer/nnshark/nnshark_2021.10.imx.bb as well as do_configure[network] = "1" in sources/meta-imx/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.8.0.bb.
Thanks,
George
Hi, I got build nnshark finished after executing the command below at path "~/adv-release-bsp/$build_folder/tmp/work/armv8a-poky-linux/nnshark/2021.10.imx-r0/git"
git config submodule.common.url https://github.com/GStreamer/common.git
Update test on Yocto 4.2 version: The NNSHARK_SRC in nnshark_2021.10.imx.bb file has changed to "gitsm". compare with Yocto 4.0. It can change from "gitsm" to "git" if meet fetch error.
nnshark commit history: Commits · nxp-imx/nnshark (github.com)
After fetch the nnshark, run command below in the nnshark build dir.
git config submodule.common.url https://github.com/GStreamer/common.git
git submodule update
Then check if the files (gst-autogen.sh) clone into the common directory. If have files clone into the common directory, it can start to bitbke nnshark.
Reference the link here: