ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: What cross-compiler versions are you using?

To:
Subject: Re: [ts-7000] Re: What cross-compiler versions are you using?
From: Peter Gammie <>
Date: Wed, 27 Jan 2010 10:03:30 +1100
On 27/01/2010, at 3:23 AM, Blair wrote:

> Quite simply, so I can work in XCode on my Mac. I do most of my work and 
> business on OSX and only use Windows when I have no other choice e.g. 
> Quickbooks for Manufacturing. I don't want to go down the road of trying to 
> get a desktop version of Linux up and running in a virtual machine. That's 
> one big unknown I should be able to eliminate.

Ah, in that case I wish you luck. I use a Linux VM under VMWare Fusion 3, I 
guess partly because I never made friends with XCode. Also I find a trusty 
Debian installation, even under VMWare, a lot less of an unknown that OS X. :-)

> I have successfully used crosstool-NG to build a toolchain that works for 2.4 
> but apparently some component versions won't let me build a 2.6.29 kernel. 
> The toolchain is made up of binutils, GCC, the C library, and the kernel. So, 
> the question is what versions are people using to build the kernel?

Well, as I said, the Codesourcery package uses GCC 4.4.1, binutils 
2.19.51.20090709 and from

http://www.codesourcery.com/sgpp/lite/arm/portal/kbentry22

glibc 2.6.14. I used it to build 2.6.29.6 and 2.6.32.3, with the hrtimers stuff 
I talked about in another thread.

The reason I ended up using Codesourcery was that after a week or so of trying 
to build cross-compiling tools, I found that almost all advice has bitrotten, 
was for obsolete versions, etc. and the scripts had ceased to be updated for a 
year or more.

BTW for building kernels I would hope and expect that glibc is unnecessary, 
i.e. you could build a GCC using uC or newlib. I recall getting a 
newlib-bootstrapped GCC to compile something-or-other, but not busybox. 
Apparently this worked (under Linux), using binutils-2.18.50:

    tar xf gcc-4.2.3.tar.bz2
    tar xf newlib-1.18.0.tar.gz
    cd gcc-4.2.3
    ln -s ../newlib-1.18.0/newlib .
    ln -s ../newlib-1.18.0/libgloss .
    cd ..

    mkdir build-gcc
    cd build-gcc
    ../gcc-4.2.3/configure --target=arm-eabi --prefix=/usr/local/crossgcc/ 
--with-newlib --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-c99 
--disable-nls --enable-threads=posix --enable-long-long
    make -j3

I wonder if one could start with the Codesourcery source bundle and recompile 
it under OS X.

cheers
peter

-- 
http://peteg.org/



------------------------------------

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