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

Re: [XEN PATCH v3 25/25] tools: Remove -Werror everywhere else


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Fri, 1 Jul 2022 13:26:16 +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=XD1r2363ZMcUMyaSlz47vbHfCLXF3PDOIa2qfMikFa0=; b=mD+vUiz2aolIICRyLy6/TSRFjVXmKOrsh7G07Tw9+5S0XyFDf4bkRu/1/w4f7v5HuT6KjZml/dhSN113WLhJw5Ix85zDRczqtHxILprFeTNE4ptDE1LM3xpQuBh48ftT8pVLwDVUTKcsq83+ISbH7c3EFeDm9/1oHD6f7KdJlsMWiiaI5p230a6D/L17rD7EwqjDcyvRphcOWci4vjXczmTdSdEWe+jMbger0bI12fjP4OiIT39/wPy9A1eaZuxnGOrDfETP93UO3NEtvrBf1eFBff0cvMFW7zKXjuFfzyAGwiYiWAZfuq/JUN+FO0rPoDURlizhSULGfLMCKFbpTA==
  • 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=XD1r2363ZMcUMyaSlz47vbHfCLXF3PDOIa2qfMikFa0=; b=LNL1hFkg5JVFtQg76Lx0k8x6YHhVw4u9V0xdi5PFkar+Tqt6xQpL2wvXP8rQP+mt82MbbZjgvKbigfgpGZttOEF/EuGJ1+VARZ7zaY+tm1nLF0jJWEt1YP8E+PyDTabFYlPcZ6+V/7+DGx89/ePjHZT4JtvMIY8yXA4rSGG64+SvQYIffVwujgByVVBjknwyzdl20KoaPsLfkEAW28NEJ9Pnmskw1X8NTCcJFiDtD/FyL7Y7zfg5paN+1Ldv7IYstvbBtaQWoNqXxKLypjqCKYisNe6Fmi5AwUQpnzcHsFKaxqKZod79sr3KFrAJ80eqJBH9PWD2rNTJLNocaADrSg==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Vf/zpFKEw+N/1ikkPDYxKoSkKpapxlAVVCJzNW/ke47zhn2vaig0eaiBzR2i6mh1BLMlupjol7aWuRbWnLFuBqxPKGhk25eodsp9u8CKOxppmUFN/y065HSMFFyfxLQye1xYfdbNfDDwff1EX4ZNyz7ABmJBXqCXmJeNFMI4t6xeWrU0iMtPukCCew9W3K8s5BH1siuBuvNCm09RnYvWwfRT99YxRWUJPeWmvc87KUWQLVmt5BzTVGYVOhK97jWX7TS9tS183PKRwPB4tgu4T36KDFi9nnhEtYq1tx4RLKAWn6cWTwFsWcacV45l4rBTsuTHK4Nlj410Zb1ZoXX15g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ECjL+wO3/NYj80q7wKOWrFniNVXBKUbW8tzADRiI0t5DV/lFXdrgGeQtrYqbL9y3i/D8ER4FTMUbgVZlvdUv3gvk6rfATywIc3dxIhpvLtCfYw/BV1xBYacoOkR/oqNlRHEgQb0Um8CFGAoXyUZoMlWYVfLWn53iEy6V3X3r7XcX6DvyhKu0V7nOoKIwD7/+u8DQIfkwAVjbZC7zyE1SjCmSzk0/F2M84N66VXKwaVzLNg69OEe7t5eJ4F19OcAZ3fcQpgnyLFT4rrbeaqvpHOly9rorvRPwNjhKigi1aTSwUYnkxakhkbHsnq3mpomQ+Sw8qUCY6KIzt6mB8+ThQg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Luca Fancellu <Luca.Fancellu@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Elena Ufimtseva <elena.ufimtseva@xxxxxxxxxx>, Tim Deegan <tim@xxxxxxx>, Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Christian Lindig <christian.lindig@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>
  • Delivery-date: Fri, 01 Jul 2022 13:26:38 +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: AQHYh+S8oo1uKED1kUSSvOK+OMp/V61mHT4AgACMngCAAO3MAIAA4jeAgAESnoA=
  • Thread-topic: [XEN PATCH v3 25/25] tools: Remove -Werror everywhere else

Hi Stefano,

> On 30 Jun 2022, at 22:03, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
> 
> On Thu, 30 Jun 2022, Bertrand Marquis wrote:
>>> On 29 Jun 2022, at 18:22, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
>>> 
>>> On Wed, 29 Jun 2022, Luca Fancellu wrote:
>>>> + CC: Stefano Stabellini
>>>> 
>>>>> On 24 Jun 2022, at 17:04, Anthony PERARD <anthony.perard@xxxxxxxxxx> 
>>>>> wrote:
>>>>> 
>>>>> Patch "tools: Add -Werror by default to all tools/" have added
>>>>> "-Werror" to CFLAGS in tools/Rules.mk, remove it from every other
>>>>> makefiles as it is now duplicated.
>>>>> 
>>>>> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
>>>> 
>>>> Hi Anthony,
>>>> 
>>>> I will try to review the serie when I manage to have some time, in the 
>>>> mean time I can say the whole
>>>> serie builds fine in my Yocto setup on arm64 and x86_64, I’ve tried also 
>>>> the tool stack to
>>>> create/destroy/console guests and no problem so far.
>>>> 
>>>> The only problem I have is building for arm32 because, I think, this patch 
>>>> does a great job and it
>>>> discovers a problem here:
>>> 
>>> That reminds me that we only have arm32 Xen hypervisor builds in
>>> gitlab-ci, we don't have any arm32 Xen tools builds. I'll add it to my
>>> TODO but if someone (not necessarily Luca) has some spare time it could
>>> be a nice project. It could be done with Yocto by adding a Yocto build
>>> container to automation/build/.
>> 
>> We have now a way to build and run xen for arm32 on qemu using Yocto.
>> We are using this internally and also will test Xen with guests on arm32 
>> using this soon.
>> 
>> I am upstreaming to meta-virtualisation all the fixes needed for that so it 
>> should be fairly straight forward do reproduce this in Yocto build in a 
>> container.
>> 
>> Please tell me what you need and I will try to provide you a set of scripts 
>> or instructions do reproduce that on gitlab.
> 
> That would be great!
> 
> We need two things:
> 
> - a Yocto build container
> - a build script
> 
> 
> The build container would be something like:
> automation/build/debian/unstable-arm64v8.dockerfile. It is a Dockerfile
> to create a container with Yocto and all required dependencies. It could
> be based on Debian arm64. The build container is only built once and
> pushed to the gitlab registry, but it is executed every time a gitlab
> pipeline is started.
> 
> We probably want the meta layers to be pulled as part of the build
> container build (git clone from the Dockerfile) because otherwise we
> would end up git cloining them every time we run a gitlab-ci pipeline,
> slowing everything down.
> 
> 
> The build script is the script executed in the build container for every
> pipeline.
> 
> Imagine you have a container "yocto-arm32", basically we want to do:
> 
> # docker run yocto-arm32 build.script
> 
> where build.script is the script that actually triggers the Xen build
> and produces the binary output.
> 
> The current build script is automation/scripts/build; it is used for all
> build containers (all of them, from Debian to Fedora and Alpine) but it
> is probably not suitable to be used for Yocto.  It simply calls
> ./configure; make; make install. It is more for normal distros.
> 
> I imagine that the build script for Yocto would call bitbake.
> 
> 
> With the build container Dockerfile and the build script it becomes
> very simple to add Yocto arm32 to gitlab-ci.
> 
> I realize that the actual build could be done on both arm64 or x86.
> Currently the arm32 hypervisor-only cross-build is done on x86. See
> automation/build/debian/unstable-arm32-gcc.dockerfile. Either way is OK.

I will work on that and I think we can take this discussion offline as there 
are some elements missing right now (like where is the xen tree to test).

Cheers
Bertrand




 


Rackspace

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