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  2018  2019  2020  2021  <20222023  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: RE: ADSimDetector-R2-10 build errors with base-7.0.6.1
From: Freddie Akeroyd - STFC UKRI via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 3 Aug 2022 23:56:49 +0000

Could the error be indicating an issue with the definition of epicsShareClass in the build? The implementation of this in base changed between 7.0.3.1 and 7.0.6.1 as per  https://github.com/epics-base/epics-base/blob/007279cf2905cd006879b780a50faeb592d20cd9/documentation/RELEASE_NOTES.md#_api-macros-in-epics-headers which says an explicit include of shareLib.h might be required in some cases. I can’t say why Mark’s build works if this is the missing, but it might be worth adding an    include <shareLib.h>    to the file and seeing if it helps

 

Regards,

 

Freddie    

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Mark Rivers via Tech-talk
Sent: 03 August 2022 23:53
To: Miceli, Antonino <amiceli at anl.gov>
Cc: Piatak, Christopher <cpiatak at anl.gov>; tech-talk at aps.anl.gov >> EPICS Tech Talk <tech-talk at aps.anl.gov>
Subject: Re: ADSimDetector-R2-10 build errors with base-7.0.6.1

 

I just built the master branch of ADSimDetector with base 7.0.6.1 with no errors on Centos 8.

 

[epics@viper configure]$ echo $EPICS_HOST_ARCH

linux-x86_64-centos8

[epics@viper configure]$ cd ../ADSimDetector/

[epics@viper ADSimDetector]$ make -sj

[epics@viper ADSimDetector]$

 

I don’t think there are any changes in ADSimDetector between R2-10 and master that should affect this.

 

Mark

 

Sent from my iPhone



On Aug 3, 2022, at 4:12 PM, Miceli, Antonino via Tech-talk <tech-talk at aps.anl.gov> wrote:



Hi, 

 

We are having problems building ADSimDetector-R2-10 with base-7.0.6.1. (It builds ok with base-7.0.3.1!) 

This is on RHEL8 machine. 

 

Snippet of errors:

 

/usr/bin/g++  -D_GNU_SOURCE -D_DEFAULT_SOURCE           -D_X86_64_  -DUNIX  -Dlinux      -O3 -g   -Wall      -mtune=generic      -m64  -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include   -I../../../../../include      -I/local/DPbin/epics/epics_2022_06_01/support-R6-2-1/synApps/support/asyn-R4-42/include     -I/local/DPbin/epics/epics_2022_06_01/support-R6-2-1/synApps/support/areaDetector-R3-12-1/ADSupport-R1-10/include/os/Linux -I/local/DPbin/epics/epics_2022_06_01/support-R6-2-1/synApps/support/areaDetector-R3-12-1/ADSupport-R1-10/include   [lots of -l's]       -c ../simDetectorNoIOC.cpp 

In file included from ../simDetectorNoIOC.cpp:17: 

../../../../../include/simDetector.h:9:35: error: expected initializer before ‘:’ token 

 class epicsShareClass simDetector : public ADDriver { 

                                   

In file included from /local/DPbin/epics/epics_2022_06_01/base-7.0.6.1/include/dbAccess.h:20, 

                 from ../simDetectorNoIOC.cpp:24: 

/local/DPbin/epics/epics_2022_06_01/base-7.0.6.1/include/dbBase.h:164:22: warning: ‘rset’ is deprecated [-Wdeprecated-declarations] 

     rset            *prset; 

                      ^~~~~ 

 

 

Thanks, 

Nino

 

This email and any attachments are intended solely for the use of the named recipients. If you are not the intended recipient you must not use, disclose, copy or distribute this email or any of its attachments and should notify the sender immediately and delete this email from your system. UK Research and Innovation (UKRI) has taken every reasonable precaution to minimise risk of this email or any attachments containing viruses or malware but the recipient should carry out its own virus and malware checks before opening the attachments. UKRI does not accept any liability for any losses or damages which the recipient may sustain due to presence of any viruses. 


Replies:
Re: ADSimDetector-R2-10 build errors with base-7.0.6.1 Mark Rivers via Tech-talk
References:
ADSimDetector-R2-10 build errors with base-7.0.6.1 Miceli, Antonino via Tech-talk
Re: ADSimDetector-R2-10 build errors with base-7.0.6.1 Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: ADSimDetector-R2-10 build errors with base-7.0.6.1 Mark Rivers via Tech-talk
Next: Re: ADSimDetector-R2-10 build errors with base-7.0.6.1 Mark Rivers via Tech-talk
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  <20222023  2024 
Navigate by Thread:
Prev: Re: ADSimDetector-R2-10 build errors with base-7.0.6.1 Mark Rivers via Tech-talk
Next: Re: ADSimDetector-R2-10 build errors with base-7.0.6.1 Mark Rivers via Tech-talk
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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·