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  <20122013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: EPICS Compile error: cannot find -lrtemscpu on Windows using mingw
From: Andrew Johnson <anj@aps.anl.gov>
To: Yoram Fisher <Yoram@sydorinstruments.com>
Cc: tech-talk@aps.anl.gov
Date: Wed, 6 Jun 2012 17:09:44 -0500
Hi Yoram,

On 2012-06-06 Yoram Fisher wrote:
> I am attempting to build EPICS 3.14.12.2 on a Windows XP machine using
>  mingw32. EPICS_HOST_ARCH = win32-x86-mingw
> 
> I type"make" at the top level directory (c:\epics).  Make is GNU Make
>  version 3.81 I get an error: /bin/ld.exe: cannot find -lrtemscpu

I see that you're trying to cross-compile for the RTEMS-uC5282 target on your 
win32-x86-mingw host.  I have to admit I've not heard of anyone doing that 
before, although there's no fundamental reason that it won't work.  It might 
need a little tweaking of the configuration files though since you're a 
pioneer in this AFAIK.

> The closest matching file I have on my machine is librtemscpu.a.

That's actually the file it's looking for, the -lrtemscpu option tells the 
compiler to link the code with a library called librtemscpu.a which it will 
find by looking through the paths given it in -L options or through its built-
in search path.  Let's look at the command line you posted:

> /c/opt/rtems-4.10/bin/m68k-rtems4.10-g++ -o rtemsTestHarness -static
>  -L/c/epics/lib/RTEMS-uC5282         -mcpu=5282 -u Init /lib/no-dpmem.rel
>  /lib/no-mp.rel /lib/no-part.rel /lib/no-signal.rel /lib/no-rtmon.rel     
>        rtemsTestHarness.o epicsCalcTest.o epicsAlgorithmTest.o
>  epicsMathTest.o epicsEllTest.o epicsErrlog Test.o epicsStdioTest.o
>  epicsStringTest.o epicsTimeTest.o epicsThreadTest.o epic sThreadOnceTest.o
>  epicsThreadPriorityTest.o epicsThreadPrivateTest.o epicsExitTe st.o
>  epicsTimerTest.o ringPointerTest.o ringBytesTest.o epicsEventTest.o
>  epicsMu texTest.o epicsExceptionTest.o macEnvExpandTest.o macLibTest.o
>  taskwdTest.o bloc kingSockTest.o epicsMessageQueueTest.o
>  epicsRunLibComTests.o epicsThreadPerform. o epicsMaxThreads.o buckTest.o
>  cvtFastPerform.o    -lCom       -lm -lrtemsCom -l c -lrtemscpu -lCom -lnfs
>  -lm
> c:/opt/rtems-4.10/bin/../lib/gcc/m68k-rtems4.10/4.4.7/../../../../m68k-rtem
>  s4.10/bin/ld.exe: cannot find -lrtemscpu

When I build that same file on my Linux system those .rel arguments starting 
at the end of the second line above all begin with the full path to my RTEMS 
installation.  I'm not sure if that's relevant, but it looks a little fishy to 
me (unless you really have several files called no-*.rel in your /lib 
directory).

You might want to post the contents of the CONFIG*RTEMS-uc5282 files you had 
to create in the base/configure/os directory to get the build to go as far as 
you have, I suspect there's something missing there and with that information 
we should be able to help you fix this.

- Andrew
-- 
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte

Replies:
RE: EPICS Compile error: cannot find -lrtemscpu on Windows using mingw Yoram Fisher
References:
EPICS Compile error: cannot find -lrtemscpu on Windows using mingw Yoram Fisher

Navigate by Date:
Prev: Re: EPICS Compile error: cannot find -lrtemscpu on Windows using mingw Eric Norum
Next: Re: a MEDM replacement J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: EPICS Compile error: cannot find -lrtemscpu on Windows using mingw Eric Norum
Next: RE: EPICS Compile error: cannot find -lrtemscpu on Windows using mingw Yoram Fisher
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·