Experimental Physics and
| |||||||||||||||
|
I'm a small-time recreational user of Mark Rivers' "mca" module on a Windows computer to control a collection of Canberra NIM gear (556 AIM, an ADC, an MCS, and an amp). For a couple years, the prebuilt mca 4-10beta package and Windows EPICS extensions served me well. However, I recently updated this computer, replaced an Ethernet card, and installed the new Cygwin, somehow hosing the application. Thus commenced an adventure yesterday to clean all the old stuff out, build the newest EPICS base (as well as mca and other required support modules) using Cygwin 1.7 and gcc as per the instructions at http://www.aps.anl.gov/epics/base/win32.php. No errors arose during installation, but when attempting to run the new mcaAIM...big trouble! Any help is much appreciated. What follows are excerpts of what the terminal prints when mcaAIM is executed. First, a list of the currently-installed versions of EPICS base and the support packages, so you know what I'm using: $ ../../bin/cygwin-x86/mcaAIM st.cmd < envPaths epicsEnvSet("ARCH","cygwin-
x86") Just for reference, I should note that the following adjustments were made prior to building EPICS:epicsEnvSet("IOC","iocCygwin") epicsEnvSet("TOP","c:/epics/support/mcaR6-12-4") epicsEnvSet("SUPPORT","/cygdrive/c/epics/support") epicsEnvSet("CALC","/cygdrive/c/epics/support/calc-2-8") epicsEnvSet("SSCAN","/cygdrive/c/epics/support/sscan-2-6-6") epicsEnvSet("BUSY","/cygdrive/c/epics/support/busy-1-3") epicsEnvSet("STD","/cygdrive/c/epics/support/std-2-8") epicsEnvSet("AUTOSAVE","/cygdrive/c/epics/support/autosave-4-7") epicsEnvSet("ASYN","/cygdrive/c/epics/support/asyn4-16") epicsEnvSet("MCA","/cygdrive/c/epics/support/mcaR6-12-4") epicsEnvSet("EPICS_BASE","/cygdrive/c/epics/base-3.14.12") epicsEnvSet(STARTUP,c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin) dbLoadDatabase("../../dbd/mcaCanberra.dbd",0,0) mcaCanberra_registerRecordDeviceDriver(pdbbase) The first error has to do with icbConfig: icbConfig("icbAdc1", 781, 1, 0) icbConfig: Error looking up ICB module NI30D:1 dbLoadRecords("/cygdrive/c/ epics/support/mcaR6-12-4/mcaApp/Db/icb_adc.db", "P=mcaTest:,ADC=adc1,PORT=icbAdc1") icbConfig("icbAmp1", 781, 2, 1) icbConfig: Error looking up ICB module NI30D:2 dbLoadRecords("/cygdrive/c/epics/support/mcaR6-12-4/mcaApp/Db/icb_amp.db", "P=mcaTest:,AMP=amp1,PORT=icbAmp1") When mcaAIMShowModules runs, the result looks bad (no Owner name, not the typical nonzero Owner ID): mcaAIMShowModules Module Type HW rev. FW rev. Owner name Owner ID Status Memory size Free address NI000781 1 0 6 00:00:00:00:00:00 Reachable 261116 00000000 When the IOC starts, the first error has to do with save_restore. I don't think this is an issue I care about, but it might be: iocInit() Starting iocInit ############################## ##############################################
## EPICS R3.14.12 $Date: Wed 2010-11-24 14:50:38 -0600$ ## EPICS Base built Feb 1 2011 ############################################################################ reboot_restore: entry for file 'auto_settings.sav' reboot_restore (v4.12): entry for file 'auto_settings.sav' reboot_restore: Found filename 'auto_settings.sav' in restoreFileList. *** restoring from 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav' at initHookState 6 (before record/device init) *** cygwin warning: MS-DOS style path detected: c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav Preferred POSIX equivalent is: /cygdrive/c/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames save_restore: Can't open file 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav'. save_restore: Trying backup file 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.savB' save_restore: Can't open file 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.savB'. save_restore: Can't figure out which seq file is most recent, save_restore: so I'm just going to start with 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav0'. save_restore: Trying backup file 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav0' save_restore: Can't open file 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav0'. save_restore: Trying backup file 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav1' save_restore: Can't open file 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav1'. save_restore: Trying backup file 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav2' save_restore: Can't open file 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav2'. save_restore: Can't find a file to restore from...save_restore: ...last tried 'c:/epics/support/mcaR6-12-4/iocBoot/iocCygwin/autosave/auto_settings.sav2'. I give up. save_restore: ********************************** Then comes a whole stew of errors (these are just excerpts, large chunks of identical messages are omitted): save_restore: Can't open save file.2011/02/02 01:24:52.441 drvIcbAsyn::verifyModule module not defined or not found 2011/02/02 01:24:52.441 drvIcbAsyn::verifyModule module not defined or not found 2011/02/02 01:24:52.441 drvIcbAsyn::verifyModule module not defined or not found 2011/02/02 01:24:52.441 drvIcbAsyn::verifyModule module not defined or not found 2011/02/02 01:24:52.441 devMcaAsyn::init_record, mcaTest:aim_adc1 connectDevice failed to MCS 2011/02/02 01:24:52.441 devMcaAsyn::send_msg: mcaTest:aim_adc1 error calling queueRequest, asynManager::queueRequest asynUser not associated with a port 2011/02/02 01:24:52.441 devMcaAsyn::send_msg: mcaTest:aim_adc1 error calling queueRequest, asynManager::queueRequest asynUser not associated with a port 2011/02/02 01:24:52.441 devMcaAsyn::init_record, mcaTest:aim_adc1 connectDevice failed to MCS 2011/02/02 01:24:52.441 devMcaAsyn::send_msg: mcaTest:aim_adc1 error calling queueRequest, asynManager::queueRequest asynUser not associated with a port 2011/02/02 01:24:52.441 devMcaAsyn::send_msg: mcaTest:aim_adc1 error calling queueRequest, asynManager::queueRequest asynUser not associated with a port save_restore: Can't open save file.2011/02/02 01:24:52.972 drvIcbAsyn::verifyModule module not defined or not found 2011/02/02 01:24:52.972 mcaTest:adc1LLD devAsynFloat64 process error 2011/02/02 01:24:52.972 drvIcbAsyn::verifyModule module not defined or not found 2011/02/02 01:24:52.972 mcaTest:adc1OFFSET devAsynFloat64 process error 2011/02/02 01:24:52.972 drvIcbAsyn::verifyModule module not defined or not found 2011/02/02 01:24:52.972 mcaTest:adc1ULD devAsynFloat64 process error 2011/02/02 01:24:52.972 drvIcbAsyn::verifyModule module not defined or not found 2011/02/02 01:24:52.972 mcaTest:adc1ZERO devAsynFloat64 process error 2011/02/02 01:24:52.972 drvIcbAsyn::verifyModule module not defined or not found -kill carepeater, uninstall all previous EPICS extensions, prebuilt EPICS version, etc. -install new WinPCap -define system environment variable EPICS_HOST_ARCH=cygwin-x86 -in the base directory, configure/CONFIG_SITE is edited to produce a static version: SHARED_LIBRARIES = NO, STATIC_BUILD = YES -in the base directory, configure/os/CONFIG_SITE.cygwin-x86.cygwin-x86 is edited to add the line: CYGWIN_RPC_LIB = tirpc -in /usr/lib/gcc/i686-pc-cygwin/3.4.4, a new link is made supposedly in order for Cygwin 1.7 to properly do the job: ln –s libgcc_s.dll.a libgcc_s.a -in the sscan directory, sscanApp/src/xdr_lib.h is edited to replace #include <rpc/rpc.h> with #include <rpc/xdr.h>. It will not build without this change. -Finally, the iocCygwin directory under iocBoot in the mca package is copied to iocCarl, st.cmd therein is edited to reflect my equipment. Thanks again for any assistance. -Carl Willis
| ||||||||||||||
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |