🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.hackers
4 messages
4 total messages Started by void Mon, 26 Oct 2026 15:34
src-env meta-mode & cleanworld for buildworld & friends
#60
Author: void
Date: Mon, 26 Oct 2026 15:34
51 lines
8658 bytes
--nVNtAAaozmDg+2qd
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

Is WITH_META_MODE=3D considered harmful when following -current?

I'm asking because (and I might be wrong here) but have its effects
changed? Doing a buildworld & kernel coupled with not running=20
cleanworld beforehand gave me grief building and
installing a new world. The fix was to clear out /usr/obj, /var/cache/ccach=
e*
and run make cleanworld && make cleandir && make clean then run
buildworld again. There was nothing in /usr/src/UPDATING stating
this was needed at the time.

If I'm wrong and with_meta_mode & without cleanworld is fine,
then is there a way of telling when (cleaning etc) would be required?

Or is it better to just try, fail, clean everything out,=20
disable meta_mode, then try again?=20
It being par for the course for following -current?

Is a PR of any use if it fails when meta-mode etc is used
but works after everything is cleared out?

--=20
void<at>f-m.fm | GPG fingerprint: BD97 5B52 1B78 B7A9 AFFE  7DD4 FD32 D1F9 =
0814 DECD
Please don't Cc: as I'm already subscribed to the list.

--nVNtAAaozmDg+2qd
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iJEEABYKADkWIQS9l1tSG3i3qa/+fdT9MtH5CBTezQUCat9zERsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMiwyLDMACgkQ/TLR+QgU3s0FwAEAzvfC846l5OYoJqA9wdDz
wrctKZmWqxv68/HB6JnQv+kBAOvKB5JloCbeL1p1vqWdp2MP2RRmeGoOxoBgpCpm
h9EO
=10JV
-----END PGP SIGNATURE-----

--nVNtAAaozmDg+2qd--


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: src-env meta-mode & cleanworld for buildworld & friends
#61
Author: Mark Millard
Date: Mon, 26 Oct 2026 21:33
60 lines
8788 bytes
On 10/26/26 08:34, void wrote:
> Hi,
> 
> Is WITH_META_MODE= considered harmful when following -current?
> 
> I'm asking because (and I might be wrong here) but have its effects
> changed? Doing a buildworld & kernel coupled with not running cleanworld
> beforehand gave me grief building and
> installing a new world. The fix was to clear out /usr/obj, /var/cache/
> ccache*
> and run make cleanworld && make cleandir && make clean then run
> buildworld again. There was nothing in /usr/src/UPDATING stating
> this was needed at the time.
> 
> If I'm wrong and with_meta_mode & without cleanworld is fine,
> then is there a way of telling when (cleaning etc) would be required?
> 
> Or is it better to just try, fail, clean everything out, disable
> meta_mode, then try again? It being par for the course for following -
> current?
> 
> Is a PR of any use if it fails when meta-mode etc is used
> but works after everything is cleared out?
> 


I have long used WITH_META_MODE but I've never used ccache (or anything
else analogous) --so I've never used a mix. I've no clue if the
combination is coherent.

/usr/src/UPDATING and the like do not currently cover such a mix
involving things that are not from base as far as I can tell, even
though there is support in base for enabling cache builds.

Ignoring the mix issue: ccache has tradeoffs tied to preprocessor mode
vs. direct mode vs. depend mode, for example. You are not explicit the
ccache configuration in use.

A google search reported:

QUOTE
Stale or Poisoned Cache Entries: If you upgrade your FreeBSD source tree
(e.g., from main or an older release to a newer one) or switch compiler
flags, old object files cached under previous definitions or header
versions can be pulled in, causing strange linker or compilation errors.
END QUOTE

You are not explicit about use of filemon.ko . Absent filemon.ko being
loaded, WITH_META_MODE would be missing most of its information.


-- 
===
Mark Millard
marklmi at yahoo.com


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: src-env meta-mode & cleanworld for buildworld & friends
#62
Author: Bakul Shah
Date: Mon, 26 Oct 2026 22:21
42 lines
7035 bytes
On Oct 26, 2026, at 8:34 AM, void <void@f-m.fm> wrote:
> 
> Hi,
> 
> Is WITH_META_MODE= considered harmful when following -current?
> 
> I'm asking because (and I might be wrong here) but have its effects
> changed? Doing a buildworld & kernel coupled with not running cleanworld beforehand gave me grief building and
> installing a new world. The fix was to clear out /usr/obj, /var/cache/ccache*
> and run make cleanworld && make cleandir && make clean then run
> buildworld again. There was nothing in /usr/src/UPDATING stating
> this was needed at the time.
> 
> If I'm wrong and with_meta_mode & without cleanworld is fine,
> then is there a way of telling when (cleaning etc) would be required?
> 
> Or is it better to just try, fail, clean everything out, disable meta_mode, then try again? It being par for the course for following -current?
> 
> Is a PR of any use if it fails when meta-mode etc is used
> but works after everything is cleared out?

I have used

WITHOUT_CLEAN=yes
WITH_CCACHE_BUILD=yes
CCACHE_DIR=/usr/obj/ccache
WITH_META_MODE=yes

without any issues for a long time. I use these (& more) to
build stable/{14,15} and current, the latter for amd64 & arm64.

I periodically run  "CCACHE_DIR=/usr/obj/ccache ccache -c" to
keep it under configed space limit.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: src-env meta-mode & cleanworld for buildworld & friends
#65
Author: void
Date: Tue, 27 Oct 2026 00:14
50 lines
8509 bytes
On Mon, Oct 26, 2026 at 02:33:14PM -0700, Mark Millard wrote:

>You are not explicit about use of filemon.ko . Absent filemon.ko being
>loaded, WITH_META_MODE would be missing most of its information.

sorry, my bad.

relevant bits of /etc/src.conf

% head -n 10 /etc/src.conf
KERNCONF=GENERIC-NODEBUG
#
WITH_CCACHE_BUILD=
CCACHE_PREFIX=/usr/local/bin
#
WITH_MALLOC_PRODUCTION=
WITHOUT_DEBUG_FILES=
WITHOUT_FLOPPY=

(...)

% head -n 10 /etc/make.conf
MAKE_JOBS_NUMBER=20
WITH_CCACHE_BUILD=YES
#
CCACHE_DIR=/var/cache/ccache
SCCACHE_DIR=/var/cache/ccache/sccache
OVERLAYS+=/usr/local/share/sccache/overlay
#

(...)

At present, neither filemon or WITH_META_MODE= (in src-env.conf) are in use.
Because of previously mentioned issue.

I could put, I guess, "CCACHE_DIR=/var/cache/ccache" in /etc/src.conf too
given I want ccache speedups for buildworlds as well. But this is just an aside.
I wanted to know if I can keep using /usr/obj contents over many buildworlds,
together with meta mode (and of course filemon).

If I needed to blat it, how would I know in advance? Or is knowing this 
in advance not realistic?
-- 
void<at>f-m.fm | GPG fingerprint: BD97 5B52 1B78 B7A9 AFFE  7DD4 FD32 D1F9 0814 DECD
Please don't Cc: as I'm already subscribed to the list.


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads