[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] build: fix exporting for make 3.82


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 14 Jun 2022 18:07:42 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LJK9baG7B8jYSsbe5MfHd8EJ7l5huFSjrZfddjWe46U=; b=FtnaRyTokFr7jW6P1nyiavYKvh3h06Vrj+Yd5Zp62SqkC+nd5KF1GrgSaaZOc4J/DYhw4fZjac/I5jav+fVMFS/BBOGzfk0pI7zb/ojnA0iDo24BGvF0tNkB4hrlDQgx30xTDhuLBwgqMUNsVSqtDXqYLxAjNFrbpTlwTRKhhGHKvfwxqkslw+S+yJteTlxnIhP2DtTvA7II0EA/V/w6C3BHHSjhwE+Sa4cNK9zgcxcB9Ygyx+OA5317bM3h9cfOqteaF7OX+4dcbyBG6QI6dPHoYIeCjsPsZsP4O8tPbeQWUSS3I8LGs37BI3Ai+nNFbTKSwghJqV/BqmayO/wXGg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O80ui5SagyU/xHSt9lcVMRHyzuBjIHUTRJWxtCS9rMhrWhn+eqBkh2ovxxOBrNyMX6bBlymhFJeFu7sA/stInW4hRdhh6Xn03iFuPyT1kSiZZCjqAFHQAv7m96uQSJK/OKNync8XhoMhVCvcBxnDtI1MW1gg25i7D5xqWe3n3ztf58Felv311zWYhk+2rEIdO2bFVbRA1iXlPgsoFlWZSkggQkkTJM+VdFgD/W3RPF7c4+ne3MX/WFNbG/he+ffSOvR8K6SFynBIRTbxVLL43YokrFgdMM4/JRXtLxGiAxxg8fi0/VpTnqhGrjRw5Dxi3qT9A0EPCRF6nwPKl5mduA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 14 Jun 2022 16:07:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 14.06.2022 18:00, Anthony PERARD wrote:
> On Tue, Jun 14, 2022 at 05:40:27PM +0200, Jan Beulich wrote:
>> GNU make 3.82 apparently has a quirk where exporting an undefined
>> variable prevents its value from subsequently being updated. This
>> situation can arise due to our adding of -rR to MAKEFLAGS, which takes
>> effect also on make simply re-invoking itself. Once these flags are in
>> effect, CC (in particular) is empty (undefined), and would be defined
>> only via Config.mk including StdGNU.mk or alike. With the quirk, CC
>> remains empty, yet with an empty CC the compiler minimum version check
>> fails, breaking the build.
>>
>> Move the exporting of the various tool stack component variables past
>> where they gain their (final) values.
>>
>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
>> ---
>> There may be further factors playing into the described quirk, as I've
>> also observed that simply running make as 2nd time would lead to
>> successful building of xen/.
>>
>> While this wasn't a problem until several weeks back, I've not been able
>> to identify which exact commit would have caused the breakage. Hence no
>> Fixes: tag.
> 
> Reviewed-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>

Thanks.

> Looks like this happened before: be63d9d47f ("build: tweak variable exporting 
> for make 3.82")

Ah yes. I did think I had to deal with that before, but I did check patches
only back to early 2021. But it's somewhat worse than described there: It's
not just the origin which changes, but (as explained) it actually prevents
the variable to further change its value.

> So, maybe the issue is started again with 15a0578ca4 ("build: shuffle
> main Makefile"), which move the include of Config.mk even later.

Yes, that's certainly it. Thanks for spotting - I'll add a Fixes: tag.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.