This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Errors while crosscompiling a mips toolchain under OSX


On Mon, May 23, 2011 at 9:34 AM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
> Guylhem, All,
>
> On Monday 23 May 2011 00:26:46 Guylhem Aznar wrote:
>> I'm interested in learning to do that by hand (I know crosstools,
>> buildroot, etc.)
>
> I would suggest that you first use an automated tool to get the toolchain
> in the first place. Once you know that the toolchain can be built, then
> look at what that tool is doing, and compare with your own build
> procedure to see the difference(s).
>
>> and understanding what I'm not doing correctly. I
>> hope my "mips-linux" choice is correct by the way :-)
>
> The real tuple should be mips-unkown-linux-gnu (and you can replace
> 'unknown' with whatever you want provided there's no dash '-' and no
> space in it).

You'd think, but there is some weird bug with the <vendor> part of the
tuple for mips. Make sure the <vendor> part does not have `el' in it
if you are building big endian. ;)

Just fyi...

>> But why 3 steps? I thought that 2 were enought after reading
>> http://www.gentoo.org/proj/en/base/embedded/handbook/?part=1&chap=2
>
> Please have a look at a bit of doc I've been coming up with on the subject.
> It's in the crosstool-NG sources, but is not tied to crosstool-NG, and should
> be generic:
> Âhttp://crosstool-ng.org/hg/crosstool-ng/file/tip/docs/9%20-%20How%20is%20a%20toolchain%20constructed.txt
>
> Basically, the three-step build is needed for NPTL-based libc. For
> LinuxThreads (LT), you can use the two-step procedure, but using the
> three-step one is generic enough that it can apply to both NPTL and LT.
>
> So, the approach by Khem is to not differentiate NPTL vs. LT, and
> systematically use the three-step procedure. In crosstool-NG, we do
> differentiate the procedure, but going with the three-step one for
> bot cases would/could be a good simplification.
>
> Regards,
> Yann E. MORIN.
>
> --
> .-----------------.--------------------.------------------.--------------------.
> | ÂYann E. MORIN Â| Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software ÂDesigner | \ / CAMPAIGN Â Â | Â___ Â Â Â Â Â Â Â |
> | +33 223 225 172 `------------.-------: ÂX ÂAGAINST Â Â Â| Â\e/ ÂThere is no Â|
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL  Â|  v  conspiracy. Â|
> '------------------------------^-------^------------------^--------------------'
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]