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

Subject: Re: Building StreamDevice 2-4 / SynApps / Win32
From: Dirk Zimoch <[email protected]>
To: John Dobbins <[email protected]>
Cc: EPICS Tech-Talk <[email protected]>
Date: Fri, 12 Mar 2010 11:04:30 +0100
John,

I have verified that "r was unexpected at this time" is an error message from the windows command interpreter. I put this (bash) code into a *.bat file:

for r in a b c; do echo $r; done

and executed the bat file and got the same error message.

I have no idea how the windows shell works. Better use bash from cygwin.

Maybe in a future version I will replace this with a Perl script but I first have to learn Perl.

Dirk


Dirk Zimoch wrote:
Hi John,

The only place where I see an "r" is in
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: ../CONFIG_STREAM
     @for r in $(RECORDS); \
    do echo "device($$r,INST_IO,dev$${r}Stream,\"stream\")"; \
     done > $@

So you probably use a shell that does not understand "for r in ...".

Using Cygwin make and bash works. Anything else is on your own risk.

Dirk


John Dobbins wrote:
Mark,

FYI, if I create stream.dbd to look like yours and continue make I encounter the same problem when it gets around to making target streamReferences which has similar syntax.

John







StreamCore$(OBJ): streamReferences

streamReferences: ../CONFIG_STREAM
@for i in $(BUSSES); \
do echo "extern void* ref_$${i}Interface;"; \
echo "void* p$$i = ref_$${i}Interface;"; \
done > $@
@for i in $(FORMATS); \
do echo "extern void* ref_$${i}Converter;"; \
echo "void* p$$i = ref_$${i}Converter;"; \
done >> $@
# create stream.dbd from all RECORDS
$(COMMON_DIR)/$(LIBRARY_DEFAULT).dbd: ../CONFIG_STREAM
@for r in $(RECORDS); \
do echo "device($$r,INST_IO,dev$${r}Stream,\"stream\")"; \
done > $@
@echo "driver(stream)" >> $@
@echo "variable(streamDebug, int)" >> $@
@echo "registrar(streamRegistrar)" >> $@






________________________________________
From: Mark Rivers [[email protected]]
Sent: Thursday, March 11, 2010 12:19 PM
To: John Dobbins; EPICS Tech-Talk
Subject: RE: Building StreamDevice 2-4  / SynApps / Win32

John,

I build that version of SteamDevice on win32-x86 with no problems using
the synApps tree, like you are.  My Makefile in the O.win32-x86
directory looks identical to yours.

The errors seems to be in O.Common/stream.dbd.  Here is what mine looks
like:

corvette:StreamDevice-2-4/src/O.Common>more stream.dbd
device(ao,INST_IO,devaoStream,"stream")
device(ai,INST_IO,devaiStream,"stream")
device(bo,INST_IO,devboStream,"stream")
device(bi,INST_IO,devbiStream,"stream")
device(mbbo,INST_IO,devmbboStream,"stream")
device(mbbi,INST_IO,devmbbiStream,"stream")
device(mbboDirect,INST_IO,devmbboDirectStream,"stream")
device(mbbiDirect,INST_IO,devmbbiDirectStream,"stream")
device(longout,INST_IO,devlongoutStream,"stream")
device(longin,INST_IO,devlonginStream,"stream")
device(stringout,INST_IO,devstringoutStream,"stream")
device(stringin,INST_IO,devstringinStream,"stream")
device(waveform,INST_IO,devwaveformStream,"stream")
device(calcout,INST_IO,devcalcoutStream,"stream")
driver(stream)
variable(streamDebug, int)
registrar(streamRegistrar)

How does this compare to yours?

Mark


-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of John Dobbins Sent: Thursday, March 11, 2010 11:09 AM To: EPICS Tech-Talk Subject: Building StreamDevice 2-4 / SynApps / Win32

Dear All,

I am trying to build StreamDevice 2-4 on win32-x86

I happen to be using the synApps source and the Makefile is show below

The directories structure is:
support/
   asyn
      .
      .
      .
   std
   stream

Everything works fine until I get to stream at which point I get the
cryptic error "r was unexpected at this time."

details:

make[4]: Entering directory
`W:/winDev/epics/R3.14.10/support/stream/2-4/StreamDevice-2-4/src/O.win3
2-x86'
r was unexpected at this time.
make[4]: *** [../O.Common/stream.dbd] Error 255
make[4]: Leaving directory
`W:/winDev/epics/R3.14.10/support/stream/2-4/StreamDevice-2-4/src/O.win3
2-x86'
make[3]: *** [install.win32-x86] Error 2
make[3]: Leaving directory
`W:/winDev/epics/R3.14.10/support/stream/2-4/StreamDevice-2-4/src'
make[2]: *** [src.install] Error 2
make[2]: Leaving directory
`W:/winDev/epics/R3.14.10/support/stream/2-4/StreamDevice-2-4'
make[1]: *** [StreamDevice-2-4.install] Error 2
make[1]: Leaving directory `W:/winDev/epics/R3.14.10/support/stream/2-4'
make: *** [W:/winDev/epics/R3.14.10/support/stream/2-4.install] Error 2


W:/winDev/epics/R3.14.10/support/stream/2-4/StreamDevice-2-4/src/O.win32 -x86' looks like

#This Makefile created by makeMakefile.pl


all : $(MAKE) -f ../Makefile TOP=../../.. T_A=win32-x86 $@

  .DEFAULT: force
          $(MAKE) -f ../Makefile TOP=../../.. T_A=win32-x86  $@

force: ;


Advice anyone?



Thanks,


John Dobbins
Lab for Elementary Particle Physics
Cornell University










#FILENAME: Makefile #USAGE: Top Makefile #Version: 1.5 #Modified By: mooney #Last Modified: 2009/03/06 21:31:25 #NOTES- The "SUPPORT_DIRS" order is based on compile time dependencies. # - The user must modify SUPPORT and EPICS_BASE in the # <synApps>/support/configure directory for the local configuration. # - To support multiple configurations, use multiple configure* directories # - Support modules can be shared between configurations only if # dependencies are not violated. Only the "DIRS" are the target of # gnumake. If this configuration is using a support module built by # another configuration, then the SUPPORT_DIRS line for that support # module must be commented out (i.e, must begin with a '#').

# Note the only dependencies that matter in $(<module>)_DEPEND_DIRS are
# compile-time dependencies.

TOP = .

MASTER_FILE = $(TOP)/configure/RELEASE.win32-x86

include $(TOP)/configure/CONFIG

###### 1st Tier Support Modules - Only Depend on EPICS BASE ######


SUPPORT_DIRS += $(SNCSEQ) RELEASE_FILES += $(SNCSEQ)/configure/RELEASE.win32-x86

SUPPORT_DIRS += $(SSCAN)
RELEASE_FILES += $(SSCAN)/configure/RELEASE.win32-x86

SUPPORT_DIRS += $(AUTOSAVE)
RELEASE_FILES += $(AUTOSAVE)/configure/RELEASE.win32-x86

###### 2nd Tier Support Modules - Only Depend on 1st Tier ########

SUPPORT_DIRS += $(ASYN)
RELEASE_FILES += $(ASYN)/configure/RELEASE.win32-x86
$(ASYN)_DEPEND_DIRS = $(SNCSEQ)

SUPPORT_DIRS += $(CALC)
RELEASE_FILES += $(CALC)/configure/RELEASE.win32-x86
$(CALC)_DEPEND_DIRS = $(SSCAN)

################### 3rd Tier Support Modules #####################

SUPPORT_DIRS += $(BUSY)
RELEASE_FILES += $(BUSY)/configure/RELEASE.win32-x86
$(BUSY)_DEPEND_DIRS = $(ASYN)

SUPPORT_DIRS += $(STD)
RELEASE_FILES += $(STD)/configure/RELEASE.win32-x86
$(STD)_DEPEND_DIRS = $(ASYN)

SUPPORT_DIRS += $(STREAM)
RELEASE_FILES += $(STREAM)/configure/RELEASE.win32-x86
$(STREAM)_DEPEND_DIRS = $(ASYN) $(CALC) $(SSCAN)


################### 4th Tier Support Modules #####################


#SUPPORT_DIRS += $(MCA)
#RELEASE_FILES += $(MCA)/configure/RELEASE.win32-x86
#$(MCA)_DEPEND_DIRS = $(ASYN) $(STD)


################### 5th Tier Support Modules #####################


#SUPPORT_DIRS += $(AREA_DETECTOR)
#RELEASE_FILES += $(AREA_DETECTOR)/configure/RELEASE.win32-x86
#$(AREA_DETECTOR)_DEPEND_DIRS = $(ASYN) $(SSCAN) $(MCA)


################### End of Support-Modules #####################


DIRS = $(SUPPORT_DIRS)

################### User Modules #####################



ACTIONS += uninstall realuninstall distclean cvsclean

include $(EPICS_BASE)/configure/RULES_TOP

release:
        echo SUPPORT=$(SUPPORT)
        echo ' '
        echo EPICS_BASE=$(EPICS_BASE)
        echo ' '
        echo MASTER_FILE=$(MASTER_FILE)
        echo ' '
        echo DIRS=$(DIRS)
        echo ' '
        echo RELEASE_FILES=$(RELEASE_FILES)
        echo ' '
        $(PERL) $(TOP)/configure/makeReleaseConsistent.pl $(SUPPORT)
$(EPICS_BASE) $(MASTER_FILE) $(RELEASE_FILES)






Replies:
Re: Building StreamDevice 2-4 / SynApps / Win32 J. Lewis Muir
References:
Building StreamDevice 2-4 / SynApps / Win32 John Dobbins
RE: Building StreamDevice 2-4 / SynApps / Win32 Mark Rivers
RE: Building StreamDevice 2-4 / SynApps / Win32 John Dobbins
Re: Building StreamDevice 2-4 / SynApps / Win32 Dirk Zimoch

Navigate by Date:
Prev: Re: Building StreamDevice 2-4 / SynApps / Win32 Dirk Zimoch
Next: Re: Building EPICS for multiple Linux distributions Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Building StreamDevice 2-4 / SynApps / Win32 Dirk Zimoch
Next: Re: Building StreamDevice 2-4 / SynApps / Win32 J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·