> On 9 Feb 2022, at 13:30, Peter Maydell <peter.mayd...@linaro.org> wrote:
>
> gcc doesn't prepend the pkgversion string to the greeting. ...
> ... and 'gcc --version' prints the version as:
> gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Right, strictly speaking, GCC prints the program name, then the greeting
message, then the version.
The binaries in my distribution look like this:
$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (xPack GNU Arm Embedded GCC x86_64) 10.3.1 20210824 (release)
$ arm-none-eabi-gdb --version
GNU gdb (xPack GNU Arm Embedded GCC x86_64) 10.2.90.20210621-git
$ riscv-none-embed-gcc --version
riscv-none-embed-gcc (xPack GNU RISC-V Embedded GCC x86_64) 10.2.0
$ clang-12 --version
xPack x86_64 clang version 12.0.1
$ openocd --version
xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2021-10-17-00:18)
and similarly some other build tools:
$ gcc-xbb --version
gcc-xbb (xPack Build Box x86_64 GCC) 11.2.0
etc
> which is fairly similar to what qemu does today:
> QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.19)
which is fairly different from the more consistent:
$ qemu-system-arm --version
xPack QEMU emulator version 6.2.0 (v6.2.0-1-xpack-arm)
If you prefer the GNU scheme, we can also start with the program name, and it
would look like:
$ qemu-system-arm --version
qemu-system-arm (xPack QEMU emulator) version 6.2.0 (v6.2.0-1-xpack-arm)
Or something like this, but applied consistently to all binaries.
Regards,
Liviu