[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Patches] Update on the Cross-building instructions



On Tue, Mar 12, 2013 at 8:33 PM, Andrew Klofas <aklofas@xxxxxxxxx> wrote:
> Greetings,
>
> Just joined today (apologies if I don't follow the proper etiquette).
> There was a requirement at work to build a compiler that runs on an embedded
> linux ppc chipset. So, after hitting the webs for a few hours, the only
> tutorial on building a cross compiler that was remotely comprehensible was
> this one: http://www.eglibc.org/archives/patches/msg00078.html (thanks so
> much jimb!)

Nice to hear that!

> All the automated tools I could find (crosstool and crosstool-ng) were for
> sources that were woefully out of date. Additionally, I needed to build a
> "canadian cross" (hehe look it up), no easy task!

The crosstool and crosstool-NG configurations should be usable with
up-to-the-minute sources. Not to mention that crosstool-NG has no
sources per-se it just downloads them. You can build a configuration
that uses recent sources quite easily.

> So up rolled my selves as I adopted jimb's directions. Here is the final
> result that seems to work for me (minimal testing so far...). Please let me
> know if there is any obvious configuration issues that stands out.
>
> The current sources I used are:
> binutils-2.23
> gcc-4.7.2
> linux-3.4.35 (headers)
> gperf-3.0.4 (not sure I really need that, but the compiler barfed without
> it)
> and finally:
> eglibc-2.14/libc (from svn)

Looks fine. I assume you only need a C compiler? I also assume you
used your local mpfr and gmp libraries for building the compiler.

> My build computer is:
> Linux Mint 14 x86_64
> gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
>
> And my directory structure looks like:
> ~/Build/cross/src
> |- binutils-2.23
> |- gcc-4.7.2
> |- gperf-3.0.4
> |- libc -> libc-all/libc
> |- libc-all
> |- linux-3.4.35 -> /home/aklofas/Build/linux
>
> If I get the green light from you guys/girls, I'll type up a nice article
> (or copy/paste most of jimb's article :) for the future cross-compilers
> (good luck futures!)

It would be nice to get this article onto the GNU C Library wiki here:
http://sourceware.org/glibc/wiki/.

The community is working towards merging the eglibc changes back into
glibc, so the glibc wiki is an appropriate place for this kind of
information.

Cheers,
Carlos.
_______________________________________________
Patches mailing list
Patches@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/patches