WiFi.cpp doesn't compile with default flags
Bug #1112499 reported by
Scott Howard
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc |
Confirmed
|
Medium
|
|||
arduino (Debian) |
Fix Released
|
Unknown
|
|||
arduino (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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://
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.
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in arduino (Debian): | |
status: | Unknown → Fix Released |
To post a comment you must log in.
/home2/ joel/build/ b-avr-gcc/ ./gcc/xgcc -B/home2/ joel/build/ b-avr-gcc/ ./gcc/ -nostdinc -B/home2/ joel/build/ b-avr-gcc/ avr-rtems4. 11/avr25/ newlib/ -isystem /home2/ joel/build/ b-avr-gcc/ avr-rtems4. 11/avr25/ newlib/ targ-include -isystem /users/ joel/test- gcc/gcc- svn/newlib/ libc/include -B/users/ joel/test- gcc/install- svn/avr- rtems4. 11/bin/ -B/users/ joel/test- gcc/install- svn/avr- rtems4. 11/lib/ -isystem /users/ joel/test- gcc/install- svn/avr- rtems4. 11/include -isystem /users/ joel/test- gcc/install- svn/avr- rtems4. 11/sys- include -mmcu=avr25 -DPACKAGE_ NAME=\" newlib\ " -DPACKAGE_ TARNAME= \"newlib\ " -DPACKAGE_ VERSION= \"1.19. 0\" -DPACKAGE_ STRING= \"newlib\ 1.19.0\" -DPACKAGE_ BUGREPORT= \"\" -DPACKAGE_URL=\"\" -I. -I/users/ joel/test- gcc/gcc- svn/newlib/ libc/search -Os -DPREFER_ SIZE_OVER_ SPEED -mcall-prologues -D_COMPILING_NEWLIB -DMALLOC_PROVIDED -DEXIT_PROVIDED -DSIGNAL_PROVIDED -DREENTRANT_ SYSCALLS_ PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE -DHAVE_FCNTL -DHAVE_ASSERT_FUNC -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT -D_NO_GETPASS -D_NO_SIGSET -D_NO_WORDEXP -D_NO_POPEN -Wall -fno-builtin -g -O2 -mmcu=avr25 -c -o lib_a-twalk.o `test -f 'twalk.c' || echo '/users/ joel/test- gcc/gcc- svn/newlib/ libc/search/ '`twalk. c joel/test- gcc/gcc- svn/newlib/ libc/search/ hash.c: In function '__expand_table': joel/test- gcc/gcc- svn/newlib/ libc/search/ hash.c: 898:1: error: unable to find a register to spill in class 'POINTER_REGS' joel/test- gcc/gcc- svn/newlib/ libc/search/ hash.c: 898:1: error: this is the insn:
(const_ int 5 [0x5])) [16 S1 A8])) /users/ joel/test- gcc/gcc- svn/newlib/ libc/search/ hash.c: 886 1 {movqi_insn} joel/test- gcc/gcc- svn/newlib/ libc/search/ hash.c: 898:1: internal compiler error: in spill_failure, at reload1.c:2118 gcc.gnu. org/bugs. html> for instructions.
/users/
/users/
/users/
(insn 172 96 173 10 (set (reg:QI 18 r18)
(mem/c:QI (plus:HI (reg/f:HI 28 r28)
(nil))
/users/
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://