You are not logged in.

#1 2011-05-24 20:51:42

leo72
Member
Registered: 2009-05-28
Posts: 16

Binutils-avr bugged

Binutils-avr is bugged:
http://arduino.cc/forum/index.php/topic … #msg410902

On my Arch, the Arduino IDE doesn't compile good code: I cannot use not only the delay() function but I get some deeper problems.
It is known that Debian has published several months ago some patches to correct these bugs and that Debian/Ubuntu packages of binutils-avr e avr-gcc are compiled using these patches, and I can confirm that on Ubuntu I don't have any problem.

On Arch someone has tried to create some patched versions of binutils-avr and avr-gcc but I wasn't able to compile them because of the dependencies....

So, my question is: will the manteiner of this package update it using the patches from Debian? Or is there a way to compile them?
Because I NEED to use Arduino and if there's not a quickly solution I will be forced to change OS...

Offline

#2 2011-06-14 23:19:59

Caliban
Member
Registered: 2011-04-24
Posts: 6

Re: Binutils-avr bugged

I am having the same problem, and also confirm that i dont have the problem on ubuntu.

If you havnt seen it previously there were some patched PKGBUILDs available from arduino forum (they are no longer available to download)  using debian patches and pacman -Udf to force ignore dependencies (sounds dodgy to me, so i'm not too keen to try).

Offline

#3 2011-06-15 21:01:04

leo72
Member
Registered: 2009-05-28
Posts: 16

Re: Binutils-avr bugged

I had to reinstall Ubuntu because I couldn't compile any working sketch for my Arduino.
Waiting for a patched version of binutils to switch back to Arch. Sorry.

Offline

#4 2011-07-05 18:42:07

McQUack
Member
Registered: 2006-03-10
Posts: 10

Re: Binutils-avr bugged

Hello,

sorry to push this topic back up again.
I just newly installed Arch on my netbook, and everything is working fine. Exept this Arduino problem with the delay bug.

As I'm not that deep into Linux. I'm a bit lost at the moment not knowing what to do.

I downloaded the fie gcc-avr-debian-pkgbuilds.tar.gz fom the above mentioned link, but what schould i do with it now.

Any help would be welcome.

Thanks

Uwe

Offline

#5 2011-08-17 21:33:36

leo72
Member
Registered: 2009-05-28
Posts: 16

Re: Binutils-avr bugged

Hello. I would like to know if there are any news about the binutils-avr bug.

Offline

#6 2011-08-28 06:13:40

_artem_
Member
Registered: 2010-09-17
Posts: 39

Re: Binutils-avr bugged

nope. the latest binutils-avr is still bugged.

the only way to get delay() function to work, is to use binutils-avr-debian-2.20.1-1-x86_64.pkg.tar.xz (google for it, it's 1,8mb) then pacman -Rdd binutils-avr && pacman -U ./binutils-avr-debian-2.20.1-1-x86_64.pkg.tar.xz

that's it. since todays arduino package update you don't need to use gcc-avr-svn anymore, there is a patch integrated that fixes the pregmem issue.

Offline

#7 2011-12-01 12:53:46

Gede
Member
Registered: 2009-09-03
Posts: 28

Re: Binutils-avr bugged

binutils-avr 2.21.1-2 still has the same bug.
binutils-avr-debian-2.20.1-1-x86_64.pkg.tar.xz solved it for me. Thanks.

Offline

#8 2011-12-22 04:16:16

LessWire
Member
From: Bavaria
Registered: 2010-06-14
Posts: 46

Re: Binutils-avr bugged

Has somebody checked binutils-avr 2.22-1 ?

Last week i tested a new Arduino board with the very simple "Blink" sketch. "delay" didn't work, the LED looks like it lights continuously (although it's a kind of PWM without any delays and so it shined not so bright).

Then i inserted a "Serial.print" command and i wondered, suddenly "delay" worked as it should. Also delay commands in other sketches work ok.

Somebody can agree with this ?

Offline

Board footer

Powered by FluxBB