Pages: 1 [2]   Go Down
Author Topic: Bug/Change reports for avrlibc-1.7.1 and Arduino-0022 completed  (Read 3426 times)
0 Members and 1 Guest are viewing this topic.
Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 146
Posts: 6022
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My bad. I should have posted the link to the issue with that statement.
http://arduino.cc/forum/index.php/topic,68624.0.html
I would have submitted these issues in the appropriate places had I known. It took two weeks before someone (thanks again, justjed) steered me to the Savannah site.

Now the big question. Is anyone else using avr-gcc v4.5.1?
I'm ok with being "the only one". I'm comfortable being the lead dog in the pack.

Logged

CO, USA
Offline Offline
God Member
*****
Karma: 5
Posts: 711
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
At least with free software, you can fix it yourself.
"Free" is neither necessary or sufficient for being able to "fix it yourself."  Universities and capable customers have had "source licenses" for otherwise proprietary (and expensive) software, and been fixing their vendors' bugs, since ... forever.

And how wonderful it is that Free Software and Open Source have provided that capability to everyone, not just those who have deep pockets for buying source licenses.
Logged

... it is poor civic hygiene to install technologies that could someday
facilitate a police state. -- Bruce Schneier

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'm comfortable being the lead dog in the pack.

That's good, because unless you are the lead dog, the view is always the same.  smiley-grin

Lefty
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 146
Posts: 6022
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I found the ethernet problem and have posted all the bugs and fixes with Arduino and Savannah.
https://savannah.nongnu.org/bugs/?34047
http://code.google.com/p/arduino/issues/detail?id=604&start=200
http://code.google.com/p/arduino/issues/detail?id=605&start=200

It is good to be back in a Linux environment again. All seems to be working great.

Arduino V0022
avr-gcc v4.5.1
avr-libc v1.7.1
gcc v4.5.2
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 146
Posts: 6022
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I received notice this morning from the Savannah crew that the math.h bug in delay.h will be corrected in avr-libc v1.7.2

One down, two to go!  smiley


« Last Edit: September 14, 2011, 05:00:22 am by SurferTim » Logged

CO, USA
Offline Offline
God Member
*****
Karma: 5
Posts: 711
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Excellent. And thank you for doing the legwork!
Logged

... it is poor civic hygiene to install technologies that could someday
facilitate a police state. -- Bruce Schneier

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 146
Posts: 6022
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, justjed!

UPDATE: I just got an email from the savannah crew that the bug fix did not make it into the avr-libc-1.7.2 package. That is out in a beta version now at the savannah site.

It will be in the avr-libc-v1.8.0 version. So if you plan on using v1.7.2, also plan on removing that bug yourself.
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 146
Posts: 6022
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Update: For you Debian and Ubuntu repository users, the new avr-libc version with this patch are going into your repositories. I just received this:
Quote
Comment #7 on issue 604 by showard...@gmail.com: wiring.h round macro causes error with avr-libc-1.7.1 fix
http://code.google.com/p/arduino/issues/detail?id=604

Linux distributions just upgraded their gcc-avr to 1.7.1 too. Debian/Ubuntu/Mint's version of arduino has this patch:
http://patch-tracker.debian.org/patch/series/view/arduino/0022+dfsg-4/libc_1.7.1.patch

Bug-Debian: http://bugs.debian.org/633659
--- arduino-0022+dfsg.orig/hardware/arduino/cores/arduino/wiring.h
+++ arduino-0022+dfsg/hardware/arduino/cores/arduino/wiring.h
@@ -76,7 +76,7 @@ extern "C"{
 #define max(a,b) ((a)>(b)?(a):(b))
 #define abs(x) ((x)>0?(x):-(x))
 #define constrain(amt,low,high) ((amt)<(low)?(low)smiley-sad(amt)>(high)?(high):(amt)))
-#define round(x)     ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
+//#define round(x)     ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
 #define radians(deg) ((deg)*DEG_TO_RAD)
 #define degrees(rad) ((rad)*RAD_TO_DEG)
 #define sq(x) ((x)*(x))
Logged

Pages: 1 [2]   Go Up
Jump to: