EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: compilation error on pvData wrt epics base
From: Jeong Han Lee <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Sat, 23 Jun 2018 14:57:19 +0200
Hi,

  I am trying to compile the pvData w.r.t. EPICS base 3.15.5 and 3.16.1.

  The procedure which I did is

  1) install EPICS base with INSTALL_LOCATION (/epics/base-x.x.x)

  2) install pvData (in source directory)

  Then, it returns the following errors:

--- snip snip ----

  ude        -c ../../src/pv/pvdVersion.cpp
../../src/pv/pvdVersion.cpp: In function ‘void epics::pvData::getVersion(epics::pvData::PVDataVersion*)’: ../../src/pv/pvdVersion.cpp:15:41: error: expected primary-expression before ‘;’ token
     ptr->major = EPICS_PVD_MAJOR_VERSION;
                                         ^
../../src/pv/pvdVersion.cpp:16:41: error: expected primary-expression before ‘;’ token
     ptr->minor = EPICS_PVD_MINOR_VERSION;
                                         ^
../../src/pv/pvdVersion.cpp:17:47: error: expected primary-expression before ‘;’ token
     ptr->maint = EPICS_PVD_MAINTENANCE_VERSION;
                                               ^
../../src/pv/pvdVersion.cpp:18:44: error: expected primary-expression before ‘;’ token
     ptr->devel = EPICS_PVD_DEVELOPMENT_FLAG;
                                            ^
/epics/base-3.15.5/configure/RULES_BUILD:237: recipe for target 'pvdVersion.o' failed
pvdVersion.d:1: *** [pvdVersion.o] Error 1

  --- snip snip ----

The problem which I saw is pvdVersionNum.h, which doesn't have any version number.

  It turns out the ~/cfg/cfg/CONFIG_PVDATA_VERSION isn't included properly.

  I forced to add the following line in CONFIG_SITE.local

 -include $(TOP)/configure/CONFIG_PVDATA_VERSION

  or

  add the following line in pvData/configure/CONFIG

  ifneq ($(TOP_CFG_CONFIGS),)
    include $(TOP_CFG_CONFIGS)
  endif


It properly is included and pvdVersionNum.h should have the proper number.


When I will try to compile one by one instead of all, I expect the same problems in most of EPICS V7 modules , because it uses the core/master/cfg file

Please see the enclosed file for "make -c ./src install" log with and without modifications.

  Best,
  Han
Without any modification


Entering src ....

--- snip snip ----


remake -C ./src install 
Reading makefile 'Makefile'...
Reading makefile '../configure/CONFIG' (search path) (no ~ expansion)...
Reading makefile '../configure/RELEASE' (search path) (no ~ expansion)...
Reading makefile '../../RELEASE.local' (search path) (don't care) (no ~ expansion)...
Reading makefile '../../RELEASE..local' (search path) (don't care) (no ~ expansion)...
Reading makefile '../configure/RELEASE.local' (search path) (don't care) (no ~ expansion)...
Reading makefile '../configure/RELEASE..Common' (search path) (don't care) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG' (search path) (no ~ expansion)...
remake[1]: Entering directory '/home/jhlee/e3_v7/e3-pvData/pvDataCPP/src'
Reading makefile '/epics/base-3.16.1/configure/RELEASE' (search path) (don't care) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/RELEASE.linux-x86_64' (search path) (don't care) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/RELEASE.linux-x86_64.Common' (search path) (don't care) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG_COMMON' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG_FILE_TYPE' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG_BASE' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG_SITE' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG_BASE_VERSION' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/os/CONFIG.linux-x86_64.Common' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/os/CONFIG.UnixCommon.Common' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/os/CONFIG_SITE.UnixCommon.Common' (search path) (don't care) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/os/CONFIG_SITE.linux-x86_64.Common' (search path) (don't care) (no ~ expansion)...
Reading makefile '/home/jhlee/configure/CONFIG_USER' (search path) (don't care) (no ~ expansion)...
Reading makefile '/home/jhlee/configure/CONFIG_USER.linux-x86_64' (search path) (don't care) (no ~ expansion)...
Reading makefile '../configure/CONFIG_SITE' (search path) (no ~ expansion)...
Reading makefile '../../CONFIG_SITE.local' (search path) (don't care) (no ~ expansion)...
Reading makefile '../configure/CONFIG_SITE.local' (search path) (don't care) (no ~ expansion)...
Reading makefile '../configure/CONFIG_SITE.linux-x86_64.Common' (search path) (don't care) (no ~ expansion)...
Reading makefile '../src/misc/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/pv/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/factory/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/property/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/copy/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/pvMisc/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/json/Makefile' (search path) (no ~ expansion)...
Reading makefile '../configure/RULES' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/RULES' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/RULES_ARCHS' (search path) (no ~ expansion)...
Reading makefile '/home/jhlee/configure/RULES_USER' (search path) (don't care) (no ~ expansion)...

---- snip snip ---



Entering src with the pvData/configure/CONFIG modification as

```
  ifneq ($(TOP_CFG_CONFIGS),)
    include $(TOP_CFG_CONFIGS)
  endif
```

--- snip snip -----

remake -C ./src install 
Reading makefile 'Makefile'...
Reading makefile '../configure/CONFIG' (search path) (no ~ expansion)...
Reading makefile '../configure/RELEASE' (search path) (no ~ expansion)...
Reading makefile '../../RELEASE.local' (search path) (don't care) (no ~ expansion)...
Reading makefile '../../RELEASE..local' (search path) (don't care) (no ~ expansion)...
Reading makefile '../configure/RELEASE.local' (search path) (don't care) (no ~ expansion)...
Reading makefile '../configure/RELEASE..Common' (search path) (don't care) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG' (search path) (no ~ expansion)...
remake[1]: Entering directory '/home/jhlee/e3_v7/e3-pvData/pvDataCPP/src'
Reading makefile '/epics/base-3.16.1/configure/RELEASE' (search path) (don't care) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/RELEASE.linux-x86_64' (search path) (don't care) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/RELEASE.linux-x86_64.Common' (search path) (don't care) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG_COMMON' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG_FILE_TYPE' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG_BASE' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG_SITE' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/CONFIG_BASE_VERSION' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/os/CONFIG.linux-x86_64.Common' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/os/CONFIG.UnixCommon.Common' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/os/CONFIG_SITE.UnixCommon.Common' (search path) (don't care) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/os/CONFIG_SITE.linux-x86_64.Common' (search path) (don't care) (no ~ expansion)...
Reading makefile '/home/jhlee/configure/CONFIG_USER' (search path) (don't care) (no ~ expansion)...
Reading makefile '/home/jhlee/configure/CONFIG_USER.linux-x86_64' (search path) (don't care) (no ~ expansion)...
Reading makefile '../cfg/CONFIG_PVDATA_VERSION' (search path) (no ~ expansion)...
Reading makefile '../configure/CONFIG_SITE' (search path) (no ~ expansion)...
Reading makefile '../../CONFIG_SITE.local' (search path) (don't care) (no ~ expansion)...
Reading makefile '../configure/CONFIG_SITE.local' (search path) (don't care) (no ~ expansion)...
Reading makefile '../configure/CONFIG_SITE.linux-x86_64.Common' (search path) (don't care) (no ~ expansion)...
Reading makefile '../src/misc/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/pv/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/factory/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/property/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/copy/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/pvMisc/Makefile' (search path) (no ~ expansion)...
Reading makefile '../src/json/Makefile' (search path) (no ~ expansion)...
Reading makefile '../configure/RULES' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/RULES' (search path) (no ~ expansion)...
Reading makefile '/epics/base-3.16.1/configure/RULES_ARCHS' (search path) (no ~ expansion)...
Reading makefile '/home/jhlee/configure/RULES_USER' (search path) (don't care) (no ~ expansion)...



--- snip snip -----

Replies:
Re: compilation error on pvData wrt epics base Johnson, Andrew N.

Navigate by Date:
Prev: Re: A recent R3.15.5 Patch file Jeong Han Lee
Next: Re: compilation error on pvData wrt epics base Johnson, Andrew N.
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Why do EPICS Base startup scripts refer to non-depedencies? Andrew Johnson
Next: Re: compilation error on pvData wrt epics base Johnson, Andrew N.
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 23 Jun 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·