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
5,476 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
1 Solution
5,439 Views
charleshuang
Senior Contributor II

Thanks NXP 

We find the solution to fixed the fail issue.

View solution in original post

0 Kudos
11 Replies
3,829 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/

 

 
5,461 Views
charleshuang
Senior Contributor II

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

The repository is not found.

Do you have any advice?

0 Kudos
5,468 Views
joanxie
NXP TechSupport
NXP TechSupport

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

 

0 Kudos
5,463 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
5,440 Views
charleshuang
Senior Contributor II

Thanks NXP 

We find the solution to fixed the fail issue.

0 Kudos
5,354 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
5,333 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.

4,379 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
4,356 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

4,210 Views
Kusuma
Contributor II

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

Thanks

kusuma

0 Kudos
2,003 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