avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] binutils, gcc and avr-libc versions


From: Ing. Daniel Rozsnyó
Subject: Re: [avr-chat] binutils, gcc and avr-libc versions
Date: Sun, 28 Apr 2013 11:28:42 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

Hi,
don't be surprised. Upgrading the toolchain breaks things seriously. Once I've tried to do so I ended up with unimaginable problems which were hard to track down. When I found out what the issue was, I decided not to upgrade.

The change between avr lib versions was that they changed the order of arguments in eeprom access functions, so the source and destination became swapped.

  Crazyness.

Regarding to your const issue - try to fix your sources with a script. I had to do that in PHP when they replaced ereg with preg and the syntax was a little different.

Daniel

On 04/28/2013 11:22 AM, Bob von Knobloch wrote:
Hi,
I am installing a new OS (openSuse12.3) and thought that I would take
this opportunity to update my avr tools.
I compiled using:

Binutils    2.23
GCC        4.80
avr-libc    1.80

Now compiling some old projects, gcc (I assume it's gcc) is throwing an
error (not a warning - and thousands of them) that 'PROGMEM' objects
need to be delared 'const'.
While this seems to be 'more correct', it seems a large change from
previous versions.
It leads me to wonder if anyone has used these versions, or is there a
'preferred' version of gcc (and maybe binutils) to make avr-gcc from?

Many thanks,

Bob von Knobloch



reply via email to

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