Re: [PATCH] tools/build: make in-target rule robust against too long argument error
From: Arnaldo Carvalho de Melo
Date: Wed Mar 04 2026 - 09:27:22 EST
On Tue, Mar 03, 2026 at 02:33:04PM -0800, Ian Rogers wrote:
> On Mon, Oct 27, 2025 at 7:16 PM Changqing Li <changqing.li@xxxxxxxxxxxxx> wrote:
> > Kindly ping. Could you reproduce it? Any comments?
> Sorry Changqing,
> I was reminded by:
> https://lore.kernel.org/lkml/20260303211503.165337-1-mmayer@xxxxxxxxxxxx/
> that "argument list too long" is a problem for others.
> I tried reproducing it, but I think it doesn't fail for me, possibly
> because MAX_ARGS is larger on my system:
> ```
> $ xargs --show-limits
> Your environment variables take up 6133 bytes
> POSIX upper limit on argument length (this system): 2088971
> POSIX smallest allowable upper limit on argument length (all systems): 4096
> Maximum length of command we could actually use: 2082838
> Size of command buffer we are actually using: 131072
> Maximum parallelism (--max-procs must be no greater): 2147483647
> ```
> Anyway, the change makes sense to me.
> Reviewed-by: Ian Rogers <irogers@xxxxxxxxxx>
Ok, so I'll pick this one and the other for rm that you mentioned:
https://lore.kernel.org/lkml/20260303211503.165337-1-mmayer@xxxxxxxxxxxx
I'll have it in perf-tools, for v7.0.
- Arnaldo