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: StreamDevice fails to compile for RTEMS targets.
From: "Mooney, Tim M." <[email protected]>
To: Michael Westfall <[email protected]>, "[email protected] Talk" <[email protected]>
Date: Thu, 6 Oct 2016 21:01:06 +0000
Hi Mike,

Take a look at streamApp/Makefile.  The version on github has these lines:

# older calc versions require sscan
#PROD_LIBS += sscan

It's complicated, because calc will build with or without sscan.  (Older calc versions could not build without sscan.)  If calc is built with sscan, anything that uses calc must link against sscan.

If your copy of stream has "PROD_LIBS += sscan" commented out, uncomment that line.

Tim Mooney ([email protected]) (630)252-5417
Beamline Controls Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab


From: [email protected] [[email protected]] on behalf of Michael Westfall [[email protected]]
Sent: Thursday, October 06, 2016 3:44 PM
To: [email protected] Talk
Subject: Fwd: StreamDevice fails to compile for RTEMS targets.

Sorry, I should have sent this to the list....

---------- Forwarded message ----------
From: Michael Westfall <[email protected]>
Date: Thu, Oct 6, 2016 at 2:49 PM
Subject: Re: StreamDevice fails to compile for RTEMS targets.

I do have sscan (and all the other dependencies, such as seq, calc, asyn, pcre) built for both the host and the RTEMS targets.

Here's my .../configure/RELEASE:

TEMPLATE_TOP=${EPICS_BASE}/templates/makeBaseApp/top
SUPTOP=/home/mikew/epics/support

SNCSEQ=$(SUPTOP)/seq
ASYN=$(SUPTOP)/asyn
CALC=$(SUPTOP)/calc
SSCAN=$(SUPTOP)/sscan
PCRE=$(SUPTOP)/pcre

EPICS_BASE=/gem_sw/epics/R3.14.12.4/base


It fails the same whether SSCAN is defined or not.
Also, as I noted, it builds fine for the Linux host, but fails for the RTEMS targets.


On Thu, Oct 6, 2016 at 2:30 PM, Mooney, Tim M. <[email protected]> wrote:
You don't have to build sscan if you don't need the swait record. (You probably don't.  The calcout record is better.) If you don't have the sscan module, you must comment out the line that defines SSCAN, eg.
SSCAN=$(SUPPORT)/sscan-2-10-2
in calc/configure/RELEASE.

Tim Mooney ([email protected]) (630)252-5417
Beamline Controls Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab


From: [email protected] [[email protected]] on behalf of Mark Rivers [[email protected]]
Sent: Thursday, October 06, 2016 12:24 PM
To: 'Michael Westfall'; [email protected] Talk
Subject: RE: StreamDevice fails to compile for RTEMS targets.

Hi Mike,

 

That error is not in StreamDevice, it is in calc.  calc depends on sscan, so you must install and build sscan before you build calc.

 

Mark

 

 

From: [email protected] [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Michael Westfall
Sent: Thursday, October 06, 2016 12:23 PM
To: [email protected] Talk
Subject: StreamDevice fails to compile for RTEMS targets.

 

StreamDevice 2.6 fails to compile for RTEMS targets.

The problem seems to be with the example IOC in src/StreamDeviceApp/streamApp.

We get errors like these:

/home/mikew/epics/support/calc/lib/RTEMS-beatnik/libcalc.a(swaitRecord.o): In function `special':
/home/mikew/epics/support/calc/calcApp/src/O.RTEMS-beatnik/../swaitRecord.c:553: undefined reference to `recDynLinkClear'
/home/mikew/epics/support/calc/calcApp/src/O.RTEMS-beatnik/../swaitRecord.c:531: undefined reference to `recDynLinkAddInput'
/home/mikew/epics/support/calc/calcApp/src/O.RTEMS-beatnik/../swaitRecord.c:539: undefined reference to `recDynLinkAddOutput'
/home/mikew/epics/support/calc/lib/RTEMS-beatnik/libcalc.a(swaitRecord.o): In function `inputChanged':
/home/mikew/epics/support/calc/calcApp/src/O.RTEMS-beatnik/../swaitRecord.c:832: undefined reference to `recDynLinkGet'
/home/mikew/epics/support/calc/lib/RTEMS-beatnik/libcalc.a(swaitRecord.o): In function `pvSearchCallback':
/home/mikew/epics/support/calc/calcApp/src/O.RTEMS-beatnik/../swaitRecord.c:911: undefined reference to `recDynLinkConnectionStatus'

etc....

However, if I set the build to avoid cross compile targets, it builds OK for the Linux host.

Also it builds OK even for RTEMS targets if I comment out CALC=.... in .../configure/RELEASE.

Wondering if anyone else has run across this and what the solution might be..

 



--

Mike Westfall

Control Systems Software Engineer


Image removed by sender.




--
Mike Westfall
Control Systems Software Engineer





--
Mike Westfall
Control Systems Software Engineer



Replies:
Re: StreamDevice fails to compile for RTEMS targets. Michael Westfall
References:
StreamDevice fails to compile for RTEMS targets. Michael Westfall
RE: StreamDevice fails to compile for RTEMS targets. Mark Rivers
RE: StreamDevice fails to compile for RTEMS targets. Mooney, Tim M.
Fwd: StreamDevice fails to compile for RTEMS targets. Michael Westfall

Navigate by Date:
Prev: Fwd: StreamDevice fails to compile for RTEMS targets. Michael Westfall
Next: Re: StreamDevice fails to compile for RTEMS targets. Michael Westfall
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: Fwd: StreamDevice fails to compile for RTEMS targets. Michael Westfall
Next: Re: StreamDevice fails to compile for RTEMS targets. Michael Westfall
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, 07 Oct 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·