[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH] tools: Have flex and bison mandatory
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |