Skip to content

Instantly share code, notes, and snippets.

@lbibass
Last active February 12, 2019 18:04
Show Gist options
  • Save lbibass/4f42b08a4365b16cc36c94429ad5a51f to your computer and use it in GitHub Desktop.
Save lbibass/4f42b08a4365b16cc36c94429ad5a51f to your computer and use it in GitHub Desktop.
error on compiling hhkb_via
make hhkb:via
QMK Firmware 0.6.159
Making hhkb with keymap via
avr-gcc (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiling: keyboards/hhkb/keymaps/via/matrix.c [OK]
Compiling: keyboards/hhkb/hhkb.c [OK]
Compiling: keyboards/hhkb/keymaps/via/keymap.c [OK]
Compiling: quantum/quantum.c [OK]
Compiling: quantum/keymap_common.c [OK]
Compiling: quantum/keycode_config.c [OK]
Compiling: quantum/debounce.c [OK]
Compiling: quantum/dynamic_keymap.c quantum/dynamic_keymap.c:27:2: error: #error DYNAMIC_KEYMAP_EEPROM_ADDR not defined
#error DYNAMIC_KEYMAP_EEPROM_ADDR not defined
^~~~~
quantum/dynamic_keymap.c:31:2: error: #error DYNAMIC_KEYMAP_LAYER_COUNT not defined
#error DYNAMIC_KEYMAP_LAYER_COUNT not defined
^~~~~
quantum/dynamic_keymap.c:35:2: error: #error DYNAMIC_KEYMAP_MACRO_COUNT not defined
#error DYNAMIC_KEYMAP_MACRO_COUNT not defined
^~~~~
quantum/dynamic_keymap.c:39:2: error: #error DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR not defined
#error DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR not defined
^~~~~
quantum/dynamic_keymap.c:43:2: error: #error DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE not defined
#error DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE not defined
^~~~~
quantum/dynamic_keymap.c: In function 'dynamic_keymap_get_layer_count':
quantum/dynamic_keymap.c:48:9: error: 'DYNAMIC_KEYMAP_LAYER_COUNT' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
return DYNAMIC_KEYMAP_LAYER_COUNT;
^~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c:48:9: note: each undeclared identifier is reported only once for each function it appears in
quantum/dynamic_keymap.c: In function 'dynamic_keymap_key_to_eeprom_address':
quantum/dynamic_keymap.c:54:17: error: 'DYNAMIC_KEYMAP_EEPROM_ADDR' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
return ((void*)DYNAMIC_KEYMAP_EEPROM_ADDR) + ( layer * MATRIX_ROWS * MATRIX_COLS * 2 ) +
^~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c: In function 'dynamic_keymap_reset':
quantum/dynamic_keymap.c:80:31: error: 'DYNAMIC_KEYMAP_LAYER_COUNT' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
for ( int layer = 0; layer < DYNAMIC_KEYMAP_LAYER_COUNT; layer++ ) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c: In function 'dynamic_keymap_get_buffer':
quantum/dynamic_keymap.c:91:40: error: 'DYNAMIC_KEYMAP_LAYER_COUNT' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
uint16_t dynamic_keymap_eeprom_size = DYNAMIC_KEYMAP_LAYER_COUNT * MATRIX_ROWS * MATRIX_COLS * 2;
^~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c:92:25: error: 'DYNAMIC_KEYMAP_EEPROM_ADDR' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
void *source = (void*)(DYNAMIC_KEYMAP_EEPROM_ADDR+offset);
^~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c: In function 'dynamic_keymap_set_buffer':
quantum/dynamic_keymap.c:107:40: error: 'DYNAMIC_KEYMAP_LAYER_COUNT' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
uint16_t dynamic_keymap_eeprom_size = DYNAMIC_KEYMAP_LAYER_COUNT * MATRIX_ROWS * MATRIX_COLS * 2;
^~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c:108:25: error: 'DYNAMIC_KEYMAP_EEPROM_ADDR' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
void *target = (void*)(DYNAMIC_KEYMAP_EEPROM_ADDR+offset);
^~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c: In function 'keymap_key_to_keycode':
quantum/dynamic_keymap.c:122:15: error: 'DYNAMIC_KEYMAP_LAYER_COUNT' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
if ( layer < DYNAMIC_KEYMAP_LAYER_COUNT &&
^~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c: In function 'dynamic_keymap_macro_get_count':
quantum/dynamic_keymap.c:135:9: error: 'DYNAMIC_KEYMAP_MACRO_COUNT' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
return DYNAMIC_KEYMAP_MACRO_COUNT;
^~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c: In function 'dynamic_keymap_macro_get_buffer_size':
quantum/dynamic_keymap.c:140:9: error: 'DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
return DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c: In function 'dynamic_keymap_macro_get_buffer':
quantum/dynamic_keymap.c:145:25: error: 'DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
void *source = (void*)(DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR+offset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c:148:21: error: 'DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR'?
if ( offset + i < DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE ) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
quantum/dynamic_keymap.c: In function 'dynamic_keymap_macro_set_buffer':
quantum/dynamic_keymap.c:160:25: error: 'DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
void *target = (void*)(DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR+offset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c:163:21: error: 'DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR'?
if ( offset + i < DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE ) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
quantum/dynamic_keymap.c: In function 'dynamic_keymap_macro_reset':
quantum/dynamic_keymap.c:173:20: error: 'DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
void *p = (void*)(DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c:174:55: error: 'DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR'?
void *end = (void*)(DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR+DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
quantum/dynamic_keymap.c: In function 'dynamic_keymap_macro_send':
quantum/dynamic_keymap.c:183:13: error: 'DYNAMIC_KEYMAP_MACRO_COUNT' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_ENABLE'?
if ( id >= DYNAMIC_KEYMAP_MACRO_COUNT ) {
^~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_ENABLE
quantum/dynamic_keymap.c:191:20: error: 'DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_MACRO_COUNT'?
void *p = (void*)(DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR+DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE-1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_MACRO_COUNT
quantum/dynamic_keymap.c:191:53: error: 'DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE' undeclared (first use in this function); did you mean 'DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR'?
void *p = (void*)(DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR+DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE-1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
quantum/dynamic_keymap.c: In function 'dynamic_keymap_get_layer_count':
quantum/dynamic_keymap.c:49:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
quantum/dynamic_keymap.c: In function 'dynamic_keymap_key_to_eeprom_address':
quantum/dynamic_keymap.c:56:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
quantum/dynamic_keymap.c: In function 'keymap_key_to_keycode':
quantum/dynamic_keymap.c:129:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
quantum/dynamic_keymap.c: In function 'dynamic_keymap_macro_get_count':
quantum/dynamic_keymap.c:136:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
quantum/dynamic_keymap.c: In function 'dynamic_keymap_macro_get_buffer_size':
quantum/dynamic_keymap.c:141:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
[ERRORS]
|
|
|
make[1]: *** [.build/obj_hhkb_via/quantum/dynamic_keymap.o] Error 1
make: *** [hhkb:via] Error 1
Make finished with errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment