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

Re: [XEN PATCH 1/4] build: xen/include: use if_changed


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Thu, 9 Jun 2022 11:51:20 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; 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=uMZGG/HZy6KANbMxbw+WZ985zFopS3fJBwcjGW9i9p0=; b=FEtyioIFBw6MXboCbOoPRHVRZ7Zpr0NwC7YOxwhpbx114fuK/MXe++WSLITx7vG07SQzUd55fB75cYXlx3UvSfW8kuo8FN1SCJjjSHqb0qFLZ4Ybi3G93kK0INFrn9itP8zIJdgNmOVJHHfS5smdJFZJh2UXnwJty2b5s+KahCA0nB9ueneTndr58aP5TljXqDK+vOTM9cwCSQBORblvWoVVI29XZwxRoFoX9XshNSH9SfpC/TJEcfhi2+tLY2vMl7+kh7YP0R3eFs3jtA7W7pbnteQiyU7WT2XB2Be/ChjQtQiFrhiwc+fcaqnibGJLLypNR0jZ5/HOmzNWLwouAQ==
  • 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=uMZGG/HZy6KANbMxbw+WZ985zFopS3fJBwcjGW9i9p0=; b=KgRtP6qQZWkKJRj1eywqJlTu8nG/jpzt9dAeJSHkMJOZwY2qIz9t4ulaU+7Kgl9+z8cYEfKFGg9NWhPekqq9lNPSWgxxmjFyALy9bfDPMZpH+Elwe9/mHi3BM5DnfIp9Kzjb0EjVCKdCumPsOWqfgqG9Wh7f/NbE1fdWtr2PBl++bLfqzXLKrZt982Pm4Ucfwq/9Stkj1VF+Z6bndwGhe8lWl1T2m9wrqvtblfDJTGKRyQYBfESodXA8/hjlH0za8zjrIa+kStt1AysdR67SG0SPbmmjQBhe0F5UhqsvEe17aEKLyIKm2uPNwoi4rRkZisIrW/kiQSoky3i/vkvLhA==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=gx3T+tkFoYFFuf0VjAVw4b6bFnCv4V04Z/VegoicZUHo+kylfeIWsMcIewDMyp0owBpKtVGG1KnKEC0zSKT95eUycjrdRvbs+EZPjul7i6Cxpk5Ien6TMRfvXazKRbZVTZQhuhnyR6u/+49Q5eH45L/T1Fr2rQ2maW7duBWxcKbW8eGl2URSwnvChnsvDQWt6UikGGV9PreCwqp8IhDftYAOl2imk2SgtcTh79hNMbyWOW9b9inA0S9zmcL2wJGszD6t8iCTRKqJk7Phc9rZ8y0Ke1f0cuEHTU+LTREiOOoyn/unNtpbJN6TubiD+Q0uPm5gDYj3rUuok1k/8EN75g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OQI2U9CXfv5YJ8LbidbZJwyaYhTu97+NB5KHrlAHGaOyo6GHUDA/AVT3EarEiwwe+Gyw3Lt2qz4ojpViOR1765YpO01t7CEHxji0oyQ6D7aqwVk3mVupTt7P6O3Bp5DgjvXeXSMCiRttQenc+7GS8J1LC2oZGVpqXVu1CevxPVpBfLR7D7fEYa8aUqR3EL9brT/jSefw8kpZ/tEDsJYy26cn9ZSznd6npr2ue7DORN3ibsnCGjYNxR8fvobjHo2XVzxAKztFzDLhrgEN2Z7gRfrzOlkN9FHrxMxpx5C3cIym+NCEnRwOKfE2FQSZAAGicu5kUF/8Z+xYY7MLmDOdPA==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.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>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Thu, 09 Jun 2022 11:51:42 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYddkD4JsESJA0gkGnWWwykzQjSK1G6E+AgAAC3wCAABeVAA==
  • Thread-topic: [XEN PATCH 1/4] build: xen/include: use if_changed

Hi,

> On 9 Jun 2022, at 11:26, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 09.06.2022 12:16, Bertrand Marquis wrote:
>>> On 1 Jun 2022, at 17:59, Anthony PERARD <anthony.perard@xxxxxxxxxx> wrote:
>>> 
>>> Use "define" for the headers*_chk commands as otherwise the "#"
>>> is interpreted as a comment and make can't find the end of
>>> $(foreach,).
>>> 
>>> Adding several .PRECIOUS as without them `make` deletes the
>>> intermediate targets. This is an issue because the macro $(if_changed,)
>>> check if the target exist in order to decide whether to recreate the
>>> target.
>>> 
>>> Removing the call to `mkdir` from the commands. Those aren't needed
>>> anymore because a rune in Rules.mk creates the directory for each
>>> $(targets).
>>> 
>>> Remove "export PYTHON" as it is already exported.
>> 
>> With this change, compiling for x86 is now ending up in:
>> CHK     include/headers99.chk
>> make[9]: execvp: /bin/sh: Argument list too long
>> make[9]: *** [include/Makefile:181: include/headers++.chk] Error 127
>> 
>> Not quite sure yet why but I wanted to signal it early as other might be 
>> impacted.
>> 
>> Arm and arm64 builds are not impacted.
> 
> Hmm, that patch has passed the smoke push gate already, so there likely is
> more to it than there being an unconditional issue. I did build-test this
> before pushing, and I've just re-tested on a 2nd system without seeing an
> issue.

I have the problem only when building using Yocto, I did a normal build and the
issue is not coming.

Doing a verbose compilation I have this (sorry for the long lines):

 for i in include/public/vcpu.h include/public/errno.h include/public/kexec.h 
include/public/argo.h include/public/xen.h include/public/nmi.h 
include/public/xencomm.h include/public/xenoprof.h 
include/public/device_tree_defs.h include/public/version.h 
include/public/memory.h include/public/features.h include/public/sched.h 
include/public/xen-compat.h include/public/callback.h include/public/vm_event.h 
include/public/grant_table.h include/public/physdev.h include/public/tmem.h 
include/public/hypfs.h include/public/platform.h include/public/pmu.h 
include/public/elfnote.h include/public/trace.h include/public/event_channel.h 
include/public/io/vscsiif.h include/public/io/kbdif.h 
include/public/io/protocols.h include/public/io/ring.h 
include/public/io/displif.h include/public/io/fsif.h include/public/io/blkif.h 
include/public/io/console.h include/public/io/sndif.h include/public/io/fbif.h 
include/public/io/libxenvchan.h include/public/io/netif.h 
include/public/io/usbif.h include/public/io/pciif.h include/public/io/tpmif.h 
include/public/io/xs_wire.h include/public/io/xenbus.h 
include/public/io/cameraif.h include/public/hvm/pvdrivers.h 
include/public/hvm/e820.h include/public/hvm/hvm_xs_strings.h 
include/public/hvm/dm_op.h include/public/hvm/ioreq.h 
include/public/hvm/hvm_info_table.h include/public/hvm/hvm_vcpu.h 
include/public/hvm/hvm_op.h include/public/hvm/params.h; do 
x86_64-poky-linux-gcc  
--sysroot=/home/bermar01/Development/xen-dev/build/profile-qemu-x86_64.prj/tmp/work/core2-64-poky-linux/xen/4.17+git1-r0/recipe-sysroot
  -x c -ansi -Wall -Werror -include stdint.h -S -o /dev/null $i || exit 1; echo 
$i; done >include/headers.chk.new; mv include/headers.chk.new 
include/headers.chk
|       rm -f include/headers99.chk.new;  echo "#include 
"\"include/public/io/9pfs.h\" | x86_64-poky-linux-gcc  
--sysroot=/home/bermar01/Development/xen-dev/build/profile-qemu-x86_64.prj/tmp/work/core2-64-poky-linux/xen/4.17+git1-r0/recipe-sysroot
  -x c -std=c99 -Wall -Werror -include stdint.h  -include string.h -S -o 
/dev/null - || exit $?; echo include/public/io/9pfs.h >> 
include/headers99.chk.new;  echo "#include "\"include/public/io/pvcalls.h\" | 
x86_64-poky-linux-gcc  
--sysroot=/home/bermar01/Development/xen-dev/build/profile-qemu-x86_64.prj/tmp/work/core2-64-poky-linux/xen/4.17+git1-r0/recipe-sysroot
  -x c -std=c99 -Wall -Werror -include stdint.h  -include string.h -S -o 
/dev/null - || exit $?; echo include/public/io/pvcalls.h >> 
include/headers99.chk.new; mv include/headers99.chk.new include/headers99.chk
| make[9]: execvp: /bin/sh: Argument list too long
| make[9]: *** [include/Makefile:181: include/headers++.chk] Error 127
| make[9]: *** Waiting for unfinished jobs....

So the command passed to the sub shell by make is quite long.

No idea why this comes out only when building in Yocto but I will dig a bit.

> 
> Also please remember to trim your replies.
> 

Will do.

Bertrand




 


Rackspace

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