public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/49764] New: [gcc-avr] Compiling for Arduino is not working
@ 2011-07-16 16:44 artemeas at gmail dot com
  2011-07-16 16:47 ` [Bug target/49764] " artemeas at gmail dot com
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: artemeas at gmail dot com @ 2011-07-16 16:44 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [gcc-avr] Compiling for Arduino is not working
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: artemeas@gmail.com


Compiling any of the examples in arduino (IDE) gives this:

In file included from
/usr/share/arduino/hardware/arduino/cores/arduino/Tone.cpp:37:0:
/usr/share/arduino/hardware/arduino/cores/arduino/pins_arduino.h:66:48: error:
variable 'port_to_mode_PGM' must be const in order to be put into read-only
section by means of '__attribute__((progmem))'
/usr/share/arduino/hardware/arduino/cores/arduino/pins_arduino.h:67:49: error:
variable 'port_to_input_PGM' must be const in order to be put into read-only
section by means of '__attribute__((progmem))'
/usr/share/arduino/hardware/arduino/cores/arduino/pins_arduino.h:68:50: error:
variable 'port_to_output_PGM' must be const in order to be put into read-only
section by means of '__attribute__((progmem))'
/usr/share/arduino/hardware/arduino/cores/arduino/pins_arduino.h:70:54: error:
variable 'digital_pin_to_port_PGM' must be const in order to be put into
read-only section by means of '__attribute__((progmem))'
/usr/share/arduino/hardware/arduino/cores/arduino/pins_arduino.h:72:58: error:
variable 'digital_pin_to_bit_mask_PGM' must be const in order to be put into
read-only section by means of '__attribute__((progmem))'
/usr/share/arduino/hardware/arduino/cores/arduino/pins_arduino.h:73:55: error:
variable 'digital_pin_to_timer_PGM' must be const in order to be put into
read-only section by means of '__attribute__((progmem))'
/usr/share/arduino/hardware/arduino/cores/arduino/Tone.cpp:108:45: error:
variable 'tone_pin_to_timer_PGM' must be const in order to be put into
read-only section by means of '__attribute__((progmem))'


Additional info:
Occures only on gcc-avr-4.6.1-1, reinstalling previous (gcc-avr-4.6.0-3) gives
successful compilation.
I checked the file files pins_arduino.h, pins_arduino.c and Tone.cpp on both
gcc-avr-4.6.1-1 and gcc-avr-4.6.0-3 they are equal. So the issue is in the
gcc-avr package.


Steps to reproduce:
1. Open arduino (IDE)
2. Select any example from File->Examples
3. Click on play icon (compile)

Step 2 can be left out, just clicking play icon (compile) on an empty sketch
gives same error on gcc-avr-4.6.1-1


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2011-07-27  1:19 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-16 16:44 [Bug target/49764] New: [gcc-avr] Compiling for Arduino is not working artemeas at gmail dot com
2011-07-16 16:47 ` [Bug target/49764] " artemeas at gmail dot com
2011-07-16 17:26 ` redi at gcc dot gnu.org
2011-07-16 17:34 ` redi at gcc dot gnu.org
2011-07-16 17:57 ` artemeas at gmail dot com
2011-07-16 18:10 ` redi at gcc dot gnu.org
2011-07-16 18:13 ` redi at gcc dot gnu.org
2011-07-16 19:06 ` artemeas at gmail dot com
2011-07-16 19:36 ` redi at gcc dot gnu.org
2011-07-16 19:55 ` artemeas at gmail dot com
2011-07-16 20:26 ` redi at gcc dot gnu.org
2011-07-17  0:30 ` artemeas at gmail dot com
2011-07-17  9:55 ` redi at gcc dot gnu.org
2011-07-17  9:57 ` redi at gcc dot gnu.org
2011-07-17 10:03 ` redi at gcc dot gnu.org
2011-07-23 18:42 ` gjl at gcc dot gnu.org
2011-07-23 19:27 ` gjl at gcc dot gnu.org
2011-07-23 19:30 ` gjl at gcc dot gnu.org
2011-07-25 10:24 ` [Bug target/49764] [avr-g++] Rejects attribute progmem gjl at gcc dot gnu.org
2011-07-26 19:34 ` artemeas at gmail dot com
2011-07-27  1:19 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).