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

Re: [XEN PATCH] tools: Have flex and bison mandatory


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 7 Feb 2023 18:03:12 +0100
  • 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=VZQne71/nFBvKBvkD5NCdgH85tSHAsKxkKvctiFAPqY=; b=gsQKb+WtVlaVupIAqCVSgd6Qw52BUia/W8hE2CSm3hAa8e5+cXW/XQgi635vO0sX3Tm0J7xqQWs2gmb+VIHnLRGH3/km4qruamhck8Lh0D75UtSpHvxBY0AiwW6FmxOLfB+skAg5i8P04XFcgFqKhQVApo3jVRS3f8hz1D/b6MxZq9/ee2c387ihJ9LvzxxyVP6lUZipAuVrU5SwT+S3XIa0+qyPqGHo1VZeO7rqmxZqE4KyUhGBxzUYYmL/CmtcXt4Z9rV6Ry8U/z3J5+FMA6lrKFds2vd1pbk/mzmx2gEsZn+hqKRnVabw2RGYE8IXprOmYzi2591ii5T6p0LNpw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KhEiHP+d7cu30HwJ76/FVeECl5dIxSKq/OA8OuutYzpN95hMRXj+6wl8uwpQdtMz/2LpSMTJlapxmWVz13Lvqz+qHMB2wCiSPCXIg2y0sDQ3SOfyS/gpgpc8GnHEUVlhhbwSqMuDC7uOvqclv24wM41e+9mspQuylqHl89X0oSic4scfEYG7SwaCdu72KJc5wcG9W9zyLajsNE1XU6KQqDlgav3o12bU89cqdzs7/cuGORsjFrYyPAm/njetZUmxBXSv0RO5Iy0heLmUQmb6pH1suVKpCozP/Ke7JAqifIsK5auQxNQyM4k/0XZMnpj05MLFEdNGETyz+24U80CKLg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 07 Feb 2023 17:03:38 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 07.02.2023 17:09, Anthony PERARD wrote:
> Both are already mandatory to build the hypervisor.

I'm not sure this is sufficient as a justification. From all we can
tell even pretty old tool versions are okay for kconfig's purposes.
However, pretty recently I've learned that some linker script language
construct used for GNU ld runs into a bug in certain (old) versions of
flex. Use of that construct will then cause an (almost?) infinite loop
in ld. Therefore the question is whether libxlu's uses are immune to
such issues (along the lines of kconfig apparently being).

That said - I'm happy about the change in principle; if so desired we
could simply see if anyone ever runs into an issue, and revert if need
be. Nevertheless I'm not convinced it'll address the problem Andrew
had noticed in CI (and where the consideration to remove the generated
files originated). It is likely to mask the issue in CI (simply
because, aiui, there are no incremental builds done there), but that
won't prevent people running into it on other occasions.

> This will help avoid cases where the *.y or *.l files are been updated
> but flex and bison aren't available.

This is odd: How will this "help"? Right now the build ought to fail
(it doesn't, there's merely a warning, which might be easily missed).
With your change configure will fail when the tools aren't there.

> This also remove the way the missing binaries are been handled, with
> double-column-rules, which might be an issue sometime.

These double-colon rules should never have been introduced. Double
colons have a different meaning ("terminal rule") for pattern rules.
In fact they were my initial suspects when looking into that odd build
failure in CI.

> Adding ".SECONDARY:" to avoid "libxlu_cfg_y.c" been deleted by make
> when building the library, and regenerating the file on the first
> incremental build.

While probably okay here, I'd still like to ask: Are you sure you
don't want to specify the files we care about, rather than applying it
to everything (by leaving blank the right side of the colon)?

Jan



 


Rackspace

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