Re: Proposal: Simplify or Remove Compiler Version Details from Kernel Banner

"Enji Cooper (yaneurabeya)" <[email protected]>
Newsgroups gmane.os.freebsd.devel.hackers
Message-ID <[email protected]>
> On Mar 13, 2026, at 5:12 AM, Dimitry Andric <[email protected]> wrote:
> 
> On 13 Mar 2026, at 12:07, Haowu Ge(葛豪武) <[email protected]> wrote:
>> 
>>    Given that FreeBSD now exclusively uses Clang, the full compiler version string—particularly the part containing the GitHub URL—originally introduced to support GCC/Clang coexistence,
> 
> You can still compile FreeBSD with gcc, if you want. The compiler version string inserted into the kernel's banner is simply the first line of "$CC -v" output. The linker version string is handled similarly.
> 
> The way clang prints its version information is determined by upstream, see https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Version.cpp.
> 
> The FreeBSD version of clang uses almost the same format as upstream, except for the following differences:
> * We set CLANG_VENDOR to "FreeBSD".
> * We use the "git describe" version of the commit hash, since it is more informative than a long string of hex digits.

Hi Haowu!
	As Dimiitry noted, the compiler, git revision, etc, information has debug/diagnostic benefit to folks trying to support FreeBSD (developers, release engineers, etc).
	Is there a reason why you want to remove this information? It can be tuned via sys/conf/newvers.sh (that’s what $work does with their forked version of FreeBSD), but that interface is admittedly pretty clunky to customize.
Cheers,
-Enji
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEkHfexGRJ3gYRdA2gGpE5DjPsNJgFAmm0NecACgkQGpE5DjPs
NJjm5Q//aqBpBF+R138kwKNx76J4AVceVde45xgPecnGtlUyhv5p5/3u2wwn9bHU
DGZIj0q/AbW3brpZVJPxX+cTqci3leCvdU1n8toDY2xnbpOJPdWUc3p1i6ignI8J
KDQNKbhovOyC+v+YHg+pblEhPzN4nemNFiE5B8Tb73JGMzQ93bVCmIPq0hrZo/uF
Rpr1YxwPmiaHLlncWVThbsuiXtoHVE8FwUXWiBaXz1AkqKPfYb61yRRtBdOXBhga
LOLWtbNkfP8ZGcjeyHqkybhbdjCoSbjN7mIft5v98JBRpHFBpRWcqVk5vY8+vI1P
D+mzHCzc62Oo14LEy7m8HytXzSip3S+/bBIoPtE5mIElk/78g7s2IMsAv3CNOkO5
soetwJeR3L89tmIFrevrTmHedFnePHUR+9NAvfRQJWoussBrSS3ZIW8/s6b2SdCK
8zA1MEZLm5gh6aQvv14xccHLZIftB2xBBXpzWOtGeCLL7r7b0qq/rYKEBfwz9WjE
b/VdXU6hldhCjPpWZuqagFnOh7cc3CbiLbHb20v5ZVWJT6Jc0rWBqSNBUhT+E9un
Qf7qUxPRRlOJNqLz3WgG8MaeeK7tokFmVgKI1nd6bJChyNilXvv8pBzJfd9/YRik
13cYVI+8ORdNwN1W9dnLJ4vj3W/jG95+84AytjaU5+28dVDH8OQ=
=M5Bu
-----END PGP SIGNATURE-----
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.