Skip to contentSkip to conversation

1.2_M2-Final build failures

DISCUSSION jfabernathy 3 participants 6 messages Feb 1, 2012 – Mar 12, 2012

lore
Share & tools
lore
#0 lore raw

Using the tarballs for Poky and meta-intel for 1.2_M2-Final, I was getting a lot of build failures below is what worked and what didn't. Not sure if this is a bug or if I'm missing something. I extracted the meta-intel tarball for 1.2_M2-Final in the poky directory created by extracting the poky tarball for 1.2_M2.Final.

1. building qemux86 core-image-minimal works
2. building qemux86 core-image-sato works
3. building n450 core-image-minimal fails with error: ERROR: Unable to

   parse /home/jim/poky/meta/recipes-core/tasks/task-base.bb:00:20
   Traceback (most recent call last):
      File "/home/jim/poky/bitbake/lib/bb/parse/ast.py", line 379, in
   multi_finalize(fn='/home/jim/poky/meta/recipes-core/tasks/task-base.bb
   <http://task-base.bb>', d=<bb.data_smart.DataSmart object at
   0x4a801d0>):
             try:
    >        finalize(fn, d)
             except bb.parse.SkipPackage as e:
      File "/home/jim/poky/bitbake/lib/bb/parse/ast.py", line 323, in
   finalize(fn='/home/jim/poky/meta/recipes-core/tasks/task-base.bb
   <http://task-base.bb>', d=<bb.data_smart.DataSmart object at
   0x4a801d0>, variant=None):
                 code.append("%s(d)" % funcname)
    >    bb.utils.simple_exec("\n".join(code), {"d": d})
             bb.data.update_data(d)
      File "/home/jim/poky/bitbake/lib/bb/utils.py", line 387, in
   simple_exec(code='__anon_119__home_jim_poky_meta_classes_staging_bbclass(d)\n__anon_485__home_jim_poky_meta_classes_base_bbclass(d)\n__anon_189__home_jim_poky_meta_classes_package_bbclass(d)\n__anon_1034__home_jim_poky_meta_classes_package_rpm_bbclass(d)\n__anon_20__home_jim_poky_meta_classes_debian_bbclass(d)\n__anon_55__home_jim_poky_meta_classes_sstate_bbclass(d)\n__anon_26__home_jim_poky_meta_classes_task_bbclass(d)\n__anon_140__home_jim_poky_meta_recipes_core_tasks_task_base_bb(d)',
   context={'d': <bb.data_smart.DataSmart object at 0x4a801d0>}):
         def simple_exec(code, context):
    >    exec(code, _context, context)

File "<string>", line 8, in <module>
File
"__anon_140__home_jim_poky_meta_recipes_core_tasks_task_base_bb",
line 8, in __anon_140__home_jim_poky_meta_recipes_core_tasks_task_base_bb(d=<bb.data_smart.DataSmart object at 0x4a801d0>)
AttributeError: 'NoneType' object has no attribute 'split'

ERROR: Command execution failed: Exited with 1
Summary: There were 1 WARNING messages shown.

Summary: There were 1 ERROR messages shown, returning a non-zero exit code.

4. building cedartrail core-image-minimal fails with error: ERROR:
Unable to parse conf/bitbake.conf: Could not include required file conf/machine/include/ia32-base.inc

Jim A

#1 lore raw
Quoted 52 lines · On Wednesday 01 February 2012 11:28:22 jfabernathy wrote:

Using the tarballs for Poky and meta-intel for 1.2_M2-Final, I was getting a lot of build failures below is what worked and what didn't. Not sure if this is a bug or if I'm missing something. I extracted the meta-intel tarball for 1.2_M2-Final in the poky directory created by extracting the poky tarball for 1.2_M2.Final.
...
3. building n450 core-image-minimal fails with error: ERROR: Unable to

    parse /home/jim/poky/meta/recipes-core/tasks/task-base.bb:00:20
    Traceback (most recent call last):
       File "/home/jim/poky/bitbake/lib/bb/parse/ast.py", line 379, in
    multi_finalize(fn='/home/jim/poky/meta/recipes-core/tasks/task-base.bb
    <http://task-base.bb>', d=<bb.data_smart.DataSmart object at
    0x4a801d0>):
              try:
     >        finalize(fn, d)

              except bb.parse.SkipPackage as e:
       File "/home/jim/poky/bitbake/lib/bb/parse/ast.py", line 323, in
    finalize(fn='/home/jim/poky/meta/recipes-core/tasks/task-base.bb
    <http://task-base.bb>', d=<bb.data_smart.DataSmart object at
    0x4a801d0>, variant=None):
                  code.append("%s(d)" % funcname)

     >    bb.utils.simple_exec("\n".join(code), {"d": d})

              bb.data.update_data(d)
       File "/home/jim/poky/bitbake/lib/bb/utils.py", line 387, in

simple_exec(code='__anon_119__home_jim_poky_meta_classes_staging_bbclass(d) \n__anon_485__home_jim_poky_meta_classes_base_bbclass(d)\n__anon_189__home_j im_poky_meta_classes_package_bbclass(d)\n__anon_1034__home_jim_poky_meta_cla sses_package_rpm_bbclass(d)\n__anon_20__home_jim_poky_meta_classes_debian_bb class(d)\n__anon_55__home_jim_poky_meta_classes_sstate_bbclass(d)\n__anon_26 __home_jim_poky_meta_classes_task_bbclass(d)\n__anon_140__home_jim_poky_meta _recipes_core_tasks_task_base_bb(d)', context={'d': <bb.data_smart.DataSmart object at 0x4a801d0>}):
def simple_exec(code, context):
> exec(code, _context, context)

File "<string>", line 8, in <module>
File
"__anon_140__home_jim_poky_meta_recipes_core_tasks_task_base_bb", line 8, in

__anon_140__home_jim_poky_meta_recipes_core_tasks_task_base_bb(d=<bb.data_s mart.DataSmart object at 0x4a801d0>)
AttributeError: 'NoneType' object has no attribute 'split'

ERROR: Command execution failed: Exited with 1
Summary: There were 1 WARNING messages shown.

Quoted 6 lines

Summary: There were 1 ERROR messages shown, returning a non-zero exit code.

4. building cedartrail core-image-minimal fails with error: ERROR:
Unable to parse conf/bitbake.conf: Could not include required file conf/machine/include/ia32-base.inc

I think I know what's going on here. In previous editions it was enough to have just the meta-intel sub-layer in your bblayers.conf (e.g. meta-crownbay)
- now you also need to add meta-intel itself to get certain common files. If you do this then your errors will go away.

I did notice this the other day and I think we can improve things such that you get a sensible error message in this situation rather than the above. I will try to send out some patches next week.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw
Quoted 59 lines · Paul Eggleton
Quoted 52 lines · On Wednesday 01 February 2012 11:28:22 jfabernathy wrote:

Using the tarballs for Poky and meta-intel for 1.2_M2-Final, I was getting a lot of build failures below is what worked and what didn't. Not sure if this is a bug or if I'm missing something. I extracted the meta-intel tarball for 1.2_M2-Final in the poky directory created by extracting the poky tarball for 1.2_M2.Final.
...
3. building n450 core-image-minimal fails with error: ERROR: Unable to

     parse /home/jim/poky/meta/recipes-core/tasks/task-base.bb:00:20
     Traceback (most recent call last):
        File "/home/jim/poky/bitbake/lib/bb/parse/ast.py", line 379, in
     multi_finalize(fn='/home/jim/poky/meta/recipes-core/tasks/task-base.bb
     <http://task-base.bb>', d=<bb.data_smart.DataSmart object at
     0x4a801d0>):
               try:
      >         finalize(fn, d)

               except bb.parse.SkipPackage as e:
        File "/home/jim/poky/bitbake/lib/bb/parse/ast.py", line 323, in
     finalize(fn='/home/jim/poky/meta/recipes-core/tasks/task-base.bb
     <http://task-base.bb>', d=<bb.data_smart.DataSmart object at
     0x4a801d0>, variant=None):
                   code.append("%s(d)" % funcname)

      >     bb.utils.simple_exec("\n".join(code), {"d": d})

               bb.data.update_data(d)
        File "/home/jim/poky/bitbake/lib/bb/utils.py", line 387, in

simple_exec(code='__anon_119__home_jim_poky_meta_classes_staging_bbclass(d) \n__anon_485__home_jim_poky_meta_classes_base_bbclass(d)\n__anon_189__home_j im_poky_meta_classes_package_bbclass(d)\n__anon_1034__home_jim_poky_meta_cla sses_package_rpm_bbclass(d)\n__anon_20__home_jim_poky_meta_classes_debian_bb class(d)\n__anon_55__home_jim_poky_meta_classes_sstate_bbclass(d)\n__anon_26 __home_jim_poky_meta_classes_task_bbclass(d)\n__anon_140__home_jim_poky_meta _recipes_core_tasks_task_base_bb(d)', context={'d':<bb.data_smart.DataSmart object at 0x4a801d0>}):
def simple_exec(code, context):
> exec(code, _context, context)

File "<string>", line 8, in<module>
File
"__anon_140__home_jim_poky_meta_recipes_core_tasks_task_base_bb", line 8, in

__anon_140__home_jim_poky_meta_recipes_core_tasks_task_base_bb(d=<bb.data_s mart.DataSmart object at 0x4a801d0>)
AttributeError: 'NoneType' object has no attribute 'split'

ERROR: Command execution failed: Exited with 1
Summary: There were 1 WARNING messages shown.

Quoted 6 lines

Summary: There were 1 ERROR messages shown, returning a non-zero exit code.

4. building cedartrail core-image-minimal fails with error: ERROR:
Unable to parse conf/bitbake.conf: Could not include required file conf/machine/include/ia32-base.inc

Quoted 8 lines

I think I know what's going on here. In previous editions it was enough to have just the meta-intel sub-layer in your bblayers.conf (e.g. meta-crownbay)
- now you also need to add meta-intel itself to get certain common files. If you do this then your errors will go away.

I did notice this the other day and I think we can improve things such that you get a sensible error message in this situation rather than the above. I will try to send out some patches next week.

okay that fixed it. To be clear:

BBFILES ?= ""
BBLAYERS ?= " \
/home/jim/poky-edison-6.1-M2/meta \
/home/jim/poky-edison-6.1-M2/meta-yocto \
/home/jim/poky-edison-6.1-M2/meta-intel \
/home/jim/poky-edison-6.1-M2/meta-intel/meta-cedartrail \
"

instead of

BBFILES ?= ""
BBLAYERS ?= " \
/home/jim/poky-edison-6.1-M2/meta \
/home/jim/poky-edison-6.1-M2/meta-yocto \
/home/jim/poky-edison-6.1-M2/meta-intel/meta-cedartrail \
"

Now if this is the way it remains, we have some docs to cleanup.

Jim A

Quoted 3 lines

Cheers,
Paul

#3 lore raw
In reply to Paul Eggleton

Dear Paul,

Quoted 14 lines · In message <3971839.nMHIKpoOXs@helios> you wrote:
Quoted 13 lines · On Wednesday 01 February 2012 11:28:22 jfabernathy wrote:

Using the tarballs for Poky and meta-intel for 1.2_M2-Final, I was getting a lot of build failures below is what worked and what didn't. Not sure if this is a bug or if I'm missing something. I extracted the meta-intel tarball for 1.2_M2-Final in the poky directory created by extracting the poky tarball for 1.2_M2.Final.
...
3. building n450 core-image-minimal fails with error: ERROR: Unable to

    parse /home/jim/poky/meta/recipes-core/tasks/task-base.bb:00:20
    Traceback (most recent call last):
       File "/home/jim/poky/bitbake/lib/bb/parse/ast.py", line 379, in
    multi_finalize(fn='/home/jim/poky/meta/recipes-core/tasks/task-base.bb
    <http://task-base.bb>', d=<bb.data_smart.DataSmart object at
    0x4a801d0>):

...

Quoted 8 lines
Quoted 3 lines

4. building cedartrail core-image-minimal fails with error: ERROR:
Unable to parse conf/bitbake.conf: Could not include required file conf/machine/include/ia32-base.inc

I think I know what's going on here. In previous editions it was enough to have just the meta-intel sub-layer in your bblayers.conf (e.g. meta-crownbay)
- now you also need to add meta-intel itself to get certain common files. If you do this then your errors will go away.

Is it correct to assume that your note refers to the "4." problem above only?

I see the very same error as described as "3." above, but I don't use sub-layers.

Any idea what mightbe causeing this, and how to fix it?

This is with 1.2_M3.rc1 ...

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
No problem is insoluble.
	-- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4
#4 lore raw
Quoted 28 lines · On Monday 12 March 2012 14:14:48 Wolfgang Denk wrote:
Quoted 21 lines · In message <3971839.nMHIKpoOXs@helios> Paul Eggleton wrote:
Quoted 20 lines · On Wednesday 01 February 2012 11:28:22 jfabernathy wrote:

Using the tarballs for Poky and meta-intel for 1.2_M2-Final, I was getting a lot of build failures below is what worked and what didn't. Not sure if this is a bug or if I'm missing something. I extracted the meta-intel tarball for 1.2_M2-Final in the poky directory created by extracting the poky tarball for 1.2_M2.Final.

...

3. building n450 core-image-minimal fails with error: ERROR: Unable to

    parse /home/jim/poky/meta/recipes-core/tasks/task-base.bb:00:20
    
    Traceback (most recent call last):
       File "/home/jim/poky/bitbake/lib/bb/parse/ast.py", line 379, in
    
    multi_finalize(fn='/home/jim/poky/meta/recipes-core/tasks/task-base.
    bb
    <http://task-base.bb>', d=<bb.data_smart.DataSmart object at

    0x4a801d0>):

...

Quoted 4 lines
Quoted 3 lines

4. building cedartrail core-image-minimal fails with error: ERROR:
Unable to parse conf/bitbake.conf: Could not include required file conf/machine/include/ia32-base.inc

Quoted 7 lines
Quoted 4 lines

I think I know what's going on here. In previous editions it was enough to have just the meta-intel sub-layer in your bblayers.conf (e.g. meta-crownbay) - now you also need to add meta-intel itself to get certain common files. If you do this then your errors will go away.

Is it correct to assume that your note refers to the "4." problem above only?

I don't recall now but I assume I meant both at the time. FWIW it seems that for Jim's case both issues were solved by the suggested fix.

Quoted 2 lines

I see the very same error as described as "3." above, but I don't use sub-layers.

I'm not sure what you mean here. Which entries for meta-intel do you have in your bblayers.conf?

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#5 lore raw

Dear Paul,

Quoted 6 lines · In message <1619950.WDgEWRegMs@helios> you wrote:
Quoted 3 lines

I see the very same error as described as "3." above, but I don't use sub-layers.

I'm not sure what you mean here. Which entries for meta-intel do you have in your bblayers.conf?

None. I have this:

	-> cat conf/bblayers.conf
	# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
	# changes incompatibly
	LCONF_VERSION = "4"

	BBFILES ?= ""
	BBLAYERS ?= " \
	  /home/wd/git/poky/eldk-5.2/meta \
	  /home/wd/git/poky/eldk-5.2/meta-yocto \
	  /home/wd/git/poky/eldk-5.2/meta-eldk \
	  "

This was working fine before, and we don't have any sub-layers in meta-eldk. So far I have no idea where to look ...

Thanks!

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
At the source of every error which is blamed on the computer you will
find at least two human errors, including the error of blaming it  on
the computer.