[Top][All Lists]

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

Re: [avr-gcc-list] Trouble compiling avr-gcc > 4.4.4 on Mac OS X Leopard

From: Jens Bauer
Subject: Re: [avr-gcc-list] Trouble compiling avr-gcc > 4.4.4 on Mac OS X Leopard with gcc-4.2 (Solved)
Date: Thu, 20 Oct 2011 16:31:10 +0200

Hi Jörg and Bingo,

Thank you both for the replies.

I succeeded in building both my own AVR and ARM toolchains.

The key was "simply"...

1: Use gcc-4.2
2: Link to the gmp/mpfr/mpc sources from the gcc source directory
3: If compiling 4.3.0 <= GCC < 4.5.0, build the gmp/mpfr/mpc libraries too.
(gcc-4.2.4 do not need them, gcc-4.5.x and later do not need them built).

I'll take a look at the Codesourcery toolchain anyway, it might contain some 
good hints and tips. :)
Maybe I can get Yagarto to build on my Mac too; if I succeed, I'll let Michael 
know what I did. =)


>On 2011-10-15 14:53, Jens Bauer wrote:
>> Hi Jörg,
>> I used the same build of Yagarto as you mentioned.
>> Are you building on a PPC Mac ?
>> GMP will not compile on a PPC Mac with GCC 4.0.1; but it *will*
>compile on an intel Mac with GCC 4.0.1.
>> I get duplicate symbols (___gmpz_abs).
>> Same as this: <http://gmplib.org/list-archives/gmp-bugs/2010-January/
>> -This happens with GCC-4.0.1 on PPC, but not with GCC-4.2.1
>> However, Yagarto seems to switch to GCC-4.0.1 (on my system anyway)
>> Love,
>> Jens
>For arm-gcc on Ubuntu , i have used James Snyder's  "Codesourcery"
>The build is (might still be) broken if you don't have bash as shell
>(dash is default)
>So execute : sudo dpkg-reconfigure dash
>And deselect dash.
>This one ought to work on MAC , as that's what James uses.
>Jens ....
>Maybe you could get some hints from James buildscript.
>AVR-GCC-list mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]