Hi,
I’ve come across a build issue for EPICS base 7.0.7 on RHEL7:
In file included from ../misc/epicsRelease.c:19:0:
../O.Common/epicsVCS.h:9:34: warning: missing terminating " character [enabled by default]
#define EPICS_VCS_VERSION_DATE "Git: 2022-10-13 16:28:54 -0400
^
../O.Common/epicsVCS.h:10:1: warning: missing terminating " character [enabled by default]
"
^
../O.Common/epicsVCS.h:10:1: error: missing terminating " character
../misc/epicsRelease.c: In function ‘coreRelease’:
../misc/epicsRelease.c:26:5: error: missing terminating " character
printf ( "## %s\n", "Rev. Date " EPICS_VCS_VERSION_DATE );
^
The same base version builds fine on RHEL8 and RHEL9. The base is cloned from a locally hosted GitLab.
On my RHEL7 system where the build fails the epicsVCS.h file looks like:
/* Generated file, do not edit! */
/* Version determined from Git */
#ifndef EPICS_VCS_VERSION
#define EPICS_VCS_VERSION "rel7.0.7_20230322-3-gc33bc056721ad1cc8e79"
#endif
#ifndef EPICS_VCS_VERSION_DATE
#define EPICS_VCS_VERSION_DATE "Git: 2022-10-13 16:28:54 -0400
"
#endif
The final “ on the EPICS_VCS_VERSION_DATE line is on the wrong line.
On my RHEL8 system it looks like:
/* Generated file, do not edit! */
/* Version determined from Git */
#ifndef EPICS_VCS_VERSION
#define EPICS_VCS_VERSION "rel7.0.7_20230322-3-gc33bc056721ad1cc8e79"
#endif
#ifndef EPICS_VCS_VERSION_DATE
#define EPICS_VCS_VERSION_DATE "Git: 2022-10-13 16:28:54 -0400"
#endif
If I download a fresh version of 7.0.7 as a tar file and build that on RHEL7, that same file becomes:
/* Generated file, do not edit! */
/* Version determined from build date/time */
#ifndef EPICS_VCS_VERSION
#define EPICS_VCS_VERSION "2023-04-05T18:29-0400"
#endif
#ifndef EPICS_VCS_VERSION_DATE
#define EPICS_VCS_VERSION_DATE "build date/time: "
#endif
And the build works fine.
I assume it’s something to do with an older Git version. Any ideas?
The EPICS_VCS_VERSION_DATE seems new in 7.0.7. It wasn’t in 7.0.6.1 (which built fine on RHEL7 via the Git clone from our local GitLab copy of base).
Cheers,
Matt