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  <20202021  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  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Cross-compile epics applicaton for debian 8 on the zynq
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: '赵江' <zhaojiang at impcas.ac.cn>
Cc: 'tech-talk' <tech-talk at aps.anl.gov>
Date: Fri, 3 Jul 2020 16:39:31 +0000

I see this in your output:

 

/usr/bin/ar -rc    librampSupport.a        xxxRecord.o devXxxSoft.o dbSubExample.o rampHello.o initTrace.o sncExample.o
/usr/bin/ranlib librampSupport.a
Installing library ../../../lib/linux-x86_64/librampSupport.a
/usr/bin/g++ -o sncProgram -Wl,-Bstatic -L/home/zj/zlinx/base-3.14.12.8/lib/linux-x86_64 -L/home/zj/zlinx/synApps_5_8/support/seq-2-2-1/lib/linux-x86_64         -m64               sncProgram.o    -lseq -lpv -lcas -lgdd -lasHost -ldbStaticHost -lregistryIoc -lca -lCom -Wl,-Bdynamic  -lpthread   -lreadline -lm -lrt -ldl -lgcc
Installing Tcl library ../../../lib/linux-x86_64/librampSupport.so

So it is building a static library, librampSupport.a but not a dynamic library, librampSupport.so.  It is failing when it looks for librampSupport.so.  Did you set the flag SHARED_LIBRARIES=NO? 

 

Mark

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of ?? via Tech-talk
Sent: Friday, July 3, 2020 11:31 AM
To: tech-talk at aps.anl.gov
Subject: Cross-compile epics applicaton for debian 8 on the zynq

 

Hello

     Although  cross-compiled successfully the base-3.14.12.8, synApps_5_8 and soft IOC example which work well on my target now,  I need  help to cross-compile another EPICS application ,named ramp, compiled no problem on the x86_64 host computer. My device  is the zynq of Xilinx with debian 8,  and the ramp is to control the serial and  TCP/IP device , it consists of these components:

 

SUPPORT=/home/zj/zlinx/synApps_5_8/support


ASYN=$(SUPPORT)/asyn-4-26

CALC=$(SUPPORT)/calc-3-4-2-1

STREAM=$(SUPPORT)/stream-2-6a

SNCSEQ=$(SUPPORT)/seq-2-2-1

PCRE_INCLUDE=/usr/include
PCRE_LIB=/usr/lib

 

 

Here is the output of make, It seems that the compiler can't find file 'librampSupport.so', in fact the file exists,however I really don't know what to do now, I appreciate it if you could give any advice. thanks!

                                                                                                                                                                 

 

make -C ./configure install

make[1]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure'
make -C O.linux-x86_64 -f ../Makefile TOP=../.. \
    T_A=linux-x86_64 install
make[2]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure/O.linux-x86_64'
perl /home/zj/zlinx/base-3.14.12.8/bin/linux-x86_64/convertRelease.pl checkRelease
EPICS/Release.pm: Undefined macro $(AREA_DETECTOR) used
EPICS/Release.pm: Undefined macro $(AREA_DETECTOR) used
make[2]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure/O.linux-x86_64'
make -C O.linux-arm -f ../Makefile TOP=../.. \
    T_A=linux-arm install
make[2]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure/O.linux-arm'
perl /home/zj/zlinx/base-3.14.12.8/bin/linux-x86_64/convertRelease.pl checkRelease
EPICS/Release.pm: Undefined macro $(AREA_DETECTOR) used
EPICS/Release.pm: Undefined macro $(AREA_DETECTOR) used
make[2]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure/O.linux-arm'
make[1]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/configure'
make -C ./rampApp install
make[1]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp'
make -C ./src install
make[2]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp/src'
make -C O.linux-x86_64 -f ../Makefile TOP=../../.. \
    T_A=linux-x86_64 install
make[3]: Entering directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp/src/O.linux-x86_64'

/usr/bin/gcc -c  -D_GNU_SOURCE -D_DEFAULT_SOURCE            -D_X86_64_  -DUNIX  -Dlinux     -O3 -g   -Wall       -m64     -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I/home/zj/zlinx/base-3.14.12.8/include/os/Linux -I/home/zj/zlinx/base-3.14.12.8/include    -I/home/zj/zlinx/synApps_5_8/support/asyn-4-26/include  -I/home/zj/zlinx/synApps_5_8/support/calc-3-4-2-1/include  -I/home/zj/zlinx/synApps_5_8/support/stream-2-6a/include  -I/home/zj/zlinx/synApps_5_8/support/seq-2-2-1/include            ../xxxRecord.c

/usr/bin/gcc -c  -D_GNU_SOURCE -D_DEFAULT_SOURCE            -D_X86_64_  -DUNIX  -Dlinux     -O3 -g   -Wall       -m64     -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I/home/zj/zlinx/base-3.14.12.8/include/os/Linux -I/home/zj/zlinx/base-3.14.12.8/include    -I/home/zj/zlinx/synApps_5_8/support/asyn-4-26/include  -I/home/zj/zlinx/synApps_5_8/support/calc-3-4-2-1/include  -I/home/zj/zlinx/synApps_5_8/support/stream-2-6a/include  -I/home/zj/zlinx/synApps_5_8/support/seq-2-2-1/include            ../devXxxSoft.c

/usr/bin/gcc -c  -D_GNU_SOURCE -D_DEFAULT_SOURCE            -D_X86_64_  -DUNIX  -Dlinux     -O3 -g   -Wall       -m64     -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I/home/zj/zlinx/base-3.14.12.8/include/os/Linux -I/home/zj/zlinx/base-3.14.12.8/include    -I/home/zj/zlinx/synApps_5_8/support/asyn-4-26/include  -I/home/zj/zlinx/synApps_5_8/support/calc-3-4-2-1/include  -I/home/zj/zlinx/synApps_5_8/support/stream-2-6a/include  -I/home/zj/zlinx/synApps_5_8/support/seq-2-2-1/include            ../dbSubExample.c
/usr/bin/ar -rc    librampSupport.a        xxxRecord.o devXxxSoft.o dbSubExample.o rampHello.o initTrace.o sncExample.o
/usr/bin/ranlib librampSupport.a
Installing library ../../../lib/linux-x86_64/librampSupport.a
/usr/bin/g++ -o sncProgram -Wl,-Bstatic -L/home/zj/zlinx/base-3.14.12.8/lib/linux-x86_64 -L/home/zj/zlinx/synApps_5_8/support/seq-2-2-1/lib/linux-x86_64         -m64               sncProgram.o    -lseq -lpv -lcas -lgdd -lasHost -ldbStaticHost -lregistryIoc -lca -lCom -Wl,-Bdynamic  -lpthread   -lreadline -lm -lrt -ldl -lgcc
Installing Tcl library ../../../lib/linux-x86_64/librampSupport.so
Usage:
     [ -m mode ] file ... directory

    -d             Create non-existing directories
    -m mode        Set the mode for the installed file (0755 by default)
    file           Name of file
    directory      Destination directory
Can't find file 'librampSupport.so'
/home/zj/zlinx/base-3.14.12.8/configure/RULES_BUILD:445: recipe for target '../../../lib/linux-x86_64/librampSupport.so' failed
make[3]: *** [../../../lib/linux-x86_64/librampSupport.so] Error 2
make[3]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp/src/O.linux-x86_64'
/home/zj/zlinx/base-3.14.12.8/configure/RULES_ARCHS:61: recipe for target 'install.linux-x86_64' failed
make[2]: *** [install.linux-x86_64] Error 2
make[2]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp/src'
/home/zj/zlinx/base-3.14.12.8/configure/RULES_DIRS:83: recipe for target 'src.install' failed
make[1]: *** [src.install] Error 2
make[1]: Leaving directory '/home/zj/zlinx/zynq-epics-proj/ramp/rampApp'
/home/zj/zlinx/base-3.14.12.8/configure/RULES_DIRS:83: recipe for target 'rampApp.install' failed
make: *** [rampApp.install] Error 2


References:
Cross-compile epics applicaton for debian 8 on the zynq 赵江 via Tech-talk

Navigate by Date:
Prev: Cross-compile epics applicaton for debian 8 on the zynq 赵江 via Tech-talk
Next: Re: GitHub Software Releases in support of EPICS Web Applications Simon Rees 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Cross-compile epics applicaton for debian 8 on the zynq 赵江 via Tech-talk
Next: oagwish and sdds - tktable not found Ernesto Paiser 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  <20202021  2022  2023  2024 
ANJ, 04 Jul 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·