Experimental Physics and
| |||||||||||||||||
|
> 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
| ||||||||||||||||
ANJ, 10 Aug 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |