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  <20192020  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  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Fwd: Re: Fwd: cross-compiling (kind of) with Buildroot
From: Pierrick M Hanlet via Tech-talk <[email protected]>
To: "Hill, Bruce" <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 9 Sep 2019 19:59:32 +0000
Hi Bruce,
Thanks for the feedback.  I did attempt putting these modifications
by adding SITE_CONFIG.Common.linux-686 and pointing to it from
CONFIG in the StreamDevice/configure files and also by modifying
the file in base/configuration/os.  Unfortunately neither of these worked
for me.  As you can see, the correct library doesn't show up in the
linking phase:

/usr/local/products/elsd/conc405x/linux-3.16.7_generic/output/host/usr/bin/i686-buildroot-linux-uclibc-g++ -o streamApp  -L/scratch/home/hanlet/platforms/conc405x/epicsDEV/Support/StreamDevice-2-8/lib/linux-686 -L/scratch/home/hanlet/platforms/conc405x/epicsDEV/Support/asyn4-35/lib/linux-686 -L/scratch/home/hanlet/platforms/conc405x/epicsDEV/Support/calc-R3-7-1/lib/linux-686 -L/scratch/home/hanlet/platforms/conc405x/epicsDEV/Support/sscan-2-11-2/lib/linux-686 -L/scratch/home/hanlet/platforms/conc405x/epicsDEV/base-3.14.12.8/lib/linux-686 -Wl,-rpath,/scratch/home/hanlet/platforms/conc405x/epicsDEV/Support/StreamDevice-2-8/lib/linux-686 -Wl,-rpath,/scratch/home/hanlet/platforms/conc405x/epicsDEV/Support/asyn4-35/lib/linux-686 -Wl,-rpath,/scratch/home/hanlet/platforms/conc405x/epicsDEV/Support/calc-R3-7-1/lib/linux-686 -Wl,-rpath,/scratch/home/hanlet/platforms/conc405x/epicsDEV/Support/sscan-2-11-2/lib/linux-686 -Wl,-rpath,/scratch/home/hanlet/platforms/conc405x/epicsDEV/base-3.14.12.8/lib/linux-686        -m32    -L/usr/local/products/elsd/conc405x/linux-3.16.7_generic/output/host/usr/i686-buildroot-linux-uclibc/lib            streamApp_registerRecordDeviceDriver.o streamAppMain.o   -lstream -lasyn -lcalc -lsscan -lrecIoc -lsoftDevIoc -lmiscIoc -lrsrvIoc -ldbtoolsIoc -lasIoc -ldbIoc -lregistryIoc -ldbStaticIoc -lca -lCom  -lpcre
/scratch/products/elsd/conc405x/linux-3.16.7_generic/output/host/usr/bin/../lib/gcc/i686-buildroot-linux-uclibc/4.8.3/../../../../i686-buildroot-linux-uclibc/bin/ld: cannot find -lpcre
collect2: error: ld returned 1 exit status
make[2]: *** [streamApp] Error 1
make[2]: Leaving directory `/scratch/home/hanlet/platforms/conc405x/epicsDEV/Support/StreamDevice-2-8/streamApp/O.linux-686'
make[1]: *** [install.linux-686] Error 2
make[1]: Leaving directory `/scratch/home/hanlet/platforms/conc405x/epicsDEV/Support/StreamDevice-2-8/streamApp'
make: *** [streamApp.install] Error 2

Of course, I may have not been following your suggestions sufficiently accurately so
please feel free to correct me.
Thank you,
Pierrick


On 8/14/19 5:58 PM, Hill, Bruce via Tech-talk wrote:
Try this in your configure/CONFIG_SITE.Common.linux-686 file:

PCRE_LIB=/usr/local/products/elsd/conc405x/linux-3.16.7_generic/output/staging/usr/lib
PCRE_INCLUDE=/usr/local/products/elsd/conc405x/linux-3.16.7_generic/output/staging/usr/include

It'll also help to add this line:
LIB_INSTALL += $(wildcard $(PCRE_LIB)/lib*)

This last line will install all the pcre libs in your streamdevice lib/linux-686 dir
which will allow your IOC's to link w/o needing to also define PCRE_LIB.

Cheers,
- Bruce

On 8/12/19 8:08 AM, Pierrick M Hanlet via Tech-talk wrote:
I've attempted to fix it by creating a RELEASE.Common.linux-686 file with:
PCRE_TARGET_LIB=/usr/local/products/elsd/conc405x/linux-3.16.7_generic/output/staging/usr/lib
PCRE_TARGET_INCLUDE=/usr/local/products/elsd/conc405x/linux-3.16.7_generic/output/staging/usr/include

-- 
Bruce Hill
Member Technical Staff
SLAC National Accelerator Lab
2575 Sand Hill Road M/S 10
Menlo Park, CA  94025

-- 
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-5555 -- lab
+1-312-687-4980 -- mobile

"Whether you think you can or think you can't, you're right" -- Henry Ford

Replies:
Re: Fwd: Re: Fwd: cross-compiling (kind of) with Buildroot Hill, Bruce via Tech-talk
References:
Fwd: Re: Fwd: cross-compiling (kind of) with Buildroot Pierrick M Hanlet via Tech-talk
Re: Fwd: Re: Fwd: cross-compiling (kind of) with Buildroot Hill, Bruce via Tech-talk

Navigate by Date:
Prev: Driver for Smargon gniometer Randall Cayford via Tech-talk
Next: Re: Re: use CA Client in Xilinx MicroBlaze system 肖麟阁 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Fwd: Re: Fwd: cross-compiling (kind of) with Buildroot Hill, Bruce via Tech-talk
Next: Re: Fwd: Re: Fwd: cross-compiling (kind of) with Buildroot Hill, Bruce 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  <20192020  2021  2022  2023  2024 
ANJ, 10 Sep 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·