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  <20122013  2014  2015  2016  2017  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  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Cross-compilation, static build, etc
From: Bruno Seiva Martins <[email protected]>
To: Andrew Johnson <[email protected]>
Cc: [email protected]
Date: Tue, 7 Aug 2012 14:17:35 -0300
Hi,

Just to let you all know, the idea of compiling from inside a VM was bugging me a lot, so I went to the trouble of building a toolchain to be able to cross compile my IOC to my target system.

It was painful and bloody, but I succeeded.

The general steps I took:

Download and configure crosstool-NG with the version numbers of my target's kernel, binutils, glibc and gcc
Generate the toolchain
Compile both 'readline' and 'ncurses' using that brand new toolchain
Configure EPICS to use my toolchain and compile it
Compile the IOC and copy it to my target

If there's enough interest in this process, I can write a detailed guide of what I did.




Regards,



Bruno Seiva Martins




On Thu, Aug 2, 2012 at 8:57 PM, Bruno Seiva Martins <[email protected]> wrote:
Hi Andrew,

I came across that StackOverflow question too and tried the steps showed in the answer, but unluckly the offending symbol didn't have a correspondent in an older version... I'll try the VM approach, and in the meantime will think of other possible solutions. If I find one, I'll post it here.

Bruno Seiva Martins





On Thu, Aug 2, 2012 at 3:21 PM, Andrew Johnson <[email protected]> wrote:
Hi Bruno,

On 2012-08-02 Bruno Seiva Martins wrote:
> Looking closely, indeed using 'STATIC_BUILD=YES' compiled EPICS code
> statically to my executable, leaving only the shared system libraries out.
> I guess I will build a virtual machine with my target's Linux distribution
> and compile from it, although a cross compiler would be neater =)

Google does find some ways to get around this (including a Stack Overflow
question that goes into details about defining appropriately-versioned
symbols) so in theory it should be possible to do, but I suspect a VM will be
much easier in the end.

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



Replies:
Re: Cross-compilation, static build, etc Jack
References:
Cross-compilation, static build, etc Bruno Seiva Martins
RE: Cross-compilation, static build, etc Mark Rivers
Re: Cross-compilation, static build, etc Bruno Seiva Martins
Re: Cross-compilation, static build, etc Andrew Johnson
Re: Cross-compilation, static build, etc Bruno Seiva Martins

Navigate by Date:
Prev: Searching Postdoc appointment in particle physics Florian Feldbauer
Next: Re: EPICS build on armv6l Metin Aydar
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  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Cross-compilation, static build, etc Bruno Seiva Martins
Next: Re: Cross-compilation, static build, etc Jack
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  2020  2021  2022  2023  2024 
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 ·