Skip to content

Instantly share code, notes, and snippets.

@Wurstnase
Created November 19, 2015 18:25
Show Gist options
  • Save Wurstnase/d39d5a7870f22ee9abf4 to your computer and use it in GitHub Desktop.
Save Wurstnase/d39d5a7870f22ee9abf4 to your computer and use it in GitHub Desktop.
# Generic Gen7 configuration.
make -f Makefile-AVR USER_CONFIG=testcases/config.regtest-gen7-avr.h \
MCU=atmega644 F_CPU=20000000UL EXTRA_CFLAGS=-Werror all
make[1]: Entering directory `/home/nico/Documents/github/Traumflug/Teacup_Firmware'
mkdir -p build/testcases/config.regtest-gen7-avr
CC build/testcases/config.regtest-gen7-avr/analog.o
CC build/testcases/config.regtest-gen7-avr/clock.o
CC build/testcases/config.regtest-gen7-avr/cmsis-system_lpc11xx.o
CC build/testcases/config.regtest-gen7-avr/cmsis-system_stm32f4xx.o
CC build/testcases/config.regtest-gen7-avr/cpu-arm.o
CC build/testcases/config.regtest-gen7-avr/cpu-avr.o
CC build/testcases/config.regtest-gen7-avr/cpu.o
CC build/testcases/config.regtest-gen7-avr/crc.o
CC build/testcases/config.regtest-gen7-avr/dda.o
CC build/testcases/config.regtest-gen7-avr/dda_kinematics.o
CC build/testcases/config.regtest-gen7-avr/dda_lookahead.o
CC build/testcases/config.regtest-gen7-avr/dda_maths.o
CC build/testcases/config.regtest-gen7-avr/dda_queue.o
CC build/testcases/config.regtest-gen7-avr/debug.o
CC build/testcases/config.regtest-gen7-avr/delay-arm_LPC11xx.o
CC build/testcases/config.regtest-gen7-avr/delay-arm_stm32f4xx.o
CC build/testcases/config.regtest-gen7-avr/delay-avr.o
CC build/testcases/config.regtest-gen7-avr/delay.o
CC build/testcases/config.regtest-gen7-avr/gcode_parse.o
CC build/testcases/config.regtest-gen7-avr/gcode_process.o
CC build/testcases/config.regtest-gen7-avr/graycode.o
CC build/testcases/config.regtest-gen7-avr/heater.o
CC build/testcases/config.regtest-gen7-avr/home.o
CC build/testcases/config.regtest-gen7-avr/intercom.o
CC build/testcases/config.regtest-gen7-avr/mendel.o
CC build/testcases/config.regtest-gen7-avr/pff.o
CC build/testcases/config.regtest-gen7-avr/pff_diskio.o
CC build/testcases/config.regtest-gen7-avr/pinio.o
CC build/testcases/config.regtest-gen7-avr/sd.o
CC build/testcases/config.regtest-gen7-avr/serial-arm_LPC11xx.o
CC build/testcases/config.regtest-gen7-avr/serial-arm_stm32f4xx.o
CC build/testcases/config.regtest-gen7-avr/serial-avr.o
CC build/testcases/config.regtest-gen7-avr/serial.o
CC build/testcases/config.regtest-gen7-avr/sermsg.o
CC build/testcases/config.regtest-gen7-avr/sersendf.o
CC build/testcases/config.regtest-gen7-avr/spi.o
CC build/testcases/config.regtest-gen7-avr/temp.o
In file included from testcases/config.regtest-gen7-avr.h:3:0,
from config_wrapper.h:20,
from temp.c:62:
testcases/../config/board.gen7-v1.4.h:171:1: error: initialization makes integer from pointer without a cast [-Werror]
DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO1, THERMISTOR_EXTRUDER)
^
testcases/../config/board.gen7-v1.4.h:171:1: error: (near initialization for ‘temp_sensors[0].additional’) [-Werror]
testcases/../config/board.gen7-v1.4.h:171:1: error: initializer element is not computable at load time
testcases/../config/board.gen7-v1.4.h:171:1: error: (near initialization for ‘temp_sensors[0].additional’)
testcases/../config/board.gen7-v1.4.h:172:1: error: initialization makes integer from pointer without a cast [-Werror]
DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO0, THERMISTOR_BED)
^
testcases/../config/board.gen7-v1.4.h:172:1: error: (near initialization for ‘temp_sensors[1].additional’) [-Werror]
testcases/../config/board.gen7-v1.4.h:172:1: error: initializer element is not computable at load time
testcases/../config/board.gen7-v1.4.h:172:1: error: (near initialization for ‘temp_sensors[1].additional’)
temp.c: In function ‘temp_sensor_tick’:
temp.c:178:96: error: subscripted value is neither array nor pointer nor vector
if (pgm_read_word(&(temptable[table_num][j][0])) > temp) {
^
temp.c:196:114: error: subscripted value is neither array nor pointer nor vector
((uint32_t)temp - pgm_read_word(&(temptable[table_num][j-1][0]))) * pgm_read_word(&(temptable[table_num][j][1]))
^
temp.c:196:348: error: subscripted value is neither array nor pointer nor vector
((uint32_t)temp - pgm_read_word(&(temptable[table_num][j-1][0]))) * pgm_read_word(&(temptable[table_num][j][1]))
^
temp.c:200:95: error: subscripted value is neither array nor pointer nor vector
(pgm_read_word(&(temptable[table_num][j][0])) - (uint32_t)temp)
^
temp.c:202:98: error: subscripted value is neither array nor pointer nor vector
* pgm_read_word(&(temptable[table_num][j-1][1])))
^
temp.c:206:95: error: subscripted value is neither array nor pointer nor vector
(pgm_read_word(&(temptable[table_num][j][0])) - pgm_read_word(&(temptable[table_num][j-1][0])));
^
temp.c:206:330: error: subscripted value is neither array nor pointer nor vector
(pgm_read_word(&(temptable[table_num][j][0])) - pgm_read_word(&(temptable[table_num][j-1][0])));
^
temp.c:222:42: error: subscripted value is neither array nor pointer nor vector
temp = temptable[table_num][NUMTEMPS-1][1];
^
cc1: all warnings being treated as errors
make[1]: *** [build/testcases/config.regtest-gen7-avr/temp.o] Error 1
make[1]: Leaving directory `/home/nico/Documents/github/Traumflug/Teacup_Firmware'
make: *** [regressiontests] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment