RCG ignores SITE and site environment variables when building models.
It appears that the RCG fills in the $::location
perl variable based on the first letter of the IFO and ignore SITE environment variables.
Relevant code is in: epic/util/lib/Parameters.pm:50
Comment from Chris Whittle. Note the path in the error message:
controls@CYMAC:~$ rtcds make x5iopmhz
RTS_VERSION=4.0.1
SITE=MIT
IFO=X5
RCG_LIB_PATH=/opt/rtcds/usercode:/opt/rtcds/userapps/cds_user_apps/trunk/cds/common/models:/usr/share/advligorts/src/src/epics/simLink/:/usr/share/advligorts/src/src/epics/simLink/lib
RCG_SRC=/usr/share/advligorts/src
RCG_BUILD_ROOT=/var/cache/advligorts
RCG_BUILDD=/var/cache/advligorts/rcg-4.0.1
RCG_TARGET=/opt/rtcds/mit/x5
### building x5iopmhz...
Cleaning x5iopmhz...
Done
Parsing the model x5iopmhz...
cdsIPCx_SHMEM
cdsIPCx_SHMEM
cdsIPCx_SHMEM
cdsIPCx_SHMEM
cdsIPCx_SHMEM
cdsIPCx_SHMEM
cdsIPCx_SHMEM
cdsIPCx_SHMEM
MAX_IPC=1024
MAX_IPC_RFM=1024
***ERROR: IPCx parameter file /opt/rtcds/tst/x5/chans/ipc/X5.ipc not found
make[1]: *** [Makefile:30: x5iopmhz] Error 2
make: *** [Makefile:35: x5iopmhz] Error 1
Edited by Erik von Reis