Pages: 1 2 3 [4]   Go Down
Author Topic: Help - Random function not working  (Read 5632 times)
0 Members and 1 Guest are viewing this topic.
Austin, TX USA
Offline Offline
God Member
*****
Karma: 4
Posts: 997
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah, and the problem affects do_random() as well.  My fear is that if this problem affects these two core library functions, what others might be affected that we haven't discovered!

I'll investigate how to post this to the avr libc developers.

Mikal
Logged

Austin, TX USA
Offline Offline
God Member
*****
Karma: 4
Posts: 997
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Before I post a bug report to the avr-libc developers' forum let me ask our Linux users a question: when you install Arduino-0012, do we build the libc locally, or does it come precompiled?  I'm trying to assess whether or not the bug might be a problem with some build scripts under our (Arduino's) control.

Mikal
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well both of my examples were done using Aurduino-0012. Not sure if that helps with your question.

Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 65
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I installed all the avr stuff from the Ubuntu repository so it was precompiled. The linux Arduino tar file only contains avrdude and avrdude.conf
Logged

Austin, TX USA
Offline Offline
God Member
*****
Karma: 4
Posts: 997
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, Veronica.  So can we now say definitively that avr-libc is definitely being provided by the Linux distribution and not by Arduino?

I posted the bug report on the avr-libc-dev forum (http://lists.gnu.org/archive/html/avr-libc-dev/2009-01/threads.html), and they ask the following questions:

  • Which Linux distribution does the problem show up on?
  • Who is the maintainer of the AVR GCC toolchain on that Linux distribution?
  • Which version of AVR GCC is being built? (Is it 4.3.0?)
  • How is the AVR GCC toolchain being built? What patches are being used? What is the configuration command line?
Can someone using Linux -- especially on a distribution known to be failing -- answer these?

Mikal
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@Mikal....This is the uname -a from the distro that started this thread.

Linux pat-desktop 2.6.27-9-generic #1 SMP Thu Nov 20 22:15:32 UTC 2008 x86_64 GNU/Linux

If you would like more information please let me know.

Pat

Forgot to add this:

pat@pat-desktop:~$ locate avr-gcc
/usr/bin/avr-gcc
/usr/bin/avr-gcc-4.3.0
/usr/bin/avr-gccbug
/usr/share/man/man1/avr-gcc-4.0.2.1.gz
/usr/share/man/man1/avr-gcc.1.gz
/usr/share/man/man1/avr-gccbug.1.gz
pat@pat-desktop:~$
« Last Edit: January 03, 2009, 09:33:27 pm by Patzak » Logged

Austin, TX USA
Offline Offline
God Member
*****
Karma: 4
Posts: 997
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, Patzak.  Is there any way to determine the version of the avr-libc module?
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 65
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Mine are:
Ubuntu 8.10 (Intrepid Ibex)
avr-libc 1:1.6.2-1
avr-gcc 1:4.3.0-2

Maintainer: Ubuntu MOTU Developers

Linux main 2.6.27-11-generic #1 SMP Fri Dec 19 16:29:35 UTC 2008 x86_64 GNU/Linux

BTW, I just installed the following files from debian sid and now the random function works as expected:

binutils-avr_2.18-4_amd64.deb
avr-libc_1.6.2.cvs20080610-2_all.deb
gcc-avr_4.3.2-1_amd64.deb

I still need to test that this doesn't break something else instead.

HTH

Ver
Logged

Maine
Offline Offline
Newbie
*
Karma: 0
Posts: 36
Heavily armed simian
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Installing the updated packages from sid as described here fixes the problem.  I'm not sure if that's been mentioned in this thread yet.
Logged

Maine
Offline Offline
Newbie
*
Karma: 0
Posts: 36
Heavily armed simian
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Oops, it's right there.  Nevermind.

One thing that wasn't mentioned is that you can find these packages on http://packages.debian.org/.
Logged

Austin, TX USA
Offline Offline
God Member
*****
Karma: 4
Posts: 997
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, UziMonkey.  That's good information.  

Mikal
Logged

Austin, TX USA
Offline Offline
God Member
*****
Karma: 4
Posts: 997
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

See http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1236018369/0 for an update on this issue.
Logged

Pages: 1 2 3 [4]   Go Up
Jump to: