From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D2F20E00C28; Tue, 2 Feb 2016 14:00:31 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [63.239.67.9 listed in list.dnswl.org] Received: from emvm-gh1-uea08.nsa.gov (emvm-gh1-uea08.nsa.gov [63.239.67.9]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 67F08E00C18 for ; Tue, 2 Feb 2016 14:00:27 -0800 (PST) X-TM-IMSS-Message-ID: <7b016aaa00016789@nsa.gov> Received: from tarius.tycho.ncsc.mil ([144.51.242.1]) by nsa.gov ([10.208.42.193]) with ESMTP (TREND IMSS SMTP Service 7.1) id 7b016aaa00016789 ; Tue, 2 Feb 2016 16:59:19 -0500 Received: from moss-wolfpack.infosec.tycho.ncsc.mil (moss-wolfpack [192.168.25.76]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u12M0QfI007805 for ; Tue, 2 Feb 2016 17:00:27 -0500 To: meta-virtualization@yoctoproject.org References: <56B10C90.8070709@tycho.nsa.gov> From: "M. Gregory" X-Enigmail-Draft-Status: N1110 Message-ID: <56B126BC.3070304@tycho.nsa.gov> Date: Tue, 2 Feb 2016 16:59:24 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <56B10C90.8070709@tycho.nsa.gov> X-TM-AS-MML: disable Subject: Re: stubs-32.h not found X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2016 22:00:31 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 02/02/2016 03:07 PM, M. Gregory wrote: > I am working with the Xen recipes and I getting an odd behavior. The > build will sometimes fail compiling Xen. The failure is a result of the > absence of stubs-32.h (see error below). If I run a bitbake -c clean xen > and build xen again everything builds as expected. According to the logs > the do_stubs task runs and stubs-64.h is present in the sysroot, so > stubs-32.h should have been created by the do_stubs task. I checked the > timestamps on the do_populate_sysroot task of glibc and it was run after > do_stubs, which indicates a dependence problem. I thought that adding > glibc to the DEPENDS would fix the problem, but it did not. Any ideas? > -Machon > > fatal error: gnu/stubs-32.h: No such file or directory > So I read the Yocto manual and I understand why adding glibc to the DEPENDS does not work. Specifically, DEPENDS only ensures "all the dependencies listed have been built and have their contents in the appropriate sysroots before the recipe's configure task is executed." The do_stubs tasks running before configure. Adding the the line below seems to fix the problem. Is this the correct solution? Signed-off-by: Machon Gregory diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index 5555ed3..192bbee 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc @@ -783,6 +783,7 @@ do_stubs() { } addtask stubs after do_patch before do_configure +do_stubs[depends] += "glibc:do_populate_sysroot" do_configure() {