EPICS Home

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: Re: compilation error on pvData wrt epics base
From: "Johnson, Andrew N." <[email protected]>
To: Jeong Han Lee <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Sat, 23 Jun 2018 17:22:49 +0000
Hi Han

When you wrote “install pvData (in source directory)” what did you mean, and did you edit the pvData/configure/RELEASE file? I suspect you are not configuring the pvData module correctly.

Unless you’re using EPICS 7 or the fully bundled 4.7 release you need to treat each of the PVA modules as a regular support module, installing them in their own area and editing the configure/RELEASE files as appropriate (there should be comments in each file explaining what other modules they need to point to). It is also possible to set a value for INSTALL_LOCATION to a common directory in the modules’ CONFIG_SITE file, in which case you don’t have to worry about editing the RELEASE files.

- Andrew

-- 
Sent from my iPad

> On Jun 23, 2018, at 7:57 AM, Jeong Han Lee <[email protected]> wrote:
> 
> 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
> <debug_cfg_include.txt>

Replies:
Re: compilation error on pvData wrt epics base Jeong Han Lee
References:
compilation error on pvData wrt epics base Jeong Han Lee

Navigate by Date:
Prev: compilation error on pvData wrt epics base Jeong Han Lee
Next: Re: compilation error on pvData wrt epics base Jeong Han Lee
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: compilation error on pvData wrt epics base Jeong Han Lee
Next: Re: compilation error on pvData wrt epics base Jeong Han Lee
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