Pages: 1 [2]   Go Down
Author Topic: error compiling on gcc-avr 4.6.1  (Read 11214 times)
0 Members and 1 Guest are viewing this topic.
Paris (France)
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For those of you who don't have the gcc-avr-4.6.0-3 package anymore, you still can download it here :

http://schlunix.org/archlinux/pool/community/gcc-avr-4.6.0-3-i686.pkg.tar.xz
or
http://schlunix.org/archlinux/pool/community/gcc-avr-4.6.0-3-x86_64.pkg.tar.xz

And thanks for your patch, ygrek. It seems to work fine smiley-wink
Logged

Rochester NY
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Expand your mind.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just want to let you know that using  the following command in fedora15 i was able to get the Arduino IDE to compile again.

Code:
sudo yum downgrade avr-gcc avr-gcc-c++
Logged

Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

had the same issue here with gcc-avr-4.6.1 on Arch Linux. But today I could update to gcc-avr-4.6.2-1; and that solved it.
Logged

تهران
Offline Offline
Newbie
*
Karma: 0
Posts: 2
 Bigger Bigger  Smaller Smaller  Reset Reset

I have same problem!

Code:
const char num1[] PROGMEM = "09194986646", num2[] PROGMEM = "44166762";
char* num[]  PROGMEM = {(void *)num1, (void *)num2};

It works fine when compiling with WINAVR2010 but compiling
Code:
const char num1[] PROGMEM = "09194986646", num2[] PROGMEM = "44166762";
PGM_P num[]  PROGMEM = {(void *)num1, (void *)num2};
with gcc version 4.6.2 (AVR_8_bit_GNU_Toolchain_3.4.1_798) the compiler returns this error:
Code:
monitoring.c:10:7: error: variable 'num' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

Have anybody solved this ptoblem?
Logged

Pages: 1 [2]   Go Up
Jump to: