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  <20162017  2018  2019  2020  2021  2022  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  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: asyn build on cygwin fails
From: <[email protected]>
To: <[email protected]>, <[email protected]>
Cc: [email protected]
Date: Wed, 25 May 2016 22:40:55 +0000
Hi Ana,

I also see this error – I think it is because it is a static build of EPICS and only a shared version of tirpc is installed by cygwin. If you change to using:

  SHARED_LIBRARIES=YES
  STATIC_BUILD=NO

and then "make clean uninstall" and rebuild It should work. If you do need a static EPICS build, then it would need the "-ltirpc" changing to something like  "-Wl,--push-state,-call_shared -ltirpc -Wl,--pop-state" on the link line so Cygwin always looks for the shared DLL version of tirpc even when it is building a static executable

Regards,

Freddie


From: [email protected] [mailto:[email protected]] On Behalf Of Ana Malagon
Sent: 25 May 2016 22:20
To: Johnson, Andrew N.
Cc: [email protected]
Subject: Re: asyn build on cygwin fails

Ack - here is the error message from gcc
g++ -o testGpib.exe -static -L/cygdrive/c/Users/admx/epics/modules/asyn4-28/lib/          cygwin-x86_64 -L/cygdrive/c/Users/admx/epics/base-3.15.1/lib/cygwin-x86_64                -m64               testGpib_registerRecordDeviceDriver.o testGpibMain.o    -ldev          TestGpib -ltestSupport -lasyn -ldbRecStd -ldbCore -lca -lCom  -ltirpc -lpthread              -lm
/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/../../../../x86_64-pc-cygwin/bin/ld: cannot           find -ltirpc
collect2: error: ld returned 1 exit status
/cygdrive/c/Users/admx/epics/base-3.15.1/configure/RULES_BUILD:192: recipe for t          arget 'testGpib.exe' failed
make[3]: *** [testGpib.exe] Error 1
make[3]: Leaving directory '/cygdrive/c/Users/admx/epics/modules/asyn4-28/testGp          ibApp/src/O.cygwin-x86_64'
/cygdrive/c/Users/admx/epics/base-3.15.1/configure/RULES_ARCHS:56: recipe for ta          rget 'install.cygwin-x86_64' failed
make[2]: *** [install.cygwin-x86_64] Error 2
make[2]: Leaving directory '/cygdrive/c/Users/admx/epics/modules/asyn4-28/testGp          ibApp/src'
/cygdrive/c/Users/admx/epics/base-3.15.1/configure/RULES_DIRS:72: recipe for tar          get 'src.install' failed
make[1]: *** [src.install] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/admx/epics/modules/asyn4-28/testGp          ibApp'
/cygdrive/c/Users/admx/epics/base-3.15.1/configure/RULES_DIRS:72: recipe for tar          get 'testGpibApp.install' failed
make: *** [testGpibApp.install] Error 2

I completely missed the line about not finding tirpc before! Thanks Andrew :)
But I've already installed tirpc, so not sure what to do next...anyone have thoughts on what's going on?

Thanks,
Ana

On Wed, May 25, 2016 at 12:18 AM, Johnson, Andrew N. <[email protected]> wrote:
Hi Ana,

Unfortunately you didn't include the error message from gcc in your message, we need to see the errors reported immediately above where you started quoting the build output to provide much help with your problem.

- Andrew 

-- 
Sent from my iPad

On May 25, 2016, at 1:53 AM, Ana Malagon <[email protected]> wrote:
Hi all,
I am working on a Windows 7 system and using Cygwin 2.874 and Base 3.15.1 - everything's worked so far but when I try to install Asyn 4-28 the build fails with the following error message:
make[3]: *** [testGpib.exe] Error 1
make[3]: Leaving directory '/cygdrive/c/Users/admx/epics/modules/asyn4-28/testGpibApp/src/O.cygwin-x86_64'
/cygdrive/c/Users/admx/epics/base-3.15.1/configure/RULES_ARCHS:56: recipe for target 'install.cygwin-x86_64' failed
make[2]: *** [install.cygwin-x86_64] Error 2
make[2]: Leaving directory '/cygdrive/c/Users/admx/epics/modules/asyn4-28/testGpibApp/src'
/cygdrive/c/Users/admx/epics/base-3.15.1/configure/RULES_DIRS:72: recipe for target 'src.install' failed
make[1]: *** [src.install] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/admx/epics/modules/asyn4-28/testGpibApp'
/cygdrive/c/Users/admx/epics/base-3.15.1/configure/RULES_DIRS:72: recipe for target 'testGpibApp.install' failed
make: *** [testGpibApp.install] Error 2

To get to this point I built base with CONFIG_SITE having the following parameters:
SHARED_LIBRARIES=NO
STATIC_BUILD=YES
as suggested by this post, and made sure all available rpc libraries were installed with the Cygwin package manager (to get rid of an error saying rpc/rpc.h: file or directory not found). Has anyone seen an error message with asyn involving testGpib before, or know what I'm doing wrong?
Thanks,
Ana



Replies:
Re: asyn build on cygwin fails Ana Malagon
References:
asyn build on cygwin fails Ana Malagon
Re: asyn build on cygwin fails Johnson, Andrew N.
Re: asyn build on cygwin fails Ana Malagon

Navigate by Date:
Prev: asyn: what if a driver wants to force callbacks? Ford, Christopher
Next: Re: asyn: what if a driver wants to force callbacks? Torsten Bögershausen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: asyn build on cygwin fails Ana Malagon
Next: Re: asyn build on cygwin fails Ana Malagon
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·