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

Dimitry Andric <[email protected]>
Newsgroups gmane.os.freebsd.devel.hackers
Message-ID <[email protected]>
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.

-Dimitry
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.