ts-7000
[Top] [All Lists]

Re: [ts-7000] How, when and what should be cross-compiled

To:
Subject: Re: [ts-7000] How, when and what should be cross-compiled
From: Ilya Goldberg <>
Date: Tue, 20 Nov 2007 13:39:01 -0500
On Nov 19, 2007, at 8:49 PM, bassig1 wrote:

> Hi all
> This might sound like a silly question for most of you.

I don't think its silly at all.  I didn't take the time setting up a  
cross-compiling environment because I was never sure what that would  
buy me.  A half-second compile instead of a full second?  Doesn't  
seem like very much, with a lot of iffy software setup resulting in a  
duct-taped monstrosity.  Granted, in my case I would have to go from  
PPC->Arm, which is quite a bit scarier, but I'm not sure I'd have  
done it even on an x86.  No chance I would use Windows, so all those  
setups are dead to me.  Doing it with an Arm emulator (qemu) seems  
about the only relatively sane option because you have to be able to  
execute binaries in order to get through configure scripts.  Getting  
around the configure scripts strikes me as very wrong and duct-tapey.

I've never had any trouble chrooting into the USB drive with Debian I  
bought from TS, and compiling everything there.  Despite Debian being  
touted as the ultimate in package managers, it insists on replacing  
things like libc and other key pieces of infrastructure whenever I  
use apt-get, so I gave up on that and have compiled the handful of  
things I needed from source (configure and the GNU toolchain is the  
real ultimate in dependency management if you ask me).

Since I'm too spoiled by decent text editors to go back to vi, I  
develop with BBEdit (a Mac-only app, sorry) that opens/saves over an  
FTP connection to the board.  And I have a handful of terminals open  
with ssh too, one for the chroot, one for running things if I need to  
get out of the chroot, etc. Sometimes I crank up the gcc on my Mac to  
get through some syntax errors, but even that is not much of a faster  
process than doing it on the board. Am I really missing out?

I haven't tried compiling kernel modules yet, maybe that's where it  
starts to pay off.

So what's the big advantage of cross-compiling?  Anyone?
-I


> What should i cross-compile and what not?
>
> Some of the things I've done in my TS7300 have worked perfectly
> without cross-compiling but some other give me a big headache
>
> I still haven't succeed in cross-compiling anything, because every
> time i try I get a different error and a different procedure to  
> follow.
>
> Im not clear what, when and how to cross-compile.  Ill really
> appreciate  if someone could explain me this.
>
> Thanks in advance for anyone that answer my doubts.
>
>
>
>
> Yahoo! Groups Links
>
>
>



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU