6.99 master - release hash fixed at 'unknown' after 22.04 update

The git release number hash used to reflect accordingly within the version string.

Various gcc version compiles did not make a difference.

A fresh git clone did not make a difference either.

All that, distinctively AFTER an update/‘upgrade’ to 22.04

Any ideas from the devs or head scratching? Cheers


Application: KiCad

Version: 6.99.0-unknown, release build

Libraries:
wxWidgets 3.1.6
FreeType 2.11.1
HarfBuzz 2.7.4
FontConfig 2.13.1
libcurl/7.81.0 GnuTLS/3.7.3 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.11

Platform: Linux 5.15.0-30-generic x86_64, 64 bit, Little endian, wxGTK, xubuntu, x11

Build Info:
Date: May 18 2022 21:05:30
wxWidgets: 3.1.6 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.2
Curl: 7.81.0
ngspice: 31
Compiler: GCC 11.2.0 with C++ ABI 1016

Build settings:
KICAD_USE_OCC=ON
KICAD_USE_EGL=ON
KICAD_SPICE=ON

Issue seems to be Linux only. Windows is ok.

unknown means that it was unable to use git describe in the source. You should see a line saying

Using Git to determine build version string.

in the CMake log for the build to show it tried to get the commit hash. If you don’t, then it means that CMake was unable to find the git executable. If you do see that, and if it still gives unknown, verify that the directory is still a valid git repository.

a command line git describe returns properly → 6.99.0-1918-g5edc03e85b

cmake is 3.22.1 with 22.04

seems to be a cmake version related process flow issue

in any case, cmake can’t find git at runtime

To whoever may find that curious,

by some KiCad developer team ‘magic’ the release hash suddenly showed up again.

Cheers

Application: KiCad

Version: (6.99.0-2526-ge8492f32ab), release build

Libraries:
wxWidgets 3.1.7
FreeType 2.11.1
HarfBuzz 2.7.4
FontConfig 2.13.1
libcurl/7.81.0 GnuTLS/3.7.3 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.12

Platform: Linux 5.15.0-43-generic x86_64, 64 bit, Little endian, wxGTK, xubuntu, x11

Build Info:
Date: Jul 19 2022 10:23:46
wxWidgets: 3.1.7 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.2
Curl: 7.81.0
ngspice: 31
Compiler: GCC 11.2.0 with C++ ABI 1016

Build settings:
KICAD_USE_OCC=ON
KICAD_USE_EGL=ON
KICAD_SPICE=ON

1 Like