EPICS Controls 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  2018  2019  2020  <20212022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Make keeps installing the same files
From: Mark Rivers via Core-talk <core-talk at aps.anl.gov>
To: "'Johnson, Andrew N.'" <anj at anl.gov>
Cc: EPICS core-talk <core-talk at aps.anl.gov>
Date: Tue, 22 Jun 2021 22:42:20 +0000

Ø  Do any of those libraries contain a version number header which gets recreated and triggers recompilation every time you run the build? It would only take the first-built library to do that and the others would then get re-linked with it as a result.

 

No, they don’t.

 

Ø  Are you building this on a local disk, or a file share of some kind? This kind of behavior can happen if the clocks of the two systems are slightly out of sync. Can you ‘ls -l’ a file installed into the lib directory and the same file in the build directory to see if their timestamps are any different.

 

This is a local disk on the Linux system.

 

But I see a strange problem.  The file in lib/ is 29 hours newer than the file in the build directory.

 

corvette:~/devel/areaDetector/ADCore>ls -l --time-style=f lib/linux-x86_64/libADBase.a

-r--r--r-- 1 epics domain users 3050868 2021-05-18 14:44:15.081349713 -0500 lib/linux-x86_64/libADBase.a

 

corvette:~/devel/areaDetector/ADCore>ls -l --time-style=f ADApp/ADSrc/O.linux-x86_64/libADBase.a

-rw-rw-r-- 1 epics domain users 3050868 2021-05-17 09:40:31.599821920 -0500 ADApp/ADSrc/O.linux-x86_64/libADBase.a

 

I did a “make clean” and now I see this.  The file in the lib/ directory is now just a fraction of a second newer than the file in the build directory.  Should they be the exact same time?

 

corvette:~/devel/areaDetector/ADCore>ls -l --time-style=f lib/linux-x86_64/libADBase.a

-r--r--r-- 1 epics domain users 3050868 2021-06-22 17:37:30.006615685 -0500 lib/linux-x86_64/libADBase.a

 

corvette:~/devel/areaDetector/ADCore>ls -l --time-style=f ADApp/ADSrc/O.linux-x86_64/libADBase.a

-rw-rw-r-- 1 epics domain users 3050868 2021-06-22 17:37:29.658618326 -0500 ADApp/ADSrc/O.linux-x86_64/libADBase.a

 

It just reported that it was installing the file.  But then the file in lib/ was newer (but not today) than the one in the build folder.

 

Mark

 

 

From: Johnson, Andrew N. <anj at anl.gov>
Sent: Tuesday, June 22, 2021 5:05 PM
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: EPICS core-talk <core-talk at aps.anl.gov>
Subject: Re: Make keeps installing the same files

 

Hi Mark,

 

On Jun 22, 2021, at 4:48 PM, Mark Rivers via Core-talk <core-talk at aps.anl.gov> wrote:

 

I just noticed something strange.  “make” is installing the same files each time I run it, even though they are already installed.

 

corvette:~/devel/areaDetector/ADCore>make -sj

Installing library ../../../lib/linux-x86_64/libADBase.a

Installing library ../../../lib/linux-x86_64/libntndArrayConverter.a

Installing library ../../../lib/linux-x86_64/libNDPlugin.a

 

corvette:~/devel/areaDetector/ADCore>make -sj

Installing library ../../../lib/linux-x86_64/libADBase.a

Installing library ../../../lib/linux-x86_64/libntndArrayConverter.a

Installing library ../../../lib/linux-x86_64/libNDPlugin.a

 

This is base 7.0.5 on Centos 7.

 

Do any of those libraries contain a version number header which gets recreated and triggers recompilation every time you run the build? It would only take the first-built library to do that and the others would then get re-linked with it as a result.

 

Are you building this on a local disk, or a file share of some kind? This kind of behavior can happen if the clocks of the two systems are slightly out of sync. Can you ‘ls -l’ a file installed into the lib directory and the same file in the build directory to see if their timestamps are any different.

 

Also try just running a noisy serial ‘make’ in the first build directory to see what’s actually happening.

 

HTH,

 

- Andrew

 

-- 

Complexity comes for free, simplicity you have to work for.

 


Replies:
RE: Make keeps installing the same files Mark Rivers via Core-talk
Re: Make keeps installing the same files Johnson, Andrew N. via Core-talk
References:
Make keeps installing the same files Mark Rivers via Core-talk
Re: Make keeps installing the same files Johnson, Andrew N. via Core-talk

Navigate by Date:
Prev: Re: Make keeps installing the same files Johnson, Andrew N. via Core-talk
Next: RE: Make keeps installing the same files Mark Rivers via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Make keeps installing the same files Johnson, Andrew N. via Core-talk
Next: RE: Make keeps installing the same files Mark Rivers via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 22 Jun 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·