bug"Super-Project" for AVR-related projects - Bugs: bug #36553, [avr-libc] 1.8.0-3 gives...

 
 

bug #36553: [avr-libc] 1.8.0-3 gives "attempt to use poisoned "SIG_USART3_RECV" error for Arduino Mega

Submitted by:  Alan Edwards <algenon>
Submitted on:  Mon 28 May 2012 09:32:16 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 20 Jun 2012 12:52:53 AM UTC, comment #1:

This is not a problem with the new avr-libc. Instead, it's a problem with the Arduino library.
The good folks at Arduino do not keep up to date with the latest and greatest avr-libc.
When symbols get removed or deprecated (such as in this case,) the Arduino code won't work.
Your options are to fix the Arduino code to use the new symbols, or to use an older version of avr-libc.
Or drop the Arduino libs and code directly for the AVR, which will be more efficient anyway (some of the Arduino libs are pretty inefficient.)

Anonymous
Mon 28 May 2012 09:32:16 AM UTC, original submission:

Description: avr-libc 1.8.0-3 "The C runtime library for the AVR family of microcontrollers", produces the following error when compiling for the Arduino Mega 2560 (screen shot attached):

/usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp:91:41: error: attempt to use poisoned "SIG_USART0_RECV"
/usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp:101:15: error: attempt to use poisoned "SIG_USART0_RECV"
/usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp:132:15: error: attempt to use poisoned "SIG_USART1_RECV"
/usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp:145:15: error: attempt to use poisoned "SIG_USART2_RECV"
/usr/share/arduino/hardware/arduino/cores/arduino/HardwareSerial.cpp:158:15: error: attempt to use poisoned "SIG_USART3_RECV"

I have searched the Arch Linux bug tracker and can find no report of this bug. I have googled the error and found that in avr-libc 1.7.1, the bug was not present (see http://www.thebytes.net/2012/05/the-beginning-of-arduino/). Arch Linux have suggested that I post this bug upstream.

I would like to help the developers fix this bug if I can be of assistance.

Additional info:

  • package version(s)

arduino 1:1.0-3
avr-libc 1.7.1
avr-gcc 4.7.0-1

Reported:
At Arch Linux bug tracker, No. FS#30026.

  • config and/or log files etc.

All from Arch Linux-
/var/log/pacman.log:
[2012-03-31 18:15] Running 'pacman -S avr-gcc'
[2012-03-31 18:15] installed avr-binutils (2.22-2)
[2012-03-31 18:15] installed avr-gcc (4.6.3-1)
[2012-03-31 18:16] Running 'pacman -S avr-libc'
[2012-03-31 18:16] installed avr-libc (1.8.0-1)
[2012-04-04 19:36] Running 'pacman -S avr-libc'
[2012-04-04 21:40] Running 'pacman -S avr-libc'
[2012-04-14 12:49] upgraded avr-binutils (2.22-2 -> 2.22-3)
[2012-04-14 12:49] upgraded avr-gcc (4.6.3-1 -> 4.7.0-1)
[2012-04-14 12:49] upgraded avr-libc (1.8.0-1 -> 1.8.0-3)
[2012-04-21 13:43] Running 'pacman -U /var/cache/pacman/pkg/avr-gcc-4.6.3-1-i686.pkg.tar.xz'
[2012-04-21 13:43] upgraded avr-gcc (4.7.0-1 -> 4.6.3-1)
[2012-04-22 13:50] Running 'pacman -S avr-gcc'
[2012-04-22 13:50] upgraded avr-gcc (4.6.3-1 -> 4.7.0-1)

Steps to reproduce:
Using arduino 1:1.0-3, set the "board" to "Arduino Mega 2560 or Mega ADK" and compile, will produce the bug. Set the "board" to "Arduino Uno" and the bug does not appear, the code downloads to the Arduino and runs ok.

Alan Edwards <algenon>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #25946:  Arduino SIG_USART error.png added by algenon (52kB - image/png - Arduino IDE showing compiler error.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by algenon (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 May 2012 09:32:16 AM UTCalgenonAttached File-=>Added Arduino SIG_USART error.png, #25946

    Back to the top


    Powered by Savane 3.1-cleanup