From nobody Tue Nov 25 15:12:10 2025 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dG5lL0BZhz6JJ1s for ; Tue, 25 Nov 2025 15:12:14 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp-relay-int-backup.realworks.nl (smtp-relay-int-backup.realworks.nl [87.255.56.188]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4dG5lK3rbJz3ZNk for ; Tue, 25 Nov 2025 15:12:13 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Authentication-Results: mx1.freebsd.org; none Received: from smtp-relay-int-backup.realworks.nl (crmpreview5.colo2.realworks.nl [10.2.52.35]) by mailrelayint2.colo2.realworks.nl (Postfix) with ESMTP id 4dG5lH3cZzz1Wm; Tue, 25 Nov 2025 16:12:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1764083531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mCRIN869CSlcEKMYsoVdooCffZpvBwIThYXiOCuYnqM=; b=LIws5aLFB+JtfP9+yTwnbdioz8YsbCvgEzRnzdjHKu3ptURDYL71RmDcg++BzT3E0zgxWk Kv07bC8ATKonfo44Awf+KeKmDDd8pz+0pmofbYFtJB0vovQzHpYKVhsoDbQGQb49UG2JNh T4UX1jgCkeElrZXCTLrYqYBGr75C/l95GMPGVtWs8UpgYp+EED6xmwkV50b9+uwtq9b2pw JXAKu6THaaRuwrazy571drszfvuIBHkq7Sx5KG5mDcvJam/ryjtyngZGWKIBBTLiEC1VEt sE2vWHfDDwwfjbm9+yKVBaAFzA30E4x0cATsgOVxofjgGfdnCBsvqcUVQCKUfA== Received: from crmpreview5.colo2.realworks.nl (localhost [127.0.0.1]) by crmpreview5.colo2.realworks.nl (Postfix) with ESMTP id 5D7CDC02F2; Tue, 25 Nov 2025 16:12:10 +0100 (CET) Date: Tue, 25 Nov 2025 16:12:10 +0100 (CET) From: Ronald Klop To: Warner Losh Cc: FreeBSD Current Message-ID: <1085097762.8654.1764083530992@localhost> In-Reply-To: References: <1375923085.6629.1764078726226@localhost> Subject: Re: building libclang and WITHOUT_TOOLCHAIN? List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8653_1932903303.1764083530983" X-Mailer: Realworks (774.21) X-Originating-Host: from (83-81-212-149.cable.dynamic.v4.ziggo.nl [83.81.212.149]) by crmpreview5.colo2.realworks.nl [10.2.52.35] with HTTP; Tue, 25 Nov 2025 16:12:10 +0100 Importance: Normal X-Priority: 3 (Normal) X-Originating-User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/145.0 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:38930, ipnet:87.255.32.0/19, country:NL] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dG5lK3rbJz3ZNk ------=_Part_8653_1932903303.1764083530983 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: Warner Losh Datum: dinsdag, 25 november 2025 15:27 Aan: Ronald Klop CC: FreeBSD Current Onderwerp: Re: building libclang and WITHOUT_TOOLCHAIN? > > > On Tue, Nov 25, 2025, 6:52AM Ronald Klop wrote: >> >> Hi, >> >> My build setup contains WITHOUT_TOOLCHAIN which saved me a lot of time on the Raspberry Pi's. >> Since a while they are building llvm/clang stuff nonetheless. >> I have the feeling this started when llvm/clang started to be build as private libraries. >> >> https://github.com/freebsd/freebsd-src/commit/2e47f35be5dc61945afdbd1a70e8fd505c032c94 >> >> Could this change have influenced how WITHOUT_TOOLCHAIN works? >> Would it be possible to skip building these libraries using other knobs? >> >> Or is my thought about this unfounded? > > > In yhr last week or three i fixed a bug in metamode that eould always rebuild the toolchain... when did you last try? > > Warner > >> >> Regards, >> Ronald. >> >> > Currently building 16-current on a 15 days old system. I don't think I use metamode. I just do buildworld. $ uname -a FreeBSD rpi5 16.0-CURRENT FreeBSD 16.0-CURRENT #2 main-n281790-abd53b16c03f: Mon Nov 10 23:34:05 CET 2025 root@rpi5:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-NODEBUG arm64 $ ps d -D down -p 7025 PID TT STAT TIME COMMAND 7025 1 I+ 0:00.00 /usr/local/bin/bash /home/ronald/bin/makeworld.sh 7058 1 IN+ 0:00.00 - time make -j4 -DWITHOUT_CLEAN=yes -DWITHOUT_TOOLCHAIN=yes buildworld 7059 1 SN+ 0:01.79 `-- make -j4 -DWITHOUT_CLEAN=yes -DWITHOUT_TOOLCHAIN=yes buildworld 7095 1 IN 0:00.00 `-- sh -ev 7096 1 SN 0:01.86 `-- make -m /usr/src/share/mk -f Makefile.inc1 TARGET=arm64 TARGET_ARCH=aarch64 buildworld 21526 1 IN 0:00.00 `-- sh -ev 21527 1 IN 0:00.00 `-- time env MACHINE_ARCH=aarch64 MACHINE=arm64 CPUTYPE= CC=cc -target aarch64-unknown-freebsd16.0 --sysroot=/u 21528 1 SN 0:01.62 `-- make -f Makefile.inc1 BWPHASE=libraries DESTDIR=/usr/obj/usr/src/arm64.aarch64/tmp -DNO_FSCHG MK_HTML=no 21554 1 IN 0:00.00 `-- sh -ev 42314 1 SN 0:00.53 `-- make -f Makefile.inc1 _generic_libs 42323 1 IN 0:00.00 `-- sh -ev 42327 1 SN 0:00.51 `-- make MK_TESTS=no DIRPRFX=lib/ all 48783 1 IN 0:00.00 `-- sh -e 48784 1 SN 0:00.04 `-- make all DIRPRFX=lib/clang/ 48787 1 IN 0:00.00 `-- sh -e 48788 1 SN 0:08.68 `-- make all DIRPRFX=lib/clang/libllvm/ 54507 1 SN 0:00.00 |-- sh -ev 54508 1 RN 0:14.53 | `-- c++ -target aarch64-unknown-freebsd16.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp 54518 1 SN 0:00.00 |-- sh -ev 54519 1 RN 0:06.47 | `-- c++ -target aarch64-unknown-freebsd16.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp 54524 1 SN 0:00.00 |-- sh -ev 54525 1 RN 0:01.34 | `-- c++ -target aarch64-unknown-freebsd16.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp 54526 1 SN 0:00.00 `-- sh -ev 54527 1 RN 0:00.68 `-- c++ -target aarch64-unknown-freebsd16.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp Regards, Ronald. ------=_Part_8653_1932903303.1764083530983 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Van: Warner Losh <imp@bsdimp.com>
Datum: dinsdag, 25 november 2025 15:27
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: FreeBSD Current <current@freebsd.org>
Onderwerp: Re: building libclang and WITHOUT_TOOLCHAIN?

 
On Tue, Nov 25, 2025, 6:52AM Ronald Klop <ronald-lists@klop.ws> wrote:
Hi,

My build setup contains WITHOUT_TOOLCHAIN which saved me a lot of time on the Raspberry Pi's.
Since a while they are building llvm/clang stuff nonetheless.
I have the feeling this started when llvm/clang started to be build as private libraries.

https://github.com/freebsd/freebsd-src/commit/2e47f35be5dc61945afdbd1a70e8fd505c032c94

Could this change have influenced how WITHOUT_TOOLCHAIN works?
Would it be possible to skip building these libraries using other knobs?

Or is my thought about this unfounded?
 
In yhr last week or three i fixed a bug in metamode that eould always rebuild the toolchain... when did you last try?
 
Warner
 
Regards,
Ronald.

 


Currently building 16-current on a 15 days old system. I don't think I use metamode. I just do buildworld.
$ uname -a
FreeBSD rpi5 16.0-CURRENT FreeBSD 16.0-CURRENT #2 main-n281790-abd53b16c03f: Mon Nov 10 23:34:05 CET 2025     root@rpi5:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-NODEBUG arm64

$ ps d -D down -p 7025
  PID TT  STAT    TIME COMMAND
 7025  1  I+   0:00.00 /usr/local/bin/bash /home/ronald/bin/makeworld.sh
 7058  1  IN+  0:00.00 - time make -j4 -DWITHOUT_CLEAN=yes -DWITHOUT_TOOLCHAIN=yes buildworld
 7059  1  SN+  0:01.79 `-- make -j4 -DWITHOUT_CLEAN=yes -DWITHOUT_TOOLCHAIN=yes buildworld
 7095  1  IN   0:00.00   `-- sh -ev
 7096  1  SN   0:01.86     `-- make -m /usr/src/share/mk -f Makefile.inc1 TARGET=arm64 TARGET_ARCH=aarch64 buildworld
21526  1  IN   0:00.00       `-- sh -ev
21527  1  IN   0:00.00         `-- time env MACHINE_ARCH=aarch64 MACHINE=arm64 CPUTYPE= CC=cc -target aarch64-unknown-freebsd16.0 --sysroot=/u
21528  1  SN   0:01.62           `-- make -f Makefile.inc1 BWPHASE=libraries DESTDIR=/usr/obj/usr/src/arm64.aarch64/tmp -DNO_FSCHG MK_HTML=no
21554  1  IN   0:00.00             `-- sh -ev
42314  1  SN   0:00.53               `-- make -f Makefile.inc1 _generic_libs
42323  1  IN   0:00.00                 `-- sh -ev
42327  1  SN   0:00.51                   `-- make MK_TESTS=no DIRPRFX=lib/ all
48783  1  IN   0:00.00                     `-- sh -e
48784  1  SN   0:00.04                       `-- make all DIRPRFX=lib/clang/
48787  1  IN   0:00.00                         `-- sh -e
48788  1  SN   0:08.68                           `-- make all DIRPRFX=lib/clang/libllvm/
54507  1  SN   0:00.00                             |-- sh -ev
54508  1  RN   0:14.53                             | `-- c++ -target aarch64-unknown-freebsd16.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp
54518  1  SN   0:00.00                             |-- sh -ev
54519  1  RN   0:06.47                             | `-- c++ -target aarch64-unknown-freebsd16.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp
54524  1  SN   0:00.00                             |-- sh -ev
54525  1  RN   0:01.34                             | `-- c++ -target aarch64-unknown-freebsd16.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp
54526  1  SN   0:00.00                             `-- sh -ev
54527  1  RN   0:00.68                               `-- c++ -target aarch64-unknown-freebsd16.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp


Regards,
Ronald.
  ------=_Part_8653_1932903303.1764083530983--