Experimental Physics and Industrial Control System
Hi Mike,
There seems to be a bug in the R3.14.6 sequencer parser when building
under hpux. The problem that we discovered is related to comments and
blank lines found before the state set (ss) is declared. It appears
that if there are more than two lines of continuous comments before the
state set is declared but after the "option" is defined, the compilation
of the sequence fails.
However, problem is a bit more involved because we noticed that the
number of empty lines before or after "option" can also cause the
compliation to fail. For example, if I place 6 blank lines before
"option", the sequence also fails to compile, but 5 blank lines and the
sequence compiles successfully.
The failures currently are only found under the "test" directory. I
talked with Stephanie and she was able to build this same code under
solaris successfully. However, at BESY we are building under hpux.
I've listed only a few examples below of the failed compiles.
- Regards,
Kristi
Example #1 below fails to compile successfully. If you place the theee
lines of comments before "program" or before "option" or after "ss" the
sequence compiles succssfully.
****************** EXAMPLE #1 **********************
program sncopttvar
option +r;
/*
*
*/
float d; /* Delay variable for managing low state*/
float v; /* Iteration Counter for managing high state*/
ss ss1
{
creek: .../validate/O.hpux-parisc > gmake
gmake -f ../Makefile TOP=../../.. T_A=hpux-parisc all
gmake[1]: Entering directory
`/tmp_mnt/net/csr/csr-home/luchini/work/epics/R3.14.6/support/seq/2-0/test/validate/O.hpux-parisc'
preprocessing ../sncOpttVar.st
cc -E -DHP_UX -DHP_UX -I. -I..
-I/home/guests/luchini/epics/R3.14.6/support/seq/2-0/include/os/hpux
-I/home/guests/luchini/epics/R3.14.6/support/seq/2-0/include
-I/home/guests/luchini/epics/R3.14.6/support/seq/2-0/include/os/hpux
-I/home/guests/luchini/epics/R3.14.6/support/seq/2-0/include
-I/home/guests/luchini/epics/R3.14.6/support/base/3-14-6-0/include/os/hpux
-I/home/guests/luchini/epics/R3.14.6/support/base/3-14-6-0/include
.../sncOpttVar.st > sncOpttVar.i
converting sncOpttVar.i
/home/guests/luchini/epics/R3.14.6/support/seq/2-0/bin/hpux-parisc/snc
+m +m sncOpttVar.i -o sncOpttVar.c
syntax error: line no. 5 (../sncOpttVar.st)
definitions/declarations
gmake[1]: *** [sncOpttVar.c] Error 1
gmake[1]: Leaving directory
`/tmp_mnt/net/csr/csr-home/luchini/work/epics/R3.14.6/support/seq/2-0/test/validate/O.hpux-parisc'
gmake: *** [all] Error 2
creek: .../validate/O.hpux-parisc >
****************** EXAMPLE #2 **********************
In example #2 below, if we specify only two lines of comments this
sequence compiles successfully.
program sncopttvar
option +r;
/*
*/
float d; /* Delay variable for managing low state*/
float v; /* Iteration Counter for managing high state*/
ss ss1
{
****************** EXAMPLE #3 **********************
In example #3 below, if you move the original 3 lines of comments to
within the state set, the sequence also compiles successfully.
program sncopttvar
option +r;
float d; /* Delay variable for managing low state*/
float v; /* Iteration Counter for managing high state*/
ss ss1
{
/*
*
*/
- Navigate by Date:
- Prev:
Re: Looking for VME trigger delay cards Benjamin Franksen
- Next:
Re: Babbling serial device Marty Kraimer
- 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
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: genSub records with EPICS 3.14.4 and g++ 3.3 - solaris Andrew Johnson
- Next:
R3.14.6 sequencer compliation error on hpux Kristi Luchini
- 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
2022
2023
2024