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  <20112012  2013  2014  2015  2016  2017  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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: EPICS on OS X Lion -- C++ problem
From: "Jeff Hill" <[email protected]>
To: "'Eric Norum'" <[email protected]>
Cc: [email protected]
Date: Tue, 26 Jul 2011 12:16:55 -0600
> Thanks -- I should have looked at the launchpad version first.
> FWIW -- here' all I had to do to get things to build with clang instead of
gcc:

> In file included from ../udpiiu.cpp:41:
> ../cac.h:246:13: error: C++ requires a type specifier for all declarations
>             freeListVirtualCircuit;
>             ^~~~~~~~~~~~~~~~~~~~~~
> ../cac.h:258:13: error: C++ requires a type specifier for all declarations
>             channelFreeList;
>             ^~~~~~~~~~~~~~~

Do you still see the above issue (I know that the mutable issue has a fix
committed for it).

> +++ base-3.14.12.1/configure/os/CONFIG_SITE.Common.darwin-x86	2011-07-25
13:09:31.000000000 -0700
> @@ -13,3 +13,10 @@
>  ARCH_CLASS = i386
>  #ARCH_CLASS = x86_64
>  #ARCH_CLASS = i386 x86_64

Changing target architectures fixed this issue?

Jeff
______________________________________________________
Jeffrey O. Hill           Email        [email protected]
LANL MS H820              Voice        505 665 1831
Los Alamos NM 87545 USA   FAX          505 665 5107

Message content: TSPA

With sufficient thrust, pigs fly just fine. However, this is
not necessarily a good idea. It is hard to be sure where they
are going to land, and it could be dangerous sitting under them
as they fly overhead. -- RFC 1925


> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Eric Norum
> Sent: Monday, July 25, 2011 1:35 PM
> To: EPICS Tech Talk
> Subject: Re: EPICS on OS X Lion -- C++ problem
> 
> I tried with clang++ for that file -- and got a completely different set
> of problems:
> 
> In file included from ../udpiiu.cpp:38:
> ../udpiiu.h:152:5: error: 'mutable' cannot be applied to references
>     mutable epicsMutex & cbMutex;
>     ^
> ../udpiiu.h:153:5: error: 'mutable' cannot be applied to references
>     mutable epicsMutex & cacMutex;
>     ^
> In file included from ../udpiiu.cpp:41:
> ../cac.h:246:13: error: C++ requires a type specifier for all declarations
>             freeListVirtualCircuit;
>             ^~~~~~~~~~~~~~~~~~~~~~
> ../cac.h:258:13: error: C++ requires a type specifier for all declarations
>             channelFreeList;
>             ^~~~~~~~~~~~~~~
> ../cac.h:269:5: error: 'mutable' cannot be applied to references
>     mutable epicsMutex & mutex;
>     ^
> ../cac.h:270:5: error: 'mutable' cannot be applied to references
>     mutable epicsMutex & cbMutex;
>     ^
> ../udpiiu.cpp:1393:1: error: expected '{' or ','
> 
> ^
> 
> On Jul 25, 2011, at 10:54 AM, Eric Norum wrote:
> 
> > Downloaded and installed OS X Lion and the latest version of Xcode on my
> laptop machine.  Attempting to build EPICS results in:
> > /usr/bin/c++ -c              -DUNIX  -Ddarwin     -O3 -g   -Wall      -
> arch i386    -fno-common -fPIC -MMD -I. -I../O.Common -I. -I.. -
> I../../../include/os/Darwin -I../../../include       -I/opt/local/include
> -I/sw/include  ../udpiiu.cpp
> > ../udpiiu.cpp:1391: error: generic thunk code fails for method 'virtual
> int udpiiu::printFormated(epicsGuard<epicsMutex>&, const char*, ...)'
> which uses '...'
> >
> > Suggestions from C++ experts?
> > Maybe I should be trying to build with clang instead of gcc?
> > --
> > Eric Norum
> > [email protected]
> >
> >
> >
> >
> 
> --
> Eric Norum
> [email protected]
> 
> 
> 




References:
EPICS on OS X Lion -- C++ problem Eric Norum
Re: EPICS on OS X Lion -- C++ problem Eric Norum

Navigate by Date:
Prev: RE: EPICS on OS X Lion -- C++ problem Jeff Hill
Next: Re: EPICS on OS X Lion -- C++ problem Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS on OS X Lion -- C++ problem Eric Norum
Next: RE: EPICS on OS X Lion -- C++ problem Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·