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  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: EPICS Base 3.14.12.8 build error on CentOS 9
From: Maren Purves via Tech-talk <tech-talk at aps.anl.gov>
To: Chiang, Liang-Chih [江良志] <chiang.lc at nsrrc.org.tw>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 5 Oct 2022 23:40:59 -1000
Aloha,

we're still running 3.13.8, but we're also in some areas still running
CentOS5 - none of our EPICS running/communicating with (production)
systems are past CentOS6.
I am currently considering upgrading one of the CentOS5 systems, but I
think I would also want  to upgrade to at least EPICS 3.15 or 3.16,
but preferably EPICS 7.
I would consider upgrading EPICS before going from CentOS8 (or Rocky,
or whichever system you may choose) to 9.

Maren Purves,
East Asian Observatory/JCMT

On Wed, Oct 5, 2022 at 10:37 PM Chiang, Liang-Chih [江良志] via Tech-talk
<tech-talk at aps.anl.gov> wrote:
>
> Hi,
>
> I tried to build EPICS Base 3.14.12.8,
>  succeed on CentOS 8 (GCC version 8.5.0, make version 4.2.1);
>  failed on CentOS 9 (GCC version 11.3.1, make version 4.3).
>
> It seemed the error is related to C++ private/protected access specifiers.
>  I guess that the reason is because CentOS 9's newer GCC has tightened some rules.
>
> After modifying a file "src/cas/generic/ioBlocked.h", at  line 43:
>     class ioBlockedList : private tsDLList<ioBlocked> {
> changed to
>     class ioBlockedList : protected tsDLList<ioBlocked> {
>
> Then the build succeed.
>
> My question: is  the above modification a proper fix to correct this build error.
>
>
> The build log:
>
> In file included from ../../../../src/cas/generic/caServer.cc:21:
> ../../../../src/cas/generic/caServerI.h: At global scope:
> ../../../../src/cas/generic/caServerI.h:91:5: error: ‘class tsDLList<ioBlocked> tsDLList<ioBlocked>::tsDLList’ is private within this context
> 91 | tsDLList < casStrmClient > clientList;
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from ../../../../src/cas/generic/caServerI.h:33,
> from ../../../../src/cas/generic/caServer.cc:21:
> ../../../../src/cas/generic/ioBlocked.h:43:7: note: declared private here
> 43 | class ioBlockedList : private tsDLList<ioBlocked> {
> | ^~~~~~~~~~~~~
> In file included from ../../../../src/cas/generic/caServer.cc:21:
> ../../../../src/cas/generic/caServerI.h:92:5: error: ‘class tsDLList<ioBlocked> tsDLList<ioBlocked>::tsDLList’ is private within this context
> 92 | tsDLList < casIntfOS > intfList;
> | ^~~~~~~~~~~~~~~~~~~~~~
> In file included from ../../../../src/cas/generic/caServerI.h:33,
> from ../../../../src/cas/generic/caServer.cc:21:
> ../../../../src/cas/generic/ioBlocked.h:43:7: note: declared private here
> 43 | class ioBlockedList : private tsDLList<ioBlocked> {
> | ^~~~~~~~~~~~~
> make[4]: *** [../../../../configure/RULES_BUILD:220: caServer.o] Error 1
> make[4]: Leaving directory '/home/chiang.lc/base-3.14.12.8/src/cas/build/O.linux-x86_64'
> make[3]: *** [../../../configure/RULES_ARCHS:61: install.linux-x86_64] Error 2
> make[3]: Leaving directory '/home/chiang.lc/base-3.14.12.8/src/cas/build'
> make[2]: *** [../../configure/RULES_DIRS:83: build.install] Error 2
> make[2]: Leaving directory '/home/chiang.lc/base-3.14.12.8/src/cas'
> make[1]: *** [../configure/RULES_DIRS:83: cas.install] Error 2
> make[1]: Leaving directory '/home/chiang.lc/base-3.14.12.8/src' make: *** [configure/RULES_DIRS:83: src.install] Error 2
>
>
>
> Best regards.
>
>
>
> LiangChih Chiang
>
> NSRRC Beamline group

Replies:
Re: EPICS Base 3.14.12.8 build error on CentOS 9 Ralph Lange via Tech-talk
References:
EPICS Base 3.14.12.8 build error on CentOS 9 Chiang, Liang-Chih [江良志] via Tech-talk

Navigate by Date:
Prev: Re: EPICS 7 side-by-side with EPICS 3/4 Timo Korhonen via Tech-talk
Next: RE: asynMotorController weird behavior when using any read/write interface mask Abdalla Ahmad 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: EPICS Base 3.14.12.8 build error on CentOS 9 Chiang, Liang-Chih [江良志] via Tech-talk
Next: Re: EPICS Base 3.14.12.8 build error on CentOS 9 Ralph Lange 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