Problem compiling
Version 1.0.3
Modified makefile to atmega1284p
Modified makefile to atmega1284p
avr-gcc --version
avr-gcc (Gentoo 7.2.0 p1.1) 7.2.0
avr-gcc (Gentoo 7.2.0 p1.1) 7.2.0
/usr/bin/avr-gcc -c -mmcu=atmega1284p -I. -gstabs -DF_CPU=16000000 -Iarduino.lib -Os -Wall -std=gnu99 -MD -MP -DARDUINO=105 arduino.lib/wiring_digital.c -o arduino.lib/wiring_digital.o
In file included from arduino.lib/Arduino.h:213:0,
from arduino.lib/wiring_private.h:33,
from arduino.lib/wiring_digital.c:28:
arduino.lib/pins_arduino.h:94:14: error: ‘DDRE’ undeclared here (not in a function); did you mean ‘DDRB’?
(uint16_t) &DDRE,
^~~~
DDRB
arduino.lib/pins_arduino.h:95:14: error: ‘DDRF’ undeclared here (not in a function); did you mean ‘DDRE’?
(uint16_t) &DDRF,
^~~~
DDRE
arduino.lib/pins_arduino.h:96:14: error: ‘DDRG’ undeclared here (not in a function); did you mean ‘DDRF’?
(uint16_t) &DDRG,
^~~~
DDRF
arduino.lib/pins_arduino.h:97:14: error: ‘DDRH’ undeclared here (not in a function); did you mean ‘DDRG’?
(uint16_t) &DDRH,
^~~~
DDRG
arduino.lib/pins_arduino.h:99:14: error: ‘DDRJ’ undeclared here (not in a function); did you mean ‘DDRH’?
(uint16_t) &DDRJ,
^~~~
DDRH
arduino.lib/pins_arduino.h:100:14: error: ‘DDRK’ undeclared here (not in a function); did you mean ‘DDRJ’?
(uint16_t) &DDRK,
^~~~
DDRJ
arduino.lib/pins_arduino.h:101:14: error: ‘DDRL’ undeclared here (not in a function); did you mean ‘DDRK’?
(uint16_t) &DDRL,
^~~~
DDRK
arduino.lib/pins_arduino.h:110:14: error: ‘PORTE’ undeclared here (not in a function); did you mean ‘PORT0’?
(uint16_t) &PORTE,
^~~~~
PORT0
arduino.lib/pins_arduino.h:110:2: error: initializer element is not constant
(uint16_t) &PORTE,
^
arduino.lib/pins_arduino.h:110:2: note: (near initialization for ‘port_to_output_PGM[5]’)
arduino.lib/pins_arduino.h:111:14: error: ‘PORTF’ undeclared here (not in a function); did you mean ‘PORTE’?
(uint16_t) &PORTF,
^~~~~
PORTE
arduino.lib/pins_arduino.h:111:2: error: initializer element is not constant
(uint16_t) &PORTF,
^
arduino.lib/pins_arduino.h:111:2: note: (near initialization for ‘port_to_output_PGM[6]’)
arduino.lib/pins_arduino.h:112:14: error: ‘PORTG’ undeclared here (not in a function); did you mean ‘PORTF’?
(uint16_t) &PORTG,
^~~~~
PORTF
arduino.lib/pins_arduino.h:112:2: error: initializer element is not constant
(uint16_t) &PORTG,
^
arduino.lib/pins_arduino.h:112:2: note: (near initialization for ‘port_to_output_PGM[7]’)
arduino.lib/pins_arduino.h:113:14: error: ‘PORTH’ undeclared here (not in a function); did you mean ‘PORTG’?
(uint16_t) &PORTH,
^~~~~
PORTG
arduino.lib/pins_arduino.h:113:2: error: initializer element is not constant
(uint16_t) &PORTH,
^
arduino.lib/pins_arduino.h:113:2: note: (near initialization for ‘port_to_output_PGM[8]’)
arduino.lib/pins_arduino.h:115:14: error: ‘PORTJ’ undeclared here (not in a function); did you mean ‘PORTH’?
(uint16_t) &PORTJ,
^~~~~
PORTH
arduino.lib/pins_arduino.h:115:2: error: initializer element is not constant
(uint16_t) &PORTJ,
^
arduino.lib/pins_arduino.h:115:2: note: (near initialization for ‘port_to_output_PGM[10]’)
arduino.lib/pins_arduino.h:116:14: error: ‘PORTK’ undeclared here (not in a function); did you mean ‘PORTJ’?
(uint16_t) &PORTK,
^~~~~
PORTJ
arduino.lib/pins_arduino.h:116:2: error: initializer element is not constant
(uint16_t) &PORTK,
^
arduino.lib/pins_arduino.h:116:2: note: (near initialization for ‘port_to_output_PGM[11]’)
arduino.lib/pins_arduino.h:117:14: error: ‘PORTL’ undeclared here (not in a function); did you mean ‘PORTK’?
(uint16_t) &PORTL,
^~~~~
PORTK
arduino.lib/pins_arduino.h:117:2: error: initializer element is not constant
(uint16_t) &PORTL,
^
arduino.lib/pins_arduino.h:117:2: note: (near initialization for ‘port_to_output_PGM[12]’)
arduino.lib/pins_arduino.h:126:14: error: ‘PINE’ undeclared here (not in a function); did you mean ‘PIN0’?
(uint16_t) &PINE,
^~~~
PIN0
arduino.lib/pins_arduino.h:126:2: error: initializer element is not constant
(uint16_t) &PINE,
^
arduino.lib/pins_arduino.h:126:2: note: (near initialization for ‘port_to_input_PGM[5]’)
arduino.lib/pins_arduino.h:127:14: error: ‘PINF’ undeclared here (not in a function); did you mean ‘PINE’?
(uint16_t) &PINF,
^~~~
PINE
arduino.lib/pins_arduino.h:127:2: error: initializer element is not constant
(uint16_t) &PINF,
^
arduino.lib/pins_arduino.h:127:2: note: (near initialization for ‘port_to_input_PGM[6]’)
arduino.lib/pins_arduino.h:128:14: error: ‘PING’ undeclared here (not in a function); did you mean ‘PINF’?
(uint16_t) &PING,
^~~~
PINF
arduino.lib/pins_arduino.h:128:2: error: initializer element is not constant
(uint16_t) &PING,
^
arduino.lib/pins_arduino.h:128:2: note: (near initialization for ‘port_to_input_PGM[7]’)
arduino.lib/pins_arduino.h:129:14: error: ‘PINH’ undeclared here (not in a function); did you mean ‘PING’?
(uint16_t) &PINH,
^~~~
PING
arduino.lib/pins_arduino.h:129:2: error: initializer element is not constant
(uint16_t) &PINH,
^
arduino.lib/pins_arduino.h:129:2: note: (near initialization for ‘port_to_input_PGM[8]’)
arduino.lib/pins_arduino.h:131:14: error: ‘PINJ’ undeclared here (not in a function); did you mean ‘PINH’?
(uint16_t) &PINJ,
^~~~
PINH
arduino.lib/pins_arduino.h:131:2: error: initializer element is not constant
(uint16_t) &PINJ,
^
arduino.lib/pins_arduino.h:131:2: note: (near initialization for ‘port_to_input_PGM[10]’)
arduino.lib/pins_arduino.h:132:14: error: ‘PINK’ undeclared here (not in a function); did you mean ‘PINJ’?
(uint16_t) &PINK,
^~~~
PINJ
arduino.lib/pins_arduino.h:132:2: error: initializer element is not constant
(uint16_t) &PINK,
^
arduino.lib/pins_arduino.h:132:2: note: (near initialization for ‘port_to_input_PGM[11]’)
arduino.lib/pins_arduino.h:133:14: error: ‘PINL’ undeclared here (not in a function); did you mean ‘PINK’?
(uint16_t) &PINL,
^~~~
PINK
arduino.lib/pins_arduino.h:133:2: error: initializer element is not constant
(uint16_t) &PINL,
^
arduino.lib/pins_arduino.h:133:2: note: (near initialization for ‘port_to_input_PGM[12]’)
make: *** [Makefile:277: arduino.lib/wiring_digital.o] Error 1
Comments