Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2025 23:29:07 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        freebsd-current@freebsd.org, freebsd-arm@freebsd.org
Subject:   Re: WITHOUT_CLEAN confusion in -current
Message-ID:  <CANCZdfrnCWtPiROYiiuiJhN-fDHnz6VtH-vg4CKuCn1V2HEwYQ@mail.gmail.com>
In-Reply-To: <aRp26Y3MyMEJ0hXs@int21h>
References:  <aRp26Y3MyMEJ0hXs@int21h>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Nov 16, 2025 at 6:14 PM void &lt;<a href="mailto:void@f-m.fm">void@f-m.fm</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
The context this was tested in was armv7. Not tested in others.<br>
Sources are n281932 2025-11-16<br>
<br>
When running &#39;make -j2 -DNOCLEAN buildworld&#39; the warning<br>
<br>
&quot;make[2]: /usr/src/Makefile.inc1:482: warning: The src.conf WITHOUT_CLEAN option can now be used instead of NOCLEAN.&quot;<br>
<br>
is emitted (but the build continues and the warning seems harmless)<br>
<br>
After stopping the build and adding WITHOUT_CLEAN to /etc/src.conf<br>
and starting it again like so:<br>
&#39;make -j2 buildworld&#39;<br>
<br>
the build fails with<br>
<br>
make: /etc/src.conf:7: Invalid line &quot;WITHOUT_CLEAN&quot;<br>
         in /usr/src/share/mk/<a href="http://src.sys.mk:24" rel="noreferrer" target="_blank">src.sys.mk:24</a><br>
         in /usr/src/share/mk/<a href="http://local.sys.mk:58" rel="noreferrer" target="_blank">local.sys.mk:58</a><br>
         in /usr/src/share/mk/<a href="http://sys.mk:283" rel="noreferrer" target="_blank">sys.mk:283</a><br>
         make: Fatal errors encountered -- cannot continue</blockquote><div><br></div><div>As others have pointed out, this is almost certainly because you&#39;re missing a &quot;=y&quot;.</div><div><br></div><div>You can keep using -DNOCLEAN, at least for as long as the warning is there. IT&#39;s what I use, though WITHOUT_CLEAN=y is the default these days.</div><div><br></div><div>Warner </div></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrnCWtPiROYiiuiJhN-fDHnz6VtH-vg4CKuCn1V2HEwYQ>