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  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Can't find file 'devSequencer.dbd'
From: Mark Rivers <[email protected]>
To: "'Benjamin Franksen'" <[email protected]>, l123173 <[email protected]>, "[email protected]" <[email protected]>
Date: Tue, 19 Jul 2016 15:11:33 +0000
There are 2 problems with synApps motor-6-9.

You need to remove the following 2 lines from motorApp/PIGCS2Src/PI_GCS2Support.dbd
include "asyn.dbd"
include "motorRecord.dbd"

That will eliminate one error.  The error about missing devSequencer.dbd is something else.

The other problem is that motorExApp/WithAsyn/Makefile does not work with seq-2-2-3 because devSequencer.dbd no longer exists.

You can get the latest version from GitHub or apply the following patch.

corvette:motor/motorExApp/WithAsyn>git diff synApps_5_8 Makefile
diff --git a/motorExApp/WithAsyn/Makefile b/motorExApp/WithAsyn/Makefile
index 70ebb7d..7be8e65 100644
--- a/motorExApp/WithAsyn/Makefile
+++ b/motorExApp/WithAsyn/Makefile
@@ -1,10 +1,6 @@
 #FILENAME...     Makefile
 #USAGE...        Makefile for motor application example with Asyn
 
-#Version:        $Revision$
-#Modified By:    $Author$
-#Last Modified:  $Date$
-#HeadURL:        $URL$
 
 # "#!" marks lines that can be uncommented.
 
@@ -47,7 +43,13 @@ COMMONDBDS += phytron.dbd
 DBD += WithAsyn.dbd
 WithAsyn_DBD += $(COMMONDBDS)
 ifdef SNCSEQ
-WithAsyn_DBD += devSequencer.dbd
+       # seq-2-1 and earlier has devSequencer
+       ifeq (seq-2-1, $(findstring seq-2-1, $(SNCSEQ)))
+               WithAsyn_DBD += devSequencer.dbd
+       else ifeq (seq-2.1, $(findstring seq-2.1, $(SNCSEQ)))
+               WithAsyn_DBD += devSequencer.dbd
+       endif
+
 endif
 
 DBD += WithAsynVx.dbd
@@ -86,7 +88,15 @@ COMMONLIBS += motor
 WithAsyn_LIBS += $(COMMONLIBS)
 WithAsyn_LIBS += asyn
 ifdef SNCSEQ
-WithAsyn_LIBS += seqDev seq pv
+       # seq-2-1 and earlier has devSequencer
+       ifeq (seq-2-1, $(findstring seq-2-1, $(SNCSEQ)))
+               WithAsyn_LIBS += seqDev seq pv
+       else ifeq (seq-2.1, $(findstring seq-2.1, $(SNCSEQ)))
+               WithAsyn_LIBS += seqDev seq pv
+       else
+               # seq 2.2.
+               WithAsyn_LIBS += seq pv
+       endif
 endif
 WithAsyn_LIBS += $(EPICS_BASE_IOC_LIBS)
 
@@ -97,7 +107,14 @@ endif
 WithAsynVx_LIBS += asyn
 # Needed for Newport SNL programs
 ifdef SNCSEQ
-WithAsynVx_LIBS   += seqDev seq pv
+       ifeq (seq-2-1, $(findstring seq-2-1, $(SNCSEQ)))
+               WithAsynVx_LIBS += seqDev seq pv
+       else ifeq (seq-2.1, $(findstring seq-2.1, $(SNCSEQ)))
+               WithAsynVx_LIBS += seqDev seq pv
+       else
+               # seq 2.2.
+               WithAsynVx_LIBS += seq pv
+       endif
 endif
 WithAsynVx_LIBS += $(EPICS_BASE_IOC_LIBS)


There really should be a new release of the synApps motor module.  6-9 is more than 1.5 years old and has a number of known problems, includingbuilding with EPICS 3.15.x, building with more recent versions of seq, building dynamically on Windows, etc.

Mark

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Benjamin Franksen
Sent: Tuesday, July 19, 2016 9:42 AM
To: l123173; [email protected]
Subject: Re: Can't find file 'devSequencer.dbd'

On 19.07.2016 14:48, l123173 wrote:
> make[3]: Entering directory '/opt/epics/synApps_5_8/support/motor-6-9/motorExApp/WithAsyn/O.linux-x86_64'
> /usr/bin/gcc  -D_GNU_SOURCE -D_DEFAULT_SOURCE            -D_X86_64_  -DUNIX  -Dlinux     -O3 -g   -Wall      -mtune=generic     -m64  -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include      -I/opt/epics/synApps_5_8/support/asyn-4-26/include   -I/opt/epics/synApps_5_8/support/seq-2-2-3/include   -I/opt/epics/synApps_5_8/support/busy-1-6-1/include -I/opt/epics/base/include/compiler/gcc -I/opt/epics/base/include/os/Linux -I/opt/epics/base/include   -I/opt/epics/synApps_5_8/support/ipac-2-13/include        -MM -MF WithAsynMain.d  ../WithAsynMain.c
> Creating dbd file WithAsyn.dbd
> perl -CSD /opt/epics/base/bin/linux-x86_64/dbdExpand.pl   -I. -I.. -I../O.Common -I../../../dbd -I/opt/epics/synApps_5_8/support/asyn-4-26/dbd -I/opt/epics/synApps_5_8/support/seq-2-2-3/dbd -I/opt/epics/synApps_5_8/support/busy-1-6-1/dbd -I/opt/epics/base/dbd -I/opt/epics/synApps_5_8/support/ipac-2-13/dbd -o WithAsyn.dbd base.dbd motorSupport.dbd devAcsMotor.dbd devImsMotor.dbd devMclennanMotor.dbd devMicos.dbd devMicroMo.dbd devNewport.dbd LdevNewportTS.dbd devPIMotor.dbd devOms.dbd devSoftMotor.dbd motorSimSupport.dbd devSmartMotorMotor.dbd devKohzuMotor.dbd devAttocube.dbd devAerotech.dbd ACRMotorSupport.dbd asyn.dbd drvAsynSerialPort.dbd drvAsynIPPort.dbd busySupport.dbd PI_GCS2Support.dbd phytron.dbd devSequencer.dbd
> dbdExpand.pl: Duplicate definition of record type ''
> Context: recordtype(asyn) in file '/opt/epics/synApps_5_8/support/asyn-4-26/dbd/asynRecord.dbd' in file '/opt/epics/synApps_5_8/support/asyn-4-26/dbd/asyn.dbd' in file '../../../dbd/PI_GCS2Support.dbd'
>   while reading 'PI_GCS2Support.dbd' to create 'WithAsyn.dbd'
> dbdExpand.pl: Can't find file 'devSequencer.dbd'
>   while reading 'devSequencer.dbd' to create 'WithAsyn.dbd'
>   Your Makefile may need this dependency rule:
>     $(COMMON_DIR)/WithAsyn.dbd: $(COMMON_DIR)/devSequencer.dbd
> dbdExpand.pl: Exiting due to errors
> /opt/epics/base/configure/RULES.Db:402: recipe for target '../O.Common/WithAsyn.dbd' failed

Note that this error is different from teh one you got originally, it
complains that you included both asynRecord.dbd and asyn.dbd, and I
think the problem is because asyn.dbd already includes asynRecord.dbd,
so now you have the record definition twice.

Cheers
Ben
-- 
"Make it so they have to reboot after every typo." ― Scott Adams



References:
Can't find file 'devSequencer.dbd' l123173
Re: Can't find file 'devSequencer.dbd' Benjamin Franksen

Navigate by Date:
Prev: Re: Can't find file 'devSequencer.dbd' Benjamin Franksen
Next: Re: About Visual DCT Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Can't find file 'devSequencer.dbd' Benjamin Franksen
Next: Kohzu Multi-Axis Controller ARIES/LYNX System EPICS support 洪春霞
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·