Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5205CC742A5 for ; Fri, 12 Jul 2019 06:03:08 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 28CA920863 for ; Fri, 12 Jul 2019 06:03:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 28CA920863 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:46796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hloeB-0001Xf-Dp for qemu-devel@archiver.kernel.org; Fri, 12 Jul 2019 02:03:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42269) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hloe0-00017j-VT for qemu-devel@nongnu.org; Fri, 12 Jul 2019 02:02:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlodz-0000T3-Pa for qemu-devel@nongnu.org; Fri, 12 Jul 2019 02:02:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33690) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hlodz-0000Si-Jp for qemu-devel@nongnu.org; Fri, 12 Jul 2019 02:02:55 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D1D34368A5; Fri, 12 Jul 2019 06:02:54 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-116-111.ams2.redhat.com [10.36.116.111]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 299645C559; Fri, 12 Jul 2019 06:02:52 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id E25C21138648; Fri, 12 Jul 2019 08:02:50 +0200 (CEST) From: Markus Armbruster To: Guenter Roeck References: <20190710220153.GA10826@roeck-us.net> <20190711010742.GA810@roeck-us.net> <11bd13d0-e5c0-76fc-2f75-e01588a9103b@roeck-us.net> <874l3swpht.fsf@dusky.pond.sub.org> <20190711161148.GA895@roeck-us.net> Date: Fri, 12 Jul 2019 08:02:50 +0200 In-Reply-To: <20190711161148.GA895@roeck-us.net> (Guenter Roeck's message of "Thu, 11 Jul 2019 09:11:48 -0700") Message-ID: <87sgrbhjsl.fsf@dusky.pond.sub.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 12 Jul 2019 06:02:54 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: Re: [Qemu-devel] Problems building and installing qemu v4.1.0-rc1 in single step X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Daniel P. Berrange" , Alex =?utf-8?Q?Benn=C3=A9e?= , qemu-devel@nongnu.org, Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Guenter Roeck writes: > On Thu, Jul 11, 2019 at 05:38:22PM +0200, Markus Armbruster wrote: >> Guenter Roeck writes: >>=20 >> > Hi, >> > >> > On 7/11/19 12:48 AM, Philippe Mathieu-Daud=C3=A9 wrote: >> >> Hi Guenter, >> >> >> >> Cc'ing Markus/Dan/Alex >> >> >> >> On 7/11/19 3:07 AM, Guenter Roeck wrote: >> >>> On Wed, Jul 10, 2019 at 03:01:53PM -0700, Guenter Roeck wrote: >> >>>> Hi, >> >>>> >> >>>> when trying to run "make -j30 install" from a clean tree on v4.1.0-= rc0, I get >> >>>> _lots_ of undefined symbol errors. >> >>>> >> >>>> If I run "make -j30" followed by "make -j30 install", make succeeds= , but then >> >>>> I get linker errors such as the following when running "make -j30 i= nstall". >> >> >> >> Seems similar to this report: >> >> https://lists.gnu.org/archive/html/qemu-devel/2019-07/msg01860.html >> >> >> > Yes, that looks like the same problem. >> > >> > Reverting the following commits fixes the problem for me. >> > >> > 8d358a5 Makefile: Fix "make clean" in "unconfigured" source directory >> > (possibly for context to be able to revert the next patch) >> > 1338a4b Makefile: Reuse all's recursion machinery for clean and install >>=20 >> Hmm. >>=20 >> Target install depends on all. >>=20 >> Before commit 1338a4b, the recursion into target directories was in >> install's recipe: it ran make install in a for-loop. This trivially >> ensured we run the sub-make install only after completing target all. >>=20 >> Since commit 1338a4b, the target recursion is in the dependencies, just >> like for target all. That's good, but I forgot to add dependencies to >> ensure make runs the sub-make install only after completing target all. >>=20 >> Can you try the appended patch for me? I'm having difficulties >> reproducing the bug locally. >>=20 > > That fixes the problem for me. I cross-checked several times: Without the > patch below, "make -j30 install" fails every time, with the patch applied > it passes every time. Thank you very much! > Please feel free to add > > Tested-by: Guenter Roeck > > when you formally submit the patch. Done.