EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: base building problem
From: Andrew Johnson <[email protected]>
To: "M.C.Shao" <[email protected]>
Cc: Tech-talk <[email protected]>
Date: Thu, 14 Nov 2002 10:10:37 -0600
M.C.Shao wrote:

> I am building the base Relase3.14beta2 with gnu tools under patched
> solaris 7.So the host  arch is solaris-sparc-gnu, and the target is
> linux-x86.When use "make" in the root level of base, I encountered a
> problem which said "i586-pc-linux-gnu-cc command not found".I guess
> that's the cross-compiler's problem. and this reminds me of that I
> don't have a cross-compiler.What I want to ask is where  I chould get
> or how I could create such a cross-compiler?

To ask the obvious question, why are you cross-compiling code for a linux-x86 target on a solaris-sparc-gnu host? It would be *much* easier to either compile EPICS natively on the target itself, or if that's too small a system to find a PC running linux to do the compilation.

EPICS *can* run this kind of cross-compilation (Janet Anderson tests EPICS builds using a cross-compiler that runs on linux and builds binaries for Solaris) but you'll probably have to build gcc and binutils yourself, and create a few EPICS configuration files in <base>/configure/os.

If you really want to build your own cross compiler, the CrossGCC FAQ at http://www.sthoward.com/CrossGCC/ (getting a little dated now so this might not be accurate for recent versions of gcc, and you won't need to build libc or gdb) should provide some help in how to do it, or do a google search for "building gcc cross-compiler" and you'll get hits for many different combinations of host and target architecture.

- Andrew
--
"Life is what happens while you're busy making other plans." - John Lennon


Replies:
how about using a new IOC host OS? M.C.Shao
building R3.14 problem for RTEMS M.C.Shao
References:
Extensions problem Krishna Arya
Re: Extensions problem Andrew Johnson
base building problem M.C.Shao

Navigate by Date:
Prev: Re: CA protocol documentation. Bob Dalesio
Next: RE: CA protocol documentation. Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  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: base building problem M.C.Shao
Next: how about using a new IOC host OS? M.C.Shao
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·