Yocto

Hello,

I’m trying to rebuild the open-embedded image but whatever I tried to do when I’m following the tutorial : https://github.com/96boards/documentation/wiki/Dragonboard-410c-OpenEmbedded-and-Yocto.
When I’m trying to run the “bitbake rpb-console-image” cmd I just keep getting the same error after a while:

ERROR: Exception during parse: Traceback (most recent call last): ETA: 00:01:29
File “/home/ubuntu/Yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2102, in parse_next
parsed, result = self.results.next()
File “/home/ubuntu/Yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2088, in parse_generator
result = self.result_queue.get(timeout=0.25)
File “/usr/lib/python2.7/multiprocessing/queues.py”, line 135, in get
res = self._recv()
TypeError: (‘init() takes at least 2 arguments (1 given)’, <class ‘bb.process.CmdError’>, ())

I’m trying to build it in a VMware with ubuntu 14.04 LTS 64bits but also with a debian 32bits
I also try to build it on the dragonboard itself but I still get the same error.

I’m not sure what I’m missing here. Could one of those that publish the builds give his environment ?

Thanks by advance,

Jerome.

hi,

i have seen that issue, few weeks ago. OTOH it was a mismatch between openembeded-core and bitbake git tree versions, which i had fixed in the manifest (i am not entirely sure… vaguely rings a bell…)

can you please make sure to be on the latest (e.g. run repo sync)? and try again?

for further debug, please send output of

repo manifest -r
repo info
repo status

Thanks for you answer ndec,
Same result with a new repo sync.
The result for the commands you ask below.
ubuntu@ubuntu:~/Yocto/oe-qcom/build-rpb$ repo manifest -r
<?xml version=“1.0” encoding=“UTF-8”?>
<manifest>
<remote fetch=“https://bitbucket.org” name=“bitbucket”/>
<remote fetch=“https://github.com” name=“github”/>
<remote fetch=“http://git.linaro.org” name=“linaro”/>
<remote fetch=“git://git.openembedded.org” name=“oe”/>
<remote fetch=“http://git.shr-project.org” name=“shr”/>
<remote fetch=“http://git.yoctoproject.org” name=“yocto”/>

<default revision=“jethro” sync-j=“4”/>

<project name=“96boards/meta-96boards” path=“layers/meta-96boards” remote=“git
<project name=“96boards/meta-rpb” path=“layers/meta-rpb” remote=“github” revis
<project name=“OSSystems/meta-browser” path=“layers/meta-browser” remote=“gith
<project name=“meta-qt5/meta-qt5” path=“layers/meta-qt5” remote=“github” revis
<project name=“ndechesne/meta-qcom” path=“layers/meta-qcom” remote=“github” re
<linkfile dest=“setup-environment” src=”…/…/.repo/manifests/setup-environm
</project>
<project name=“openembedded/bitbake” path=“bitbake” remote=“github” revision=”
<project name=“openembedded/meta-backports” path=“layers/meta-backports” remot
<project name=“openembedded/meta-linaro” path=“layers/meta-linaro” remote="lin
<project name=“openembedded/meta-openembedded” path=“layers/meta-openembedded”
<project name=“openembedded/openembedded-core” path=“layers/openembedded-core”
</manifest>

ubuntu@ubuntu:~/Yocto/oe-qcom/build-rpb$ repo info
Manifest branch: jethro
Manifest merge branch: refs/heads/jethro
Manifest groups: all,-notdefault

Project: openembedded/bitbake
Mount path: /home/ubuntu/Yocto/oe-qcom/bitbake
Current revision: 1.28
Local Branches: 1 [work]

Project: 96boards/meta-96boards
Mount path: /home/ubuntu/Yocto/oe-qcom/layers/meta-96boards
Current revision: master
Local Branches: 1 [work]

Project: openembedded/meta-backports
Mount path: /home/ubuntu/Yocto/oe-qcom/layers/meta-backports
Current revision: jethro
Local Branches: 1 [work]

Project: OSSystems/meta-browser
Mount path: /home/ubuntu/Yocto/oe-qcom/layers/meta-browser
Current revision: jethro
Local Branches: 1 [work]

Project: openembedded/meta-linaro
Mount path: /home/ubuntu/Yocto/oe-qcom/layers/meta-linaro
Current revision: jethro
Local Branches: 1 [work]

Project: openembedded/meta-openembedded
Mount path: /home/ubuntu/Yocto/oe-qcom/layers/meta-openembedded
Current revision: jethro
Local Branches: 1 [work]

Project: ndechesne/meta-qcom
Mount path: /home/ubuntu/Yocto/oe-qcom/layers/meta-qcom
Current revision: jethro
Local Branches: 1 [work]

Project: meta-qt5/meta-qt5
Mount path: /home/ubuntu/Yocto/oe-qcom/layers/meta-qt5
Current revision: jethro
Local Branches: 1 [work]

Project: 96boards/meta-rpb
Mount path: /home/ubuntu/Yocto/oe-qcom/layers/meta-rpb
Current revision: master
Local Branches: 1 [work]

Project: openembedded/openembedded-core
Mount path: /home/ubuntu/Yocto/oe-qcom/layers/openembedded-core
Current revision: jethro
Local Branches: 1 [work]

ubuntu@ubuntu:~/Yocto/oe-qcom/build-rpb$ repo status
project layers/meta-96boards/ branch work
project layers/meta-backports/ branch work
project layers/meta-browser/ branch work
project layers/meta-linaro/ branch work
project bitbake/ branch work
project layers/meta-qcom/ branch work
project layers/meta-qt5/ branch work
project layers/meta-rpb/ branch work
project layers/openembedded-core/ branch work
project layers/meta-openembedded/ branch work

Jerome

hi,

i am not quite sure what’s going on… can you try to delete this file:

./cache/bb_codeparser.dat

(it’s in the build folder)

or if you can just delete the entire build folder to restart from a clean state.

hi,

I already tried to build it 3 times from scratch and got the same error.
But I will give another try tonight.

Thanks for your time,

Jerome.

Hi,

I started again to build a new environment in a new repo but same results. Here is what I did :
After the
I tried to build 4 times the image rpb-desktop-image
I deleted the build rep
I did a “. setup environment” to recreate the build rep
I then use the commands “bitbake cleanstate”
I deleted the build rep
I did a “. setup environment” to recreate the build rep
I then use the commands “bitbake listtasks”

The commands always failed during parsing the recipes for any previous command below are the results:

bitbake rpb-desktop-image :

NOTE: Started PRServer with DBfile: /home/ubuntu/Documents/yocto/oe-qcom/build-rpb/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 36574, PID: 5254
NOTE: Error during finalise of /home/ubuntu/Documents/yocto/oe-qcom/build-rpb/conf/…/…/layers/openembedded-core/meta/recipes-core/images/core-image-minimal.bb
ERROR: Exception during parse: Traceback (most recent call last):
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2102, in parse_next
parsed, result = self.results.next()
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2088, in parse_generator
result = self.result_queue.get(timeout=0.25)
File “/usr/lib/python2.7/multiprocessing/queues.py”, line 135, in get
res = self._recv()
TypeError: (‘init() takes at least 2 arguments (1 given)’, <class ‘bb.process.CmdError’>, ())
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

NOTE: Started PRServer with DBfile: /home/ubuntu/Documents/yocto/oe-qcom/build-rpb/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 33663, PID: 8550
Loading cache: 100% |###########################################| ETA: 00:00:00
Loaded 1463 entries from dependency cache.
NOTE: Error during finalise of /home/ubuntu/Documents/yocto/oe-qcom/build-rpb/conf/…/…/layers/openembedded-core/meta/recipes-graphics/images/core-image-x11.bb
NOTE: Error during finalise of /home/ubuntu/Documents/yocto/oe-qcom/build-rpb/conf/…/…/layers/openembedded-core/meta/recipes-graphics/images/core-image-clutter.bb
ERROR: Exception during parse: Traceback (most recent call last):
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2102, in parse_next
parsed, result = self.results.next()
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2088, in parse_generator
result = self.result_queue.get(timeout=0.25)
File “/usr/lib/python2.7/multiprocessing/queues.py”, line 135, in get
res = self._recv()
TypeError: (‘init() takes at least 2 arguments (1 given)’, <class ‘bb.process.CmdError’>, ())
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

NOTE: Error during finalise of /home/ubuntu/Documents/yocto/oe-qcom/build-rpb/conf/…/…/layers/openembedded-core/meta/recipes-graphics/images/core-image-clutter.bb
ERROR: Exception during parse: Traceback (most recent call last):
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2102, in parse_next
parsed, result = self.results.next()
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2088, in parse_generator
result = self.result_queue.get(timeout=0.25)
File “/usr/lib/python2.7/multiprocessing/queues.py”, line 135, in get
res = self._recv()
TypeError: (‘init() takes at least 2 arguments (1 given)’, <class ‘bb.process.CmdError’>, ())
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

NOTE: Error during finalise of /home/ubuntu/Documents/yocto/oe-qcom/build-rpb/conf/…/…/layers/openembedded-core/meta/recipes-graphics/images/core-image-clutter.bb
ERROR: Exception during parse: Traceback (most recent call last):
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2102, in parse_next
parsed, result = self.results.next()
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2088, in parse_generator
result = self.result_queue.get(timeout=0.25)
File “/usr/lib/python2.7/multiprocessing/queues.py”, line 135, in get
res = self._recv()
TypeError: (‘init() takes at least 2 arguments (1 given)’, <class ‘bb.process.CmdError’>, ())
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

bitbake cleanstate:

EventAdapter puked: can’t start new threadEventAdapter puked: can’t start new thread

EventAdapter puked: can’t start new thread
ERROR: Exception during parse: Traceback (most recent call last):
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2102, in parse_next
parsed, result = self.results.next()
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2088, in parse_generator
result = self.result_queue.get(timeout=0.25)
File “/usr/lib/python2.7/multiprocessing/queues.py”, line 135, in get
res = self._recv()
TypeError: (‘init() takes at least 2 arguments (1 given)’, <class ‘bb.process.CmdError’>, ())

bitbake listtasks:

NOTE: Error during finalise of /home/ubuntu/Documents/yocto/oe-qcom/build-rpb/conf/…/…/layers/meta-openembedded/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb
ERROR: Exception during parse: Traceback (most recent call last): | ETA: 00:02:15
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2102, in parse_next
parsed, result = self.results.next()
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2088, in parse_generator
result = self.result_queue.get(timeout=0.25)
File “/usr/lib/python2.7/multiprocessing/queues.py”, line 135, in get
res = self._recv()
TypeError: (‘init() takes at least 2 arguments (1 given)’, <class ‘bb.process.CmdError’>, ())

ERROR: Command execution failed: Traceback (most recent call last):
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/command.py”, line 101, in runAsyncCommand
self.cooker.updateCache()
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 1549, in updateCache
if not self.parser.parse_next():
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2143, in parse_next
self.shutdown(clean=False)
File “/home/ubuntu/Documents/yocto/oe-qcom/bitbake/lib/bb/cooker.py”, line 2045, in shutdown
self.feeder_quit.put(‘cancel’)
File “/usr/lib/python2.7/multiprocessing/queues.py”, line 107, in put
self._start_thread()
File “/usr/lib/python2.7/multiprocessing/queues.py”, line 191, in _start_thread
self._thread.start()
File “/usr/lib/python2.7/threading.py”, line 745, in start
_start_new_thread(self.__bootstrap, ())
error: can’t start new thread

Thanks,

Jérôme.

Hello,

Ok so after few days I finally figured out what was wrong and solved this problem.

This error was simply caused by a lack of memory. My VM’s were running with 1Go of RAM + 1 Go of swap.
I extended the RAM to 3Go and it works now like a charm.

Jérôme.

ah, great. well at least thanks for letting us know and keeping a trace of the resolution here… for sure the errors were very explicit… but that’s usually the case when the OOM killer comes in…