Skip to contentSkip to conversation

bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind'

DISCUSSION Cestonaro Thilo 3 participants 10 messages Jul 3, 2013 – Jul 29, 2013

lore
Share & tools
lore
#0 lore raw

hey,

can someone point me in the right direction what actually goes wrong?

Looks very strange, so no recipe or compile error but rather than a bug in bitbake.

Greetings
Thilo

------------------------------------------------------------------------------------------------------------------
bitbake linux-libc-headers

Loading cache: 100% |########################################################################################################################################################################| ETA: 00:00:00 Loaded 2155 entries from dependency cache.

Build Configuration:

BB_VERSION        = "1.19.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.04"
TARGET_SYS        = "arm-magna-linux-gnueabi"
MACHINE           = "dm814x-evm"
DISTRO            = "magna"
DISTRO_VERSION    = "2012.1"
TUNE_FEATURES     = "armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta-angstrom     = "angstrom-v2013.06-yocto1.4:0f9be94e05c19b94433431e8354bb1c4884008b4"

meta-oe
meta-systemd
meta-efl
meta-gpe
meta-gnome
meta-xfce
meta-initramfs
toolchain-layer
meta-multimedia
meta-networking
meta-webserver

meta-ruby         = "master:14082ab64805cf9571309f674c036f4856029204"
meta-browser      = "danny:de6eb680c0efe0df9ed12526380a10d3aab4359a"
meta-ti           = "angstrom-staging-yocto1.4:7d06930ee8c9a9a7138b9b13fc85aef23729292d"
meta-magna        = "<unknown>:<unknown>"
meta              = "master:3472c1f7ab409cd91c1d4782d9e00880b84e3ae8"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
No currently running tasks (483 of 491)
ERROR: An uncaught exception occured in runqueue, please see the failure below:
ERROR: Running idle function
Traceback (most recent call last):
File
"/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue.py", line 1354, in RunQueueExecuteTasks.execute():
if not self.rq.fakeworker:
> self.rq.start_fakeworker(self)
self.rq.fakeworker.stdin.write("<runtask>" + pickle.dumps((fn, task, taskname, False, self.cooker.collection.get_file_appends(fn))) + "</runtask>")
File
"/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue.py", line 874, in RunQueue.start_fakeworker(rqexec=<bb.runqueue.RunQueueExecuteTasks instance at 0xa2bfef0>):
if not self.fakeworker:
> self.fakeworker, self.fakeworkerpipe =
self._start_worker(True, rqexec)

File
"/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue.py", line 826, in RunQueue._start_worker(fakeroot=True, rqexec=<bb.runqueue.RunQueueExecuteTasks instance at 0xa2bfef0>):
env[key] = value
> worker = subprocess.Popen([fakerootcmd,
"bitbake-worker", "decafbad"], stdout=subprocess.PIPE, stdin=subprocess.PIPE, env=env)
else:
File "/usr/lib/python2.7/subprocess.py", line 711, in
Popen.__init__(args=[None, 'bitbake-worker', 'decafbad'], bufsize=0, executable=None, stdin=-1, stdout=-1, stderr=None, preexec_fn=None, close_fds=False, shell=False, cwd=None, env={'GIT_PROXY_COMMAND': '/home/magna/bin/gitProxyCommand.sh', 'TERM': 'screen', 'SHELL': '/bin/bash', 'PSEUDO_BUILD': '2', 'http_proxy': 'http://172.25.159.7:81/', 'ftp_proxy': 'http://172.25.159.7:81/', 'BBPATH': '/home/magna/Projects/magna/setup-scripts:/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/meta', 'https_proxy': 'http://172.25.159.7:81/', 'PWD': '/home/magna/Projects/magna/setup-scripts', 'LOGNAME': 'magna', 'USER': 'magna', 'PATH': '/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/scripts:/home/magna/Projects/magna/setup-scripts/sources/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/cestonarot/bin/ti/ccsv5/eclipse/jre/bin:/opt/toolchain/bin:/home/cestonarot/Projects/depot_tools', 'HOME': '/home/magna', 'DISTRO': 'angstrom-v2012.12', 'PSEUDO_DISABLED': '1', 'BB_ENV_EXTRAWHITE': 'PSEUDO_BUILD PSEUDO_DISABLED MACHINE DISTRO TCLIBC TCMODE GIT_PROXY_COMMAND http_proxy ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS'}, universal_newlines=False, startupinfo=None, creationflags=0):
c2pread, c2pwrite,
> errread, errwrite)
except Exception:
File "/usr/lib/python2.7/subprocess.py", line 1309, in
Popen._execute_child(args=[None, 'bitbake-worker', 'decafbad'], executable=None, preexec_fn=None, close_fds=False, cwd=None, env={'GIT_PROXY_COMMAND': '/home/magna/bin/gitProxyCommand.sh', 'TERM': 'screen', 'SHELL': '/bin/bash', 'PSEUDO_BUILD': '2', 'http_proxy': 'http://172.25.159.7:81/', 'ftp_proxy': 'http://172.25.159.7:81/', 'BBPATH': '/home/magna/Projects/magna/setup-scripts:/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/meta', 'https_proxy': 'http://172.25.159.7:81/', 'PWD': '/home/magna/Projects/magna/setup-scripts', 'LOGNAME': 'magna', 'USER': 'magna', 'PATH': '/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/scripts:/home/magna/Projects/magna/setup-scripts/sources/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/cestonarot/bin/ti/ccsv5/eclipse/jre/bin:/opt/toolchain/bin:/home/cestonarot/Projects/depot_tools', 'HOME': '/home/magna', 'DISTRO': 'angstrom-v2012.12', 'PSEUDO_DISABLED': '1', 'BB_ENV_EXTRAWHITE': 'PSEUDO_BUILD PSEUDO_DISABLED MACHINE DISTRO TCLIBC TCMODE GIT_PROXY_COMMAND http_proxy ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS'}, universal_newlines=False, startupinfo=None, creationflags=0, shell=False, p2cread=11, p2cwrite=14, c2pread=15, c2pwrite=16, errread=None, errwrite=None):
print child_exception
> raise child_exception

AttributeError: 'NoneType' object has no attribute 'rfind'

NOTE: Tasks Summary: Attempted 482 tasks of which 469 didn't need to be rerun and all succeeded. No currently running tasks (483 of 491)

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

#1 lore raw

hey,

found it. The Var "FAKEROOTCMD" wasn't set so bitbake died as executing "None" doesn't work.

Added
FAKEROOTCMD="fakeroot"
to my local.conf and it worked.

But anyway, shouldn't this be the default?!

Greetings
Thilo

Quoted 144 lines · Cestonaro Thilo

hey,

can someone point me in the right direction what actually goes wrong?

Looks very strange, so no recipe or compile error but rather than a bug in bitbake.

Greetings
Thilo

------------------------------------------------------------------------------------------------------------------
bitbake linux-libc-headers

Loading cache: 100%

|########################################################################################################################################################################|
ETA:  00:00:00

Loaded 2155 entries from dependency cache.

Build Configuration:

BB_VERSION        = "1.19.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.04"
TARGET_SYS        = "arm-magna-linux-gnueabi"
MACHINE           = "dm814x-evm"
DISTRO            = "magna"
DISTRO_VERSION    = "2012.1"
TUNE_FEATURES     = "armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta-angstrom     =

"angstrom-v2013.06-yocto1.4:0f9be94e05c19b94433431e8354bb1c4884008b4" meta-oe
meta-systemd
meta-efl
meta-gpe
meta-gnome
meta-xfce
meta-initramfs
toolchain-layer
meta-multimedia
meta-networking
meta-webserver

meta-ruby         = "master:14082ab64805cf9571309f674c036f4856029204"
meta-browser      = "danny:de6eb680c0efe0df9ed12526380a10d3aab4359a"
meta-ti           =

"angstrom-staging-yocto1.4:7d06930ee8c9a9a7138b9b13fc85aef23729292d"
meta-magna = "<unknown>:<unknown>"
meta = "master:3472c1f7ab409cd91c1d4782d9e00880b84e3ae8"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
No currently running tasks (483 of 491)
ERROR: An uncaught exception occured in runqueue, please see the failure below:
ERROR: Running idle function
Traceback (most recent call last):
File
"/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue.py", line 1354, in RunQueueExecuteTasks.execute():
if not self.rq.fakeworker:
> self.rq.start_fakeworker(self)
self.rq.fakeworker.stdin.write("<runtask>" + pickle.dumps((fn, task, taskname, False, self.cooker.collection.get_file_appends(fn))) + "</runtask>")
File
"/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue.py", line 874, in RunQueue.start_fakeworker(rqexec=<bb.runqueue.RunQueueExecuteTasks instance at 0xa2bfef0>):
if not self.fakeworker:
> self.fakeworker, self.fakeworkerpipe =
self._start_worker(True, rqexec)

File
"/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue.py", line 826, in RunQueue._start_worker(fakeroot=True, rqexec=<bb.runqueue.RunQueueExecuteTasks instance at 0xa2bfef0>):
env[key] = value
> worker = subprocess.Popen([fakerootcmd,
"bitbake-worker", "decafbad"], stdout=subprocess.PIPE, stdin=subprocess.PIPE, env=env)

               else:
    File "/usr/lib/python2.7/subprocess.py", line 711, in

Popen.__init__(args=[None, 'bitbake-worker', 'decafbad'], bufsize=0,
executable=None, stdin=-1, stdout=-1, stderr=None, preexec_fn=None,
close_fds=False, shell=False, cwd=None, env={'GIT_PROXY_COMMAND':
'/home/magna/bin/gitProxyCommand.sh', 'TERM': 'screen', 'SHELL':
'/bin/bash', 'PSEUDO_BUILD': '2', 'http_proxy':
'http://172.25.159.7:81/', 'ftp_proxy': 'http://172.25.159.7:81/',
'BBPATH':
'/home/magna/Projects/magna/setup-scripts:/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/meta',
'https_proxy': 'http://172.25.159.7:81/', 'PWD':
'/home/magna/Projects/magna/setup-scripts', 'LOGNAME': 'magna', 'USER':
'magna', 'PATH':
'/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/scripts:/home/magna/Projects/magna/setup-scripts/sources/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/cestonarot/bin/ti/ccsv5/eclipse/jre/bin:/opt/toolchain/bin:/home/cestonarot/Projects/depot_tools', 'HOME': '/home/magna', 'DISTRO': 'angstrom-v2012.12', 'PSEUDO_DISABLED':
'1', 'BB_ENV_EXTRAWHITE': 'PSEUDO_BUILD PSEUDO_DISABLED MACHINE DISTRO
TCLIBC TCMODE GIT_PROXY_COMMAND http_proxy ftp_proxy https_proxy
all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK
BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS'},
universal_newlines=False, startupinfo=None, creationflags=0):
c2pread, c2pwrite,
> errread, errwrite)
except Exception:
File "/usr/lib/python2.7/subprocess.py", line 1309, in
Popen._execute_child(args=[None, 'bitbake-worker', 'decafbad'],
executable=None, preexec_fn=None, close_fds=False, cwd=None,
env={'GIT_PROXY_COMMAND': '/home/magna/bin/gitProxyCommand.sh', 'TERM':
'screen', 'SHELL': '/bin/bash', 'PSEUDO_BUILD': '2', 'http_proxy':
'http://172.25.159.7:81/', 'ftp_proxy': 'http://172.25.159.7:81/',
'BBPATH':
'/home/magna/Projects/magna/setup-scripts:/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/meta',
'https_proxy': 'http://172.25.159.7:81/', 'PWD':
'/home/magna/Projects/magna/setup-scripts', 'LOGNAME': 'magna', 'USER':
'magna', 'PATH':
'/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/scripts:/home/magna/Projects/magna/setup-scripts/sources/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/cestonarot/bin/ti/ccsv5/eclipse/jre/bin:/opt/toolchain/bin:/home/cestonarot/Projects/depot_tools', 'HOME': '/home/magna', 'DISTRO': 'angstrom-v2012.12', 'PSEUDO_DISABLED':
'1', 'BB_ENV_EXTRAWHITE': 'PSEUDO_BUILD PSEUDO_DISABLED MACHINE DISTRO
TCLIBC TCMODE GIT_PROXY_COMMAND http_proxy ftp_proxy https_proxy
all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK
BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS'},
universal_newlines=False, startupinfo=None, creationflags=0,
shell=False, p2cread=11, p2cwrite=14, c2pread=15, c2pwrite=16,
errread=None, errwrite=None):
print child_exception
> raise child_exception

AttributeError: 'NoneType' object has no attribute 'rfind'

NOTE: Tasks Summary: Attempted 482 tasks of which 469 didn't need to be rerun and all succeeded.
No currently running tasks (483 of 491)

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

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw
Quoted 177 lines · On Thursday 04 July 2013 10:18:32 Cestonaro Thilo wrote:

hey,

found it. The Var "FAKEROOTCMD" wasn't set so bitbake died as executing "None" doesn't work.

Added
FAKEROOTCMD="fakeroot"
to my local.conf and it worked.

But anyway, shouldn't this be the default?!

Greetings
Thilo

Quoted 162 lines · Cestonaro Thilo

hey,

can someone point me in the right direction what actually goes wrong?

Looks very strange, so no recipe or compile error but rather than a bug in bitbake.

Greetings
Thilo

--------------------------------------------------------------------------
---------------------------------------- bitbake linux-libc-headers

Loading cache: 100%

|#########################################################################
|#########################################################################
|######################|> 

ETA: 00:00:00
Loaded 2155 entries from dependency cache.

Build Configuration:

BB_VERSION        = "1.19.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.04"
TARGET_SYS        = "arm-magna-linux-gnueabi"
MACHINE           = "dm814x-evm"
DISTRO            = "magna"
DISTRO_VERSION    = "2012.1"
TUNE_FEATURES     = "armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta-angstrom     =

"angstrom-v2013.06-yocto1.4:0f9be94e05c19b94433431e8354bb1c4884008b4" meta-oe
meta-systemd
meta-efl
meta-gpe
meta-gnome
meta-xfce
meta-initramfs
toolchain-layer
meta-multimedia
meta-networking
meta-webserver

meta-ruby         = "master:14082ab64805cf9571309f674c036f4856029204"
meta-browser      = "danny:de6eb680c0efe0df9ed12526380a10d3aab4359a"
meta-ti           =

"angstrom-staging-yocto1.4:7d06930ee8c9a9a7138b9b13fc85aef23729292d"
meta-magna = "<unknown>:<unknown>"
meta = "master:3472c1f7ab409cd91c1d4782d9e00880b84e3ae8"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
No currently running tasks (483 of 491)
ERROR: An uncaught exception occured in runqueue, please see the failure below:
ERROR: Running idle function

Traceback (most recent call last):
File

"/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue. py",>
line 1354, in RunQueueExecuteTasks.execute():
if not self.rq.fakeworker:
> self.rq.start_fakeworker(self)

self.rq.fakeworker.stdin.write("<runtask>" + pickle.dumps((fn, task, taskname, False, self.cooker.collection.get_file_appends(fn))) + "</runtask>")

File

"/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue. py", line 874, in RunQueue.start_fakeworker(rqexec=<bb.runqueue.RunQueueExecuteTasks

instance at 0xa2bfef0>):
if not self.fakeworker:
> self.fakeworker, self.fakeworkerpipe =

self._start_worker(True, rqexec)

File

"/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue. py", line 826, in RunQueue._start_worker(fakeroot=True,

rqexec=<bb.runqueue.RunQueueExecuteTasks instance at 0xa2bfef0>):
env[key] = value
>
> worker = subprocess.Popen([fakerootcmd,

"bitbake-worker", "decafbad"], stdout=subprocess.PIPE, stdin=subprocess.PIPE, env=env)

               else:
    File "/usr/lib/python2.7/subprocess.py", line 711, in

Popen.__init__(args=[None, 'bitbake-worker', 'decafbad'], bufsize=0, executable=None, stdin=-1, stdout=-1, stderr=None, preexec_fn=None, close_fds=False, shell=False, cwd=None, env={'GIT_PROXY_COMMAND':
'/home/magna/bin/gitProxyCommand.sh', 'TERM': 'screen', 'SHELL':
'/bin/bash', 'PSEUDO_BUILD': '2', 'http_proxy':
'http://172.25.159.7:81/', 'ftp_proxy': 'http://172.25.159.7:81/', 'BBPATH':
'/home/magna/Projects/magna/setup-scripts:/home/magna/Projects/magna/setup -scripts/sources/openembedded-core/meta', 'https_proxy':
'http://172.25.159.7:81/', 'PWD':
'/home/magna/Projects/magna/setup-scripts', 'LOGNAME': 'magna', 'USER':
'magna', 'PATH':
'/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/script s:/home/magna/Projects/magna/setup-scripts/sources/bitbake/bin:/usr/local/ sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/ga mes:/home/cestonarot/bin/ti/ccsv5/eclipse/jre/bin:/opt/toolchain/bin:/home /cestonarot/Projects/depot_tools', 'HOME': '/home/magna', 'DISTRO':
'angstrom-v2012.12', 'PSEUDO_DISABLED': '1', 'BB_ENV_EXTRAWHITE':
'PSEUDO_BUILD PSEUDO_DISABLED MACHINE DISTRO TCLIBC TCMODE GIT_PROXY_COMMAND http_proxy ftp_proxy https_proxy
all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS'},

universal_newlines=False, startupinfo=None, creationflags=0):
c2pread, c2pwrite,

> errread, errwrite)

except Exception:
File "/usr/lib/python2.7/subprocess.py", line 1309, in

Popen._execute_child(args=[None, 'bitbake-worker', 'decafbad'], executable=None, preexec_fn=None, close_fds=False, cwd=None, env={'GIT_PROXY_COMMAND': '/home/magna/bin/gitProxyCommand.sh', 'TERM':
'screen', 'SHELL': '/bin/bash', 'PSEUDO_BUILD': '2', 'http_proxy':
'http://172.25.159.7:81/', 'ftp_proxy': 'http://172.25.159.7:81/', 'BBPATH':
'/home/magna/Projects/magna/setup-scripts:/home/magna/Projects/magna/setup -scripts/sources/openembedded-core/meta', 'https_proxy':
'http://172.25.159.7:81/', 'PWD':
'/home/magna/Projects/magna/setup-scripts', 'LOGNAME': 'magna', 'USER':
'magna', 'PATH':
'/home/magna/Projects/magna/setup-scripts/sources/openembedded-core/script s:/home/magna/Projects/magna/setup-scripts/sources/bitbake/bin:/usr/local/ sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/ga mes:/home/cestonarot/bin/ti/ccsv5/eclipse/jre/bin:/opt/toolchain/bin:/home /cestonarot/Projects/depot_tools', 'HOME': '/home/magna', 'DISTRO':
'angstrom-v2012.12', 'PSEUDO_DISABLED': '1', 'BB_ENV_EXTRAWHITE':
'PSEUDO_BUILD PSEUDO_DISABLED MACHINE DISTRO TCLIBC TCMODE GIT_PROXY_COMMAND http_proxy ftp_proxy https_proxy
all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS'}, universal_newlines=False, startupinfo=None, creationflags=0, shell=False, p2cread=11, p2cwrite=14, c2pread=15, c2pwrite=16,

errread=None, errwrite=None):
print child_exception

> raise child_exception

Quoted 8 lines
Quoted 8 lines

AttributeError: 'NoneType' object has no attribute 'rfind'

NOTE: Tasks Summary: Attempted 482 tasks of which 469 didn't need to be rerun and all succeeded.
No currently running tasks (483 of 491)

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

FAKEROOTCMD is set in meta/conf/bitbake.conf, so this is indeed unexpected. BTW, "fakeroot" is not correct - it needs to point to pseudo (and that is the default if you have a look at meta/conf/bitbake.conf).

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw
Quoted 10 lines · Paul Eggleton
Quoted 9 lines · On Thursday 04 July 2013 10:18:32 Cestonaro Thilo wrote:

hey,

found it. The Var "FAKEROOTCMD" wasn't set so bitbake died as executing "None" doesn't work.

Added
FAKEROOTCMD="fakeroot"
to my local.conf and it worked.

Quoted 7 lines
Quoted 2 lines

But anyway, shouldn't this be the default?!

FAKEROOTCMD is set in meta/conf/bitbake.conf, so this is indeed unexpected. BTW, "fakeroot" is not correct - it needs to point to pseudo (and that is the default if you have a look at meta/conf/bitbake.conf).

I stumbled onto this sort of error when I cloned poky at master but copied my bblayers.conf from a previous build and didn't update the paths to point to the correct places for the layers. So I was running latest bitbake with latest poky 'scripts' directory on the path, against an old version of the 'dylan' branch of poky.

What versions of openembedded/poky/bitbake are you using? If they're fetched from git I'd recommend updating everything and trying again. It could just be a mismatch between the bitbake version and the metadata versions.

Hope this helps,

--
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk

#4 lore raw
Quoted 24 lines · On Thursday 04 July 2013 10:53:15 Paul Barker wrote:
Quoted 10 lines · Paul Eggleton
Quoted 9 lines · On Thursday 04 July 2013 10:18:32 Cestonaro Thilo wrote:

hey,

found it. The Var "FAKEROOTCMD" wasn't set so bitbake died as executing "None" doesn't work.

Added
FAKEROOTCMD="fakeroot"
to my local.conf and it worked.

Quoted 6 lines
Quoted 1 line

But anyway, shouldn't this be the default?!

FAKEROOTCMD is set in meta/conf/bitbake.conf, so this is indeed unexpected.
BTW, "fakeroot" is not correct - it needs to point to pseudo (and that is the default if you have a look at meta/conf/bitbake.conf).

I stumbled onto this sort of error when I cloned poky at master but copied my bblayers.conf from a previous build and didn't update the paths to point to the correct places for the layers. So I was running latest bitbake with latest poky 'scripts' directory on the path, against an old version of the 'dylan' branch of poky.

Quoted 4 lines

What versions of openembedded/poky/bitbake are you using? If they're fetched from git I'd recommend updating everything and trying again. It could just be a mismatch between the bitbake version and the metadata versions.

If this issue is reproducible I'd really appreciate some help in doing so; we shouldn't be showing tracebacks if we can show a meaningful error.

Cheers,
Paul

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

If this issue is reproducible I'd really appreciate some help in doing so; we shouldn't be showing tracebacks if we can show a meaningful error.

Not got time to try reproducing right now, but I did have a very quick look in git.

On the bitbake side:
http://git.openembedded.org/bitbake/commit/?id=860ec42b220b7ed3f3bbe52c3546bba66644eac8

On the oe-core side:
http://git.openembedded.org/openembedded-core/commit/?id=003ea0fd1017dde50ced710179d0dc2e835d5185

If you're running bitbake with the linked commit applied it looks for FAKEROOTCMD, if your oe-core doesn't have the linked commit it won't find FAKEROOTCMD.

--
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk

#6 lore raw

Hey,

Quoted 10 lines

Not got time to try reproducing right now, but I did have a very quick look in git.

On the bitbake side:
http://git.openembedded.org/bitbake/commit/?id=860ec42b220b7ed3f3bbe52c3546bba66644eac8

On the oe-core side:
http://git.openembedded.org/openembedded-core/commit/?id=003ea0fd1017dde50ced710179d0dc2e835d5185

"git show <commit>" shows that my bitbake clone has the commit 86..., but my oe-core clone is missing the 003.... commit. So I guess that this is the problem.

Ok. The Problem was, that I cloned clones of the oe-core and meta-oe layers (via setup-scripts.git from Angstrom) but the bitbake clone was from the original openembedded.org.

so, sorry for the confusion and thanks a lot for the quick look you have taken!

Greetings
Thilo

#7 lore raw

I've just ran into this again building dylan with the latest version of bitbake as it doesn't appear that the dylan branch of openembedded-core sets FAKEROOTCMD in bitbake.conf. I've cherry-picked the commit below from master onto dylan and it looks like the build is now going ahead happily.

Bitbake has no dylan branch so I just assumed I was correct using master. Am I wrong here? If bitbake master is supposed to be able to build old branches of OpenEmbedded, perhaps this commit needs backporting to dylan/danny/etc? It looks like it shouldn't cause any harm if an older bitbake version is used as it simply adds values for FAKEROOTBASEENV and FAKEROOTCMD.

Quoted 5 lines
Quoted 5 lines

Not got time to try reproducing right now, but I did have a very quick look in git.

On the bitbake side:

Quoted 7 lines
Quoted 7 lines

http://git.openembedded.org/bitbake/commit/?id=860ec42b220b7ed3f3bbe52c3546bba66644eac8

On the oe-core side:

http://git.openembedded.org/openembedded-core/commit/?id=003ea0fd1017dde50ced710179d0dc2e835d5185

Thanks,

Signature · 4 lines
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk
#8 lore raw

Hi Paul,

Quoted 8 lines · On Sunday 28 July 2013 15:09:46 Paul Barker wrote:

I've just ran into this again building dylan with the latest version of bitbake as it doesn't appear that the dylan branch of openembedded-core sets FAKEROOTCMD in bitbake.conf. I've cherry-picked the commit below from master onto dylan and it looks like the build is now going ahead happily.

Bitbake has no dylan branch so I just assumed I was correct using master. Am I wrong here?

Technically the matching bitbake branch for dylan is 1.18. I'm not sure if we spell this out anywhere, we probably should if not.

Quoted 4 lines

If bitbake master is supposed to be able to build old branches of OpenEmbedded, perhaps this commit needs backporting to dylan/danny/etc? It looks like it shouldn't cause any harm if an older bitbake version is used as it simply adds values for FAKEROOTBASEENV and FAKEROOTCMD.

I haven't checked if it's a genuine problem, but I'd be concerned that any fixes that went into OE-Core for bitbake's worker refactoring are not in dylan and therefore you might get problems other than the one with FAKEROOTCMD.

Cheers,
Paul

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

Hi Paul,

Quoted 2 lines · On Sunday 28 July 2013 15:09:46 Paul Barker wrote:

Bitbake has no dylan branch so I just assumed I was correct using master. Am I wrong here?

Technically the matching bitbake branch for dylan is 1.18. I'm not sure if we spell this out anywhere, we probably should if not.

I'll drop back to the 1.18 branch to be safe. I couldn't find anything telling me which branch to use but I only spent a couple of minutes looking so I could easily have missed something.

Signature · 4 lines
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk