EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Redundancy Patch: iocsh
From: "Liu, Gongfa" <[email protected]>
To: Andrew Johnson <[email protected]>
Cc: EPICS core-talk <[email protected]>
Date: Tue, 20 Nov 2007 08:31:43 +0100
Hi Andrew,

Andrew Johnson wrote:
Hi Gongfa,

Liu, Gongfa wrote:

Thank you for quick response. I compile the base with your patch just now. But the error messages are same, the details see below.

/u1/wind/2.2.1_Pentium/host/sun4-solaris2/bin/ccpentium -c -DCPU=PENTIUM -D_X86_ -DvxWorks -include /u1/wind/2.2.1_Pentium/target/h/vxWorks.h -ansi -O2 -Wall -mpentium -fno-defer-pop -x 'c++' -fno-implicit-templates -fno-builtin -I. -I.. -I../../../include/os/vxWorks -I../../../include -I/u1/wind/2.2.1_Pentium/target/h ../iocsh.cpp ../iocsh.cpp: In function `void iocshRegisterVariable (const iocshVarDef *)': ../iocsh.cpp:158: Internal compiler error in `expand_expr', at expr.c:5996
156 static const iocshArg varCmdArg0 = { "[variable",iocshArgString}; 157 static const iocshArg varCmdArg1 = { "[value]]",iocshArgString}; 158 static const iocshArg *varCmdArgs[2] = {&varCmdArg0, &varCmdArg1};
   159      static const iocshFuncDef varFuncDef = {"var",2,varCmdArgs};
   160
   161      iocshTableLock ();


Please post line 158 of that patched iocsh.cpp file so I can be sure what line that the compiler is complaining about in that message.

There are many other places in Base where that exact same code construct is used (although the others may all be in C rather than C++ source) — we're trying to understand why the error is only occurring here.

Wind River have released a number of patches to their GNU compilers since Tornado 2.2.1 came out, and I wonder whether they've released one that solves this problem.

- Andrew

--
----------------------------------------------------------
Gongfa Liu                         MKS-2, DESY
phone:  +49-40-8998-1642           Notkestr. 85
fax:    +49-40-8998-4388           22607 Hamburg
e-mail: [email protected]         Germany
----------------------------------------------------------


Replies:
Re: Redundancy Patch: iocsh Andrew Johnson
References:
Redundancy Patch: iocsh Andrew Johnson
Re: Redundancy Patch: iocsh Andrew Johnson
Re: Redundancy Patch: iocsh Liu, Gongfa
Re: Redundancy Patch: iocsh Andrew Johnson
Re: Redundancy Patch: iocsh Liu, Gongfa
Re: Redundancy Patch: iocsh Andrew Johnson

Navigate by Date:
Prev: Re: Redundancy Patch: rsrv Andrew Johnson
Next: Re: Redundancy Patch: rsrv Liu, Gongfa
Index: 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Redundancy Patch: iocsh Andrew Johnson
Next: Re: Redundancy Patch: iocsh Andrew Johnson
Index: 2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·