From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mail.openembedded.org (Postfix) with ESMTP id C04DA6077F for ; Thu, 4 Jul 2013 09:17:13 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 04 Jul 2013 02:14:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,993,1363158000"; d="scan'208";a="364689528" Received: from unknown (HELO helios.localnet) ([10.252.121.245]) by orsmga002.jf.intel.com with ESMTP; 04 Jul 2013 02:17:13 -0700 From: Paul Eggleton To: Cestonaro Thilo Date: Thu, 04 Jul 2013 10:17:12 +0100 Message-ID: <49035936.yua4bikce8@helios> Organization: Intel Corporation User-Agent: KMail/4.10.4 (Linux/3.8.0-25-generic; KDE/4.10.4; i686; ; ) In-Reply-To: <51D52FD8.8060801@ts.fujitsu.com> References: <51D42561.8060907@ts.fujitsu.com> <51D52FD8.8060801@ts.fujitsu.com> MIME-Version: 1.0 Cc: openembedded-devel@lists.openembedded.org Subject: Re: bitbake dies with an python exception | AttributeError: 'NoneType' object has no attribute 'rfind' X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2013 09:17:14 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 > > On 03.07.2013 15:21, Cestonaro Thilo wrote: > > 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 = ":" > > 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("" + pickle.dumps((fn, task, > > taskname, False, self.cooker.collection.get_file_appends(fn))) + > > "") > > > > File > > > > "/home/magna/Projects/magna/setup-scripts/sources/bitbake/lib/bb/runqueue. > > py", line 874, in > > RunQueue.start_fakeworker(rqexec= > > > 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=): > > 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 > > > > 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 -- Paul Eggleton Intel Open Source Technology Centre