1981088_en-US

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

1981088_en-US

1981088_en-US

bitbake hang at Parsing recipes: 66% |####

I am using bitbake to compile Yocto, and I frequently encounter an issue where the compilation gets stuck at 66% during the parsing stage. It then hangs indefinitely, and I have to restart my computer multiple times to get it to proceed. Otherwise, it just stays stuck there and doesn't move forward.

below is the error information,

bitbake u-boot -c compile
Loading cache: 100% |##############################################################| Time: 0:00:00
Loaded 5396 entries from dependency cache.
Parsing recipes: 66% |######################################## | ETA: 0:00:00


wait some time will report error,

ERROR: ExpansionError during parsing /home/oven/sandy/connevo/d02a_connevo_a53_sw/sources/meta-alb/recipes-extended/opendds/opendds_git.bb
Traceback (most recent call last):
File "/home/oven/sandy/connevo/d02a_connevo_a53_sw/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1214, in srcrev_internal_helper(ud=, d=, name='default'):
if srcrev == "AUTOINC":
> srcrev = ud.method.latest_revision(ud, d, name)

Could you please help me resolve this issue? thanks.

Re: bitbake hang at Parsing recipes: 66% |####Hello Guilherme,
I tried many times, it seems your solution can solve me problem, thanks.
Re: bitbake hang at Parsing recipes: 66% |####

Hello, @xlfd_1981 

Thanks for your reply.

It is suggested using the Ubuntu20.04 for building the BSP as what you have done. 

I suggest trying executing the command "bitbake opendds -c cleanall", and then retry the test. 

Also thank Guilherme for his valuable suggestions.


BR

Chenyin


Re: bitbake hang at Parsing recipes: 66% |####

thanks chenyin,

Yes, I use Ubuntu20.04 for the Yocto build, this version can appear this issue?

Re: bitbake hang at Parsing recipes: 66% |####

Hello @xlfd_1981 ,


This issue occurs very frequently, specially when the connectivity to GitHub is not stable.

The problem is in the recipe: meta-alb/recipes-extended/opendds/opendds_git.bb

Particularly in the following statement:


SRCREV = "${AUTOREV}"

By using AUTOREV, it means they will poll the OpenDDS GitHub repository at the start of every build for checking if there are any updates. This is usually a bad idea.

Fortunately, the solution is simple. Simply replace "${AUTOREV}" by a specific commit id, for instance:


SRCREV = "58d1c0ca1c74986507773d50cce88fa1c8afb435"

 And the problem goes away.


Best regards,

Guilherme

Re: bitbake hang at Parsing recipes: 66% |####

Hello, @xlfd_1981 

Thanks for your post.

Sorry that I did not reproduce such issue, may I know if you are working with Ubuntu20.04 for the Yocto build?


BR

Chenyin


BR

Chenyin

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 03:50 PM
Updated by: