Experimental Physics and
| |||||||||||||||
|
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 { /* * */
| ||||||||||||||
ANJ, 10 Aug 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |