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  <20152016  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  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: seq_snc.h: file not found
From: Mark Rivers <[email protected]>
To: Tasaddaq Khan <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Mon, 3 Aug 2015 00:07:26 +0000
This sounds like a problem with how you built your application. Did you put the correct entry in your application dbd file for your sequencer program?

Mark


Sent from my iPhone

On Aug 2, 2015, at 6:57 PM, Tasaddaq Khan <[email protected]<mailto:[email protected]>> wrote:

Hi Mark

I have run the st.cmd file and encounter an error:

#!../../bin/linux-x86/test
## You may have to change test to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet("ARCH","linux-x86")
epicsEnvSet("IOC","ioctest")
epicsEnvSet("TOP","/home/omar/epics/test")
epicsEnvSet("SNCSEQ","/home/omar/epics/seq-2.2.2")
epicsEnvSet("EPICS_BASE","/home/omar/epics/base")
cd /home/omar/epics/test
## Register all support components
dbLoadDatabase "dbd/test.dbd"
test_registerRecordDeviceDriver pdbbase
## Load record instances
#dbLoadRecords("db/xxx.db","user=omarHost")
dbLoadRecords("db/test.db","user=omarHost")
cd /home/omar/epics/test/iocBoot/ioctest
iocInit
Starting iocInit
############################################################################
## EPICS R3.14.12.4 $Date: Mon 2013-12-16 15:51:45 -0600$
## EPICS Base built Dec 14 2014
############################################################################
iocRun: All initialization complete
## Start any sequence programs
#seq sncxxx,"user=omarHost"
seq snctest,"user=omarHost"
Can't find sequencer `snctest'.

Please guide how to solve this issue.

regards,

Tasaddaq

On Mon, Aug 3, 2015 at 3:12 AM, Mark Rivers <[email protected]<mailto:[email protected]>> wrote:
You should not convert from .st to .c manually and then try to compile the .c. Rather you should just add the .st file to the source files in your Makefile and let the build system automatically convert the .c to .o using its rules.

Mark


Sent from my iPhone

On Aug 2, 2015, at 5:07 PM, Tasaddaq Khan <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>> wrote:

Hi

I converted my test.st<http://test.st><http://test.st> file to test.c file using snc but found following error while compiling the c file.

cc test.c -o test.o
test.c:7:21: error: seq_snc.h: No such file or directory
test.st:15<http://test.st:15><http://test.st:15>: error: expected ‘)’ before ‘seqg_env’
test.st:22<http://test.st:22><http://test.st:22>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_event_volt_check_0_light_off’
test.st:22<http://test.st:22><http://test.st:22>: error: expected ‘)’ before ‘seqg_env’
test.st:23<http://test.st:23><http://test.st:23>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_event_volt_check_0_light_on’
test.st:29<http://test.st:29><http://test.st:29>: error: expected ‘)’ before ‘seqg_env’
test.st:32<http://test.st:32><http://test.st:32>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_chans’
test.st:39<http://test.st:39><http://test.st:39>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_mask_volt_check_0_light_off’
test.st:42<http://test.st:42><http://test.st:42>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_mask_volt_check_0_light_on’
test.st:47<http://test.st:47><http://test.st:47>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_states_volt_check’
test.st:69<http://test.st:69><http://test.st:69>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘seqg_statesets’
test.st:78<http://test.st:78><http://test.st:78>: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘test’
test.st:96:25: error: epicsExport.h: No such file or directory
test.st<http://test.st><http://test.st>: In function ‘testRegistrar’:
test.st:99<http://test.st:99><http://test.st:99>: error: ‘test’ undeclared (first use in this function)
test.st:99<http://test.st:99><http://test.st:99>: error: (Each undeclared identifier is reported only once
test.st:99<http://test.st:99><http://test.st:99>: error: for each function it appears in.)
test.st<http://test.st><http://test.st>: At top level:
test.st:101<http://test.st:101><http://test.st:101>: warning: data definition has no type or storage class
test.st:101<http://test.st:101><http://test.st:101>: warning: parameter names (without types) in function declaration

Any suggestion how to include the seq_snc.h in order to remove the problem. I can see seq_snl.h file in my include directory of seq-2.2.2

regards,

Tasaddaq



References:
seq_snc.h: file not found Tasaddaq Khan
Re: seq_snc.h: file not found Mark Rivers
Re: seq_snc.h: file not found Tasaddaq Khan

Navigate by Date:
Prev: Re: seq_snc.h: file not found Tasaddaq Khan
Next: Leybold TD20 Pierrick M Hanlet
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: seq_snc.h: file not found Tasaddaq Khan
Next: Leybold TD20 Pierrick M Hanlet
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·