Skip to contentSkip to conversation

rootfs fails to build in current master

DISCUSSION Mike Looijmans 2 participants 3 messages Mar 1, 2014 – Mar 2, 2014

lore
Share & tools
lore
#0 lore raw

I get this mysterious error at rootfs after updating to current master:

Exception: AttributeError: 'module' object has no attribute 'shell_trap_code'

I haven't been following OE for a while, so I have no clue as to what caused this.

Stack trace:

File: '/media/work/master-next/openembedded-core/meta/lib/oe/image.py', lineno: 248, function: _write_script

     0244:        self.d.setVarFlag('img_creation_func', 'func', 1)
     0245:        self.d.setVarFlag('img_creation_func', 'fakeroot', 1)
     0246:
     0247:        with open(script_name, "w+") as script:

*** 0248: script.write("%s" % bb.build.shell_trap_code())
0249: script.write("export ROOTFS_SIZE=%d\n" %
self._get_rootfs_size())
0250: bb.data.emit_func('img_creation_func', script,
self.d)

     0251:            script.write("img_creation_func\n")
     0252:
Signature · 1 line
Mike Looijmans
#1 lore raw
Quoted 17 lines · Mike Looijmans

I get this mysterious error at rootfs after updating to current master:

Exception: AttributeError: 'module' object has no attribute 'shell_trap_code'

I haven't been following OE for a while, so I have no clue as to what caused this.

Stack trace:

File: '/media/work/master-next/openembedded-core/meta/lib/oe/image.py',
lineno: 248, function: _write_script

     0244:        self.d.setVarFlag('img_creation_func', 'func', 1)
     0245:        self.d.setVarFlag('img_creation_func', 'fakeroot', 1)
     0246:
     0247:        with open(script_name, "w+") as script:
Quoted 7 lines

*** 0248: script.write("%s" % bb.build.shell_trap_code())
0249: script.write("export ROOTFS_SIZE=%d\n" %
self._get_rootfs_size())
0250: bb.data.emit_func('img_creation_func', script, self.d)
0251: script.write("img_creation_func\n")
0252:

As a quick stab-in-the-dark guess: Are you using the current master of Bitbake to build this? Each branch of OpenEmbedded has a corresponding branch of Bitbake, OE master requires Bitbake master.

Signature · 4 lines
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk
#2 lore raw
Quoted 5 lines · Paul Barker
Quoted 4 lines · Mike Looijmans

I get this mysterious error at rootfs after updating to current master:

Exception: AttributeError: 'module' object has no attribute 'shell_trap_code'

...

Quoted 4 lines

As a quick stab-in-the-dark guess: Are you using the current master of Bitbake to build this? Each branch of OpenEmbedded has a corresponding branch of Bitbake, OE master requires Bitbake master.

That could be the case - though in the past it complained when bitbake was out of date.

I fetched bitbake's master.

Now I'm getting dozens of fetcher and parser failures, so apparently something changed in the fetching of repositories.

Signature · 1 line
Mike