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

Submitter:  Alan Edwards <algenon>
Submitted:  Mon 28 May 2012 09:32:16 AM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

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.)

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

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

  • config and/or log files etc.

All from Arch Linux-
[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 Files:

Attached Files
file #25946:  Arduino SIG_USART error.png added by algenon (52KiB - 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
  • -email is unavailable- added by algenon (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-05-28 algenon Attached File- Added Arduino SIG_USART error.png, #25946

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code