Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020 
<== Date ==> <== Thread ==>

Subject: Make problem in EPICS 7
From: Dirk Zimoch <dirk.zimoch@psi.ch>
To: EPICS Core Talk <core-talk@aps.anl.gov>
Date: Tue, 25 Sep 2018 13:35:46 +0200
There is a problem with access rights in pvAccess/testCa when re-building EPICS.

make[4]: Entering directory `/afs/psi.ch/group/8211/dirk/git/BASE/epics-base-7.0/modules/pvAccess/testCa/O.RHEL7-x86_64'
cp /usr/local/epics/base-7.0.1/dbd/softIoc.dbd ../O.Common/testIoc.dbd
cp: cannot create regular file ‘../O.Common/testIoc.dbd’: Permission denied
make[4]: *** No rule to make target `../O.Common/testIoc.dbd', needed by `testIoc_registerRecordDeviceDriver.cpp'. Stop.

If testIoc.dbd already exists from the last build, it has no write access:

-r--r--r-- 1 zimoch sls 433697 Sep 25 13:31 modules/pvAccess/testCa/O.Common/testIoc.dbd

Thus copying the new version from $(EPICS_BASE)/dbd/softIoc.dbd fails. Need to copy with -f or simply delete the old file first.

The rule in modules/pvAccess/testCa/Makefile is:
ifdef BASE_3_16
  $(COMMON_DIR)/testIoc.dbd: $(EPICS_BASE)/dbd/softIoc.dbd
        $(CP) $< $@
endif

but should be:

ifdef BASE_3_16
  $(COMMON_DIR)/testIoc.dbd: $(EPICS_BASE)/dbd/softIoc.dbd
        $(RM) $@
        $(CP) $< $@
endif

Patch attached.

Dirk
diff --git a/testCa/Makefile b/testCa/Makefile
index 9cfe317..47092ac 100644
--- a/testCa/Makefile
+++ b/testCa/Makefile
@@ -43,5 +43,6 @@ include $(TOP)/configure/RULES
 
 ifdef BASE_3_16
   $(COMMON_DIR)/testIoc.dbd: $(EPICS_BASE)/dbd/softIoc.dbd
+	$(RM) $@
 	$(CP) $< $@
 endif

Navigate by Date:
Prev: RE: Bug in mbbo and mbbi records in Base 7.0 Mark Rivers
Next: Re: [CloudBees Support] Re: Jenkins stuck in non-restartable state Ralph Lange
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020 
Navigate by Thread:
Prev: RE: Bug in mbbo and mbbi records in Base 7.0 Mark Rivers
Next: Re: [CloudBees Support] Re: Jenkins stuck in non-restartable state Ralph Lange
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020 
ANJ, 25 Sep 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·