On Tue, Jan 27, 2026 at 06:54:49PM -0500, Greg Troxel wrote:
> I am testing an rc of ups-nut 2.8.5 (wip/ups-nut), and while it's mostly
> ok, building on NetBSD 11 under pkgrsrc gets me:
>
> make[2]: warning: Invalid internal option "-J" in "/tmp/work/wip/ups-nut/work/nut-2.8.4.1239/tools"; see the manual page
>
> upstream doesn't think -J is in the sources.
>
> If I build MAKE_JOBS=1 (instead of 4 which my mk.conf defaults to), I
> don't get the error.
>
> If I build -j4 in a subdir -- that provoked the warning from top level,
> then I don't get a warning.
>
> Building on 9 or 10 does not get this error.
>
> Has anybody seen this?
-J is the internal option for passing around the job-server
information. I think the complaints about it are (relatively) new.
This kind of problem is usually caused by misusing $(MAKE) or
$(MAKEFLAGS) or similar... I remember it came up in base a while back
with some scripts but I already can't remember the details.
--
David A. Holland
dholland%netbsd.org@localhost