Experimental Physics and Industrial Control System
|
It appears that -lrtemsNfs found its way into configure/os/
CONFIG.Common.RTEMS
Try changing
OP_SYS_LDLIBS += -lrtemsCom -lrtemscpu -lCom -lrtemsNfs -lm
to
OP_SYS_LDLIBS += -lrtemsCom -lrtemscpu -lCom -lm
Or you could install the RTEMS NFS support library. This makes it
much easier to support things like autosave and such.
On Mar 14, 2007, at 11:41 PM, Daron Chabot wrote:
On 14-Mar-07, at 6:59 PM, åæç wrote:
hi, I'v succeeded in building the cross-compiler for RTEMS-
mvmv5500 on my PC
in the directory /opt/rtems, my linux shell is tcsh, so I add "set
path=($path /opt/rtems/bin /opt/rtems/powerpc-rtems/bin)" in the
file .cshrc.
Next I'll install EPICS(base-3.14.9), I modified the file
base/configure/CONFIG_SITE with CROSS_COMPILIER_TARGET_ARCH=RTEMS-
mvme5500,
and CROSS_COMPILER_HOST_ARCHS=linux-x86. then I make in the
directory base. so
I find the error:
make -C libCom/test install
make[2]: Entering directory `/home/rtems/base-3.14.9/base/src/
libCom/test'
make -C O.linux-x86 -f ../Makefile TOP=../../../.. T_A=linux-x86
install
make[3]: Entering directory
`/home/rtems/base-3.14.9/base/src/libCom/test/O.linux-x86'
make[3]: Nothing to be done for `install'.
make[3]: Leaving directory
`/home/rtems/base-3.14.9/base/src/libCom/test/O.linux-x86'
make -C O.RTEMS-mvme5500 -f ../Makefile TOP=../../../.. T_A=RTEMS-
mvme5500 install
make[3]: Entering directory
`/home/rtems/base-3.14.9/base/src/libCom/test/O.RTEMS-mvme5500'
/usr/local/rtems/rtems-4.7/bin/powerpc-rtems-g++
-B/opt/rtems//powerpc-rtems/mvme5500/lib/ -specs bsp_specs -
qrtems -o
rtemsTestHarness -static -L/home/rtems/base-3.14.9/base/lib/RTEMS-
mvme5500
-mcpu=750 -mmultiple -mstring -mstrict-align -u Init
/opt/rtems//powerpc-rtems/mvme5500/lib/no-dpmem.rel
/opt/rtems//powerpc-rtems/mvme5500/lib/no-mp.rel
/opt/rtems//powerpc-rtems/mvme5500/lib/no-part.rel
/opt/rtems//powerpc-rtems/mvme5500/lib/no-signal.rel
/opt/rtems//powerpc-rtems/mvme5500/lib/no-rtmon.rel
rtemsTestHarness.o epicsCalcTest.o epicsAlgorithmTest.o
epicsMathTest.o
epicsStdioTest.o epicsStringTest.o epicsTimeTest.o epicsThreadTest.o
epicsThreadPriorityTest.o epicsThreadPrivateTest.o epicsExitTest.o
epicsTimerTest.o ringPointerTest.o epicsEventTest.o epicsMutexTest.o
epicsExceptionTest.o epicsMessageQueueTest.o macEnvExpandTest.o
blockingSockTest.o epicsRunLibComTests.o epicsThreadPerform.o
epicsMaxThreads.o buckTest.o -lCom -lm -lrtemsCom -
lrtemscpu -lCom
-lrtemsNfs -lm
/opt/rtems/lib/gcc/powerpc-rtems/4.0.2/../../../../powerpc-rtems/
bin/ld:
cannot find -lrtemsNfsrtem
collect2: ld returned 1 exit status
make[3]: *** [rtemsTestHarness] Error 1
make[3]: Leaving directory
`/home/rtems/base-3.14.9/base/src/libCom/test/O.RTEMS-mvme5500'
make[2]: *** [install.RTEMS-mvme5500] Error 2
make[2]: Leaving directory `/home/rtems/base-3.14.9/base/src/
libCom/test'
make[1]: *** [libCom/test.install] Error 2
make[1]: Leaving directory `/home/rtems/base-3.14.9/base/src'
make: *** [src.install] Error 2
In fact, on my PC,
/opt/rtems/lib/gcc/powerpc-rtems/4.0.2/../../../../powerpc-rtems/
bin/ld equals
to /opt/rtems/powerpc-rtems/bin/ld, is it because I've not added
the parameter
"-lrtemsNfs" when I built the cross compiler somewhere? thank you
very much!
For what it's worth, I get a very similar error when the epics
build process is in softIoc:
( i'm compiling on darwin-ppc, EPICS 3.14.8.2, and using RTEMS from
the HEAD cvs branch)
/opt/rtems/bin/i386-rtems-g++ -B/opt/rtems/i386-rtems/pc386/lib/ -
specs bsp_specs -qrtems -o softIoc -static -L../../../lib/RTEMS-
pc386/ -u Init /opt/rtems/i386-rtems/pc386/lib/no-
dpmem.rel /opt/rtems/i386-rtems/pc386/lib/no-mp.rel /opt/rtems/i386-
rtems/pc386/lib/no-part.rel /opt/rtems/i386-rtems/pc386/lib/no-
signal.rel /opt/rtems/i386-rtems/pc386/lib/no-rtmon.rel -Wl,-Ttext,
0x100000 softIoc_registerRecordDeviceDriver.o
softMain.o -lrecIoc -lsoftDevIoc -liocsh -lmiscIoc -lrsrvIoc -
ldbtoolsIoc -lasIoc -ldbIoc -lregistryIoc -ldbStaticIoc -lca -
lCom -lm -lrtemsCom -lrtemscpu -lCom -lrtemsNfs -lm
/opt/rtems/lib/gcc/i386-rtems/4.1.1/../../../../i386-rtems/bin/ld:
cannot find -lrtemsNfs
collect2: ld returned 1 exit status
make[3]: *** [softIoc] Error 1
make[2]: *** [install.RTEMS-pc386] Error 2
make[1]: *** [softIoc.install] Error 2
make: *** [src.install] Error 2
And yes, I added OP_SYS_CFLAGS += -DOMIT_NFS_SUPPORT to os/
CONFIG_SITE.Common.RTEMS
It looks like librtemsNFS is being linked against regardless of the
previous setting...
Any ideas ??
-- dc
BTW -- Eric, you may want to change OMIT_NFS to OMIT_NFS_SUPPORT in
your EPICS/RTEMS tutorial. I thought that may have been causing the
linking error, but that isn't the case...
--
Eric Norum <[email protected]>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793
- Replies:
- Re: epics compiling problem Êïïï
- References:
- epics compiling problem 师昊礼
- Re: epics compiling problem Daron Chabot
- Navigate by Date:
- Prev:
Re: epics compiling problem Daron Chabot
- Next:
Re: epics compiling problem Êïïï
- 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
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: epics compiling problem Daron Chabot
- Next:
Re: epics compiling problem Êïïï
- 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
2021
2022
2023
2024
|
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|