From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vms173013pub.verizon.net (vms173013pub.verizon.net [206.46.173.13]) by mail.openembedded.org (Postfix) with ESMTP id BC7306BD93 for ; Mon, 9 Sep 2013 13:51:25 +0000 (UTC) Received: from gandalf.denix.org ([unknown] [108.45.150.102]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MSV00G3I2HPJT91@vms173013.mailsrvcs.net> for openembedded-core@lists.openembedded.org; Mon, 09 Sep 2013 08:51:25 -0500 (CDT) Received: by gandalf.denix.org (Postfix, from userid 1000) id 110002009D; Mon, 09 Sep 2013 09:51:25 -0400 (EDT) Date: Mon, 09 Sep 2013 09:51:25 -0400 From: Denys Dmytriyenko To: openembedded-core@lists.openembedded.org Message-id: <20130909135125.GD5834@denix.org> References: <20130906185741.GA5834@denix.org> MIME-version: 1.0 In-reply-to: <20130906185741.GA5834@denix.org> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: eglibc_2.17.bb: Failure expanding variable SELECTED_OPTIMIZATION[:=] X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Sep 2013 13:51:25 -0000 Content-type: text/plain; charset=us-ascii Content-disposition: inline Any ideas or suggestions at this point would be greatly appreciated! Thanks. On Fri, Sep 06, 2013 at 02:57:41PM -0400, Denys Dmytriyenko wrote: > Hi, > > Has anyone seen this error before? It happens for me quite often, but not > always, on Dylan branch during initial parsing: > > Parsing recipes... > ERROR: ExpansionError during parsing .../oe-core/meta/recipes-core/eglibc/eglibc_2.17.bb: > Failure expanding variable SELECTED_OPTIMIZATION[:=], expression was ${@get_optimization(d)} > which triggered exception NameError: name 'get_optimization' is not defined > ERROR: Command execution failed: Exited with 1 > > > Looking at the code, I don't see anything suspicious: > > # eglibc can't be built without optimization, if someone tries to compile an > # entire image as -O0, we override it with -O2 here and give a note about it. > def get_optimization(d): > selected_optimization = d.getVar("SELECTED_OPTIMIZATION", True) > if base_contains("SELECTED_OPTIMIZATION", "-O0", "x", "", d) == "x": > bb.note("eglibc can't be built with -O0, -O2 will be used instead.") > return selected_optimization.replace("-O0", "-O2") > return selected_optimization > > SELECTED_OPTIMIZATION := "${@get_optimization(d)}" > > > It sounds like by the time SELECTED_OPTIMIZATION tries to make an assignment > with immediate var expansion, get_optimization() function is not yet defined. > > This happens with high BB_NUM_THREADS and bitbake 1.18. Trying bitbake from > master on Dylan gives "AttributeError: 'NoneType' object has no attribute > 'rfind'", but that's another story. > > Anyone has any clues or suggestions? Thanks. > > -- > Denys > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core