EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Tornado 2.2.1
From: Dirk Zimoch <[email protected]>
To: tech talk <[email protected]>
Date: Thu, 25 Mar 2004 18:52:42 +0100
Ronald L. Sluiter wrote:
I am beginning to wonder if there is any combination of compiler
switches that will allow one to build R3.13.9 using Tornado 2.2.1

Yes. Tornado2.2 vxWorks.h is not compatible with the -traditional flag.


I don't understand it, but here is what is happening to drvBitBus.c.

The following is a segment from vxWorks.h;

/* All this to generate a string we can #include */

   #define TOOL_HDR_STRINGIFY(x)  #x
   #define TOOL_HDR(tc, file) TOOL_HDR_STRINGIFY(tool/tc/file)
   #define TOOL_HEADER(file) TOOL_HDR(TOOL_FAMILY,file)

/* Now include the correct header file */

#include TOOL_HEADER(toolMacros.h)

The above "#include TOOL_HEADER(toolMacros.h)" is processed into
the following in drvBitBus.c;

#tool/gnu/toolMacros.h

It is like the "include" part of "#include" got lost.  This yields the
error message;

..../wind68K2.2/target/h/vxWorks.h:218: `#include' expects "FILENAME" or <FILENAME>

Ron


I think, with the -traditional flag, the preprocessor does not know the '#x' stringify feature. Thus, the line expands to:


#include #GNU/tc/toolMacros.h

Now, the preprocessor gets lost.

I've removed the -traditional flag everywhere and found, that the problems with src/drv/old are (mainly?) because of sloppy/lazy/buggy programming:

There are just not enough arguments provided to logMsg() and taskSpawn(). Solution: fill with 0's.

I've not tried it because the bug occurs quite often in several files, but it should help.

Dirk

--
Dr. Dirk Zimoch
Swiss Light Source
Paul Scherrer Institut
Computing and Controls
phone +41 56 310 5182
fax   +41 56 310 4413


Replies:
Re: Tornado 2.2.1 Andy Foster
References:
Tornado 2.2.1 john sinclair
Re: Tornado 2.2.1 Ronald L. Sluiter
Re: Tornado 2.2.1 Andrew Johnson
Re: Tornado 2.2.1 Ronald L. Sluiter

Navigate by Date:
Prev: Re: Buffer problems Tim Mooney
Next: Re: Tornado 2.2.1 Andy Foster
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Tornado 2.2.1 Ronald L. Sluiter
Next: Re: Tornado 2.2.1 Andy Foster
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·