Yocto 3.3 5.10.72 BSP Build Fail

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Yocto 3.3 5.10.72 BSP Build Fail

Jump to solution
8,930 Views
charleshuang
Senior Contributor II

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?

charleshuang_0-1655691147135.png

 

0 Kudos
Reply
1 Solution
8,893 Views
charleshuang
Senior Contributor II

Thanks NXP 

We find the solution to fixed the fail issue.

View solution in original post

0 Kudos
Reply
13 Replies
2,308 Views
fengyus
Contributor II

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:

fengyus_0-1723078630180.png

 

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.

7,283 Views
simon_ko
Contributor III

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

https://source.codeaurora.org/external/imx/nnshark/tree/.gitmodules?h=2021.10.imx&id=01f8aa59c982f0f...

 

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/

 

 
8,915 Views
charleshuang
Senior Contributor II

 'https://anongit.freedesktop.org/gstreamer/common/'  

The repository is not found.

Do you have any advice?

0 Kudos
Reply
8,922 Views
joanxie
NXP TechSupport
NXP TechSupport

what's your build environment? and share the detailed your build steps

 

0 Kudos
Reply
8,917 Views
charleshuang
Senior Contributor II

Hi NXP

The build env in docker. Docker file:

https://github.com/ADVANTECH-Corp/docker-images/blob/u18.04-imx8LBV1/advrisc/u18.04-imx8LBV1/Dockerf...

 

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

0 Kudos
Reply
8,894 Views
charleshuang
Senior Contributor II

Thanks NXP 

We find the solution to fixed the fail issue.

0 Kudos
Reply
8,808 Views
vinayskumar
Contributor I

Hi charleshuang,

We are also facing same issue when building yocto. what was the fix for this issue?

Regards,

Vinay

0 Kudos
Reply
8,787 Views
danmartzla
Contributor II

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.

7,833 Views
Kusuma
Contributor II
Hi,

im also facing same issue ,i have added the do_configure[network] = "1" at the end of the file again i tried but still im getting error.

And also can i know where exactly we need to add do_configure[network] = "1".

thanks
0 Kudos
Reply
7,810 Views
george
Senior Contributor II

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

7,664 Views
Kusuma
Contributor II

Hi, i have made changes but still its not working again its giving same error.

Thanks

kusuma

0 Kudos
Reply
5,457 Views
Jems-advantech
Contributor I

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

0 Kudos
Reply
1,066 Views
Jems-advantech
Contributor I

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. 

Jemsadvantech_1-1726824435707.png

nnshark commit history: Commits · nxp-imx/nnshark (github.com)

Jemsadvantech_0-1726824194408.png

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:

Submodule common error "unable to connect to naongit.freedesktop.org" · Issue #96 · RidgeRun/gst-sha...

 

0 Kudos
Reply