Yocto 3.3 5.10.72 BSP Build Fail

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Yocto 3.3 5.10.72 BSP Build Fail

ソリューションへジャンプ
6,638件の閲覧回数
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 件の賞賛
返信
1 解決策
6,601件の閲覧回数
charleshuang
Senior Contributor II

Thanks NXP 

We find the solution to fixed the fail issue.

元の投稿で解決策を見る

0 件の賞賛
返信
12 返答(返信)
16件の閲覧回数
fengyus
Contributor I

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.

0 件の賞賛
返信
4,991件の閲覧回数
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/

 

 
6,623件の閲覧回数
charleshuang
Senior Contributor II

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

The repository is not found.

Do you have any advice?

0 件の賞賛
返信
6,630件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

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

 

0 件の賞賛
返信
6,625件の閲覧回数
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 件の賞賛
返信
6,602件の閲覧回数
charleshuang
Senior Contributor II

Thanks NXP 

We find the solution to fixed the fail issue.

0 件の賞賛
返信
6,516件の閲覧回数
vinayskumar
Contributor I

Hi charleshuang,

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

Regards,

Vinay

0 件の賞賛
返信
6,495件の閲覧回数
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.

5,541件の閲覧回数
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 件の賞賛
返信
5,518件の閲覧回数
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

5,372件の閲覧回数
Kusuma
Contributor II

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

Thanks

kusuma

0 件の賞賛
返信
3,165件の閲覧回数
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 件の賞賛
返信