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  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  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: LIB_LIBS getting ignored
From: "Jones, Edward \(CODAS&IT\) via Tech-talk" <tech-talk at aps.anl.gov>
To: "Johnson, Andrew N." <anj at anl.gov>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Thu, 26 Aug 2021 10:50:10 +0000

Hi Andrew,

 

Unfortunately adding a RELEASE.local into configure has not worked for my ioc. I still receive the same error, I’ve set the Makefile to print several variables to verify what might be going wrong. EPICS_BASE_IOC_LIBS correctly prints that it contains:

 

dbRecStd dbCore ca Com

 

The Makefile does include the commonDriverMakefile from ADApp and successfully finds it where EPICS_BASE_IOC_LIBS is added as well as asyn:

 

https://github.com/areaDetector/ADCore/blob/19bb3bfa1c1b11caa0da11a2cf4a1b375f724f52/ADApp/commonDriverMakefile

 

In my RELEASE.local file I only define EPICS_BASE and SUPPORT, is there anything else needed?

 

Thanks,

 

Ed

 

From: Johnson, Andrew N. <anj at anl.gov>
Sent: 24 August 2021 18:13
To: Jones, Edward (CODAS&IT) <edward.jones1 at ukaea.uk>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Subject: Re: LIB_LIBS getting ignored

 

Hi Ed,

 

On Aug 24, 2021, at 7:24 AM, Jones, Edward (CODAS&IT) via Tech-talk <tech-talk at aps.anl.gov> wrote:

 

I’m trying to run a build where we’ve set INSTALL_LOCATION to /prefix and have found a buildable form with:


make EPICS_BASE=/prefix SUPPORT=/prefix

 

Your setting EPICS_BASE (and possibly SUPPORT too) on the make command-line is likely to be (at least part of) the reason for your issue. You really do have to set all paths in a configure/RELEASE file or in a RELEASE.local file that gets included from that because the build system has Perl scripts which read the RELEASE files independently of GNUmake and use the results to provide things to the build system like the list of paths to be searched for header and library files. I haven’t looked at the build in detail to see why you might be getting that problem, but please start by adding EPICS_BASE and SUPPORT to your RELEASE file chain and report back to tech-talk if that doesn’t (help you) solve it.

 



However, when I try to build my IOC itself at the final hurdle it doesn’t seem to link anything. This is what it tries to link:

 

/usr/bin/x86_64-w64-mingw32-g++ -o PICamApp.exe -static -L/ADPICam/lib/windows-x64-mingw -L/ADPICam/iocs/PICamIOC/lib/windows-x64-mingw       -m64    -static-libgcc -static-libstdc++         PICamApp_registerRecordDeviceDriver.o PICamAppMain.o    -lADPICam -lPicam  -lnetapi32    -lpsapi -lws2_32 -ladvapi32 -luser32 -lkernel32 -lwinmm -ldbghelp

 

Which lacks all the EPICS_BASE_IOC_LIBS, when I manually navigate to that directory and link it like so:

 

/usr/bin/x86_64-w64-mingw32-g++ -o PICamApp.exe -static -L/ADPICam/lib/windows-x64-mingw -L/ADPICam/iocs/PICamIOC/lib/windows-x64-mingw -L/prefix/lib/windows-x64-mingw      -m64    -static-libgcc -static-libstdc++         PICamApp_registerRecordDeviceDriver.o PICamAppMain.o    -lADPICam -lPicam  -lnetapi32    -lpsapi -lws2_32 -ladvapi32 -luser32 -lkernel32 -lwinmm -ldbghelp -ldbRecStd -ldbCore -lca -lCom -lasyn -lADBase -lca -lCom -lxml2 -lgdi32 -loleaut32 -lwsock32 -lws2_32 -lpsapi -ldbghelp -lversion -lzlib -lpv -ladvapi32 -luser32

   

This works. So it looks like the build method is missing all LIB_LIBS definitions. Could someone help to understand this? If you need I can share our work but must be privately done.

 

I’m the lead maintainer for the build system but I don’t have time to look into any details this week. I’m pretty sure the above should solve it, but if not you might also get some input from others too as long as you respond back to the list and not just to me privately. It often helps to post parts of your Makefiles if they’re your own or you have made changes to them, or pointers to online copies if they are unmodified from published support modules. We shouldn’t have to see any private code to help fix this.

 

- Andrew

 

-- 

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

 


Replies:
Re: LIB_LIBS getting ignored Mark Rivers via Tech-talk
References:
LIB_LIBS getting ignored Jones, Edward (CODAS&IT) via Tech-talk
Re: LIB_LIBS getting ignored Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Re: EPICS sequencer web page redirect problems Johnson, Andrew N. via Tech-talk
Next: RE: LIB_LIBS getting ignored Jones, Edward (CODAS&IT) via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  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: LIB_LIBS getting ignored Johnson, Andrew N. via Tech-talk
Next: Re: LIB_LIBS getting ignored Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 27 Aug 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·