1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | base 7.0.7 build fails on RHEL7 |
From: | "Pearson, Matthew via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Wed, 5 Apr 2023 22:35:18 +0000 |
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 |