Public bug reported:

While working on a package for Ubuntu Quantal (which has gcc 4.7), I
noticed sketches which use WiFi.cpp seem to trigger a GCC bug:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50925

Apparently it can be worked around by passing -fno-caller-saves to
avr-gcc and avr-g++.

I haven't extensively tested any sketches (yet) using that fix, but at
least the sketches compile again.

While I haven't checked myself, it seems quite likely that Debian's
Arduino package may be affected by this issue was well. I discovered
this by building the ConnectWithWPA example.

** Affects: gcc
     Importance: Unknown
         Status: Unknown

** Affects: arduino (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: arduino (Debian)
     Importance: Unknown
         Status: Unknown

** Bug watch added: Debian Bug tracker #698254
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698254

** Also affects: arduino (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698254
   Importance: Unknown
       Status: Unknown

** Bug watch added: GCC Bugzilla #50925
   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50925

** Also affects: gcc via
   http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50925
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1112499

Title:
  WiFi.cpp doesn't compile with default flags

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1112499/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to