Re: WITHOUT_CLEAN confusion in -current

From: Warner Losh <imp_at_bsdimp.com>
Date: Mon, 17 Nov 2025 06:29:07 UTC
On Sun, Nov 16, 2025 at 6:14 PM void <void@f-m.fm> wrote:

> Hi,
>
> The context this was tested in was armv7. Not tested in others.
> Sources are n281932 2025-11-16
>
> When running 'make -j2 -DNOCLEAN buildworld' the warning
>
> "make[2]: /usr/src/Makefile.inc1:482: warning: The src.conf WITHOUT_CLEAN
> option can now be used instead of NOCLEAN."
>
> is emitted (but the build continues and the warning seems harmless)
>
> After stopping the build and adding WITHOUT_CLEAN to /etc/src.conf
> and starting it again like so:
> 'make -j2 buildworld'
>
> the build fails with
>
> make: /etc/src.conf:7: Invalid line "WITHOUT_CLEAN"
>          in /usr/src/share/mk/src.sys.mk:24
>          in /usr/src/share/mk/local.sys.mk:58
>          in /usr/src/share/mk/sys.mk:283
>          make: Fatal errors encountered -- cannot continue


As others have pointed out, this is almost certainly because you're missing
a "=y".

You can keep using -DNOCLEAN, at least for as long as the warning is there.
IT's what I use, though WITHOUT_CLEAN=y is the default these days.

Warner