public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "artemeas at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/49764] New: [gcc-avr] Compiling for Arduino is not working
Date: Sat, 16 Jul 2011 16:44:00 -0000	[thread overview]
Message-ID: <bug-49764-4@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2011-07-16 16:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-16 16:44 artemeas at gmail dot com [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-49764-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).