Re: WITHOUT_CLEAN confusion in -current

Warner Losh <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm,gmane.os.freebsd.current
Message-ID <CANCZdfrnCWtPiROYiiuiJhN-fDHnz6VtH-vg4CKuCn1V2HEwYQ@mail.gmail.com>
On Sun, Nov 16, 2025 at 6:14 PM void <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.