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

Subject: RE: Problem compiling epicsOnce.cpp
From: Mark Rivers <[email protected]>
To: "'Eric Norum'" <[email protected]>, EPICS tech-talk <[email protected]>
Date: Tue, 16 Feb 2016 22:44:30 +0000

Others had that same problem building base 3.14.12.1.

 

http://www.aps.anl.gov/epics/tech-talk/2011/msg00964.php

 

The problem is presumably fixed in more recent versions of EPICS base.  Can you upgrade to a more recent version?

 

Mark

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Eric Norum
Sent: Tuesday, February 16, 2016 4:07 PM
To: EPICS tech-talk
Subject: Problem compiling epicsOnce.cpp

 

The APEX project here is using R3.14.12.1 with EPICS_HOST_ARCH=linux-x86_64.   Everything up until now has been built with gcc-4.4.6.  I’m now trying to get the Galil motor support running.  This requires a more modern GCC to support the std=c++11 option.  I’ve installed gcc-4.9.3, but when I try to rebuild base I get:

remote/hpcs-sw/RHEL-6.x86_64/gcc/4.9.3/bin/g++ -c  -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500           -D_X86_64_  -DUNIX  -D_BSD_SOURCE -Dlinux  -D_REENTRANT   -O3   -Wall      -m64     -g -fPIC -MMD -I. -I../O.Common -I. -I../../../src/libCom/osi/os/Linux -I../../../src/libCom/osi/os/posix -I../../../src/libCom/osi/os/default -I.. -I../../../src/libCom/bucketLib -I../../../src/libCom/ring -I../../../src/libCom/calc -I../../../src/libCom/cvtFast -I../../../src/libCom/cppStd -I../../../src/libCom/cxxTemplates -I../../../src/libCom/dbmf -I../../../src/libCom/ellLib -I../../../src/libCom/env -I../../../src/libCom/error -I../../../src/libCom/fdmgr -I../../../src/libCom/freeList -I../../../src/libCom/gpHash -I../../../src/libCom/iocsh -I../../../src/libCom/logClient -I../../../src/libCom/macLib -I../../../src/libCom/misc -I../../../src/libCom/osi -I../../../src/libCom/taskwd -I../../../src/libCom/timer -I../../../src/libCom/tsDefs -I../../../include/os/Linux -I../../../include        ../../../src/libCom/cxxTemplates/epicsOnce.cpp 

In file included from ../../../src/libCom/cxxTemplates/epicsOnce.cpp:29:0:

../../../src/libCom/cxxTemplates/epicsSingleton.h:37:5: error: 'size_t' does not name a type

     size_t _refCount;

     ^

../../../src/libCom/cxxTemplates/epicsSingleton.h: In constructor 'SingletonUntyped::SingletonUntyped()':

../../../src/libCom/cxxTemplates/epicsSingleton.h:162:23: error: class 'SingletonUntyped' does not have any field named '_refCount'

     _pInstance ( 0 ), _refCount ( 0 )

                       ^

make[3]: *** [epicsOnce.o] Error 1

make[3]: Leaving directory `/remote/apex/software/epics/galil/base-3.14.12.1/src/libCom/O.linux-x86_64'

 

I’ve tried rebuilding just the Galil support module with gcc-4.9.3 and linking against the gcc-4.4.6-compiled version of base, but this core dumps when attempting to start an IOC.  Differences in the C++ runtime, I expect.

 

Suggestions?

-- 
Eric Norum
[email protected]




 


Replies:
Re: Problem compiling epicsOnce.cpp Eric Norum
References:
Problem compiling epicsOnce.cpp Eric Norum

Navigate by Date:
Prev: Problem compiling epicsOnce.cpp Eric Norum
Next: Re: Problem compiling epicsOnce.cpp Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Problem compiling epicsOnce.cpp Eric Norum
Next: Re: Problem compiling epicsOnce.cpp Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·