Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Compilation failed for GH60 satan with HHKB 7u keymap #18251

Closed
3 tasks
aming opened this issue Sep 2, 2022 · 0 comments
Closed
3 tasks

[Bug] Compilation failed for GH60 satan with HHKB 7u keymap #18251

aming opened this issue Sep 2, 2022 · 0 comments

Comments

@aming
Copy link
Contributor

aming commented Sep 2, 2022

Describe the Bug

Compilation error for gh60/satan with hhkb_7u layout.

❯ qmk compile -kb gh60/satan -km hhkb_7u
Ψ Compiling keymap with gmake --jobs=1 gh60/satan:hhkb_7u


QMK Firmware 0.6.49
⚠ gh60/satan: RGBLIGHT_ANIMATIONS in config.h is deprecated and will be removed at a later date
Making gh60/satan with keymap hhkb_7u

⚠ gh60/satan: RGBLIGHT_ANIMATIONS in config.h is deprecated and will be removed at a later date
avr-gcc (Homebrew AVR GCC 8.5.0) 8.5.0
Copyright (C) 2018 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.

Size before:
   text	   data	    bss	    dec	    hex	filename
      0	  26056	      0	  26056	   65c8	gh60_satan_hhkb_7u.hex

Generating: .build/obj_gh60_satan/src/info_config.h                                                 [WARNINGS]
 |
 | ⚠ gh60/satan: RGBLIGHT_ANIMATIONS in config.h is deprecated and will be removed at a later date
 |
Generating: .build/obj_gh60_satan/src/layouts.h                                                     [WARNINGS]
 |
 | ⚠ gh60/satan: RGBLIGHT_ANIMATIONS in config.h is deprecated and will be removed at a later date
 |
Generating: .build/obj_gh60_satan/src/default_keyboard.c                                            [WARNINGS]
 |
 | ⚠ gh60/satan: RGBLIGHT_ANIMATIONS in config.h is deprecated and will be removed at a later date
 |
Generating: .build/obj_gh60_satan/src/default_keyboard.h                                            [WARNINGS]
 |
 | ⚠ gh60/satan: RGBLIGHT_ANIMATIONS in config.h is deprecated and will be removed at a later date
 |
Compiling: keyboards/gh60/satan/satan.c                                                             [OK]
Compiling: .build/obj_gh60_satan/src/default_keyboard.c                                             [OK]
Compiling: quantum/keymap_introspection.c                                                          In file included from quantum/keymap_introspection.c:5:
./keyboards/gh60/satan/keymaps/hhkb_7u/keymap.c:28:16: error: implicit declaration of function 'LAYOUT_60_hhkb'; did you mean 'LAYOUT_60_ansi'? [-Werror=implicit-function-declaration]
   [_DEFAULT] = LAYOUT_60_hhkb( /* Basic QWERTY */
                ^~~~~~~~~~~~~~
                LAYOUT_60_ansi
./keyboards/gh60/satan/keymaps/hhkb_7u/keymap.c:28:16: error: initializer element is not constant
./keyboards/gh60/satan/keymaps/hhkb_7u/keymap.c:28:16: note: (near initialization for 'keymaps[0][0][0]')
In file included from quantum/keymap_introspection.c:5:
./keyboards/gh60/satan/keymaps/hhkb_7u/keymap.c:49:11: error: initializer element is not constant
   [_FN] = LAYOUT_60_hhkb( /* Layer 1 */
           ^~~~~~~~~~~~~~
./keyboards/gh60/satan/keymaps/hhkb_7u/keymap.c:49:11: note: (near initialization for 'keymaps[1][0][0]')
cc1: all warnings being treated as errors
 [ERRORS]
 |
 |
 |
gmake[1]: *** [builddefs/common_rules.mk:359: .build/obj_gh60_satan_hhkb_7u/quantum/keymap_introspection.o] Error 1
gmake: *** [Makefile:414: gh60/satan:hhkb_7u] Error 1
Make finished with errors

System Information

Keyboard: GH60
Revision (if applicable): satan
Operating system: Mac
qmk doctor output:

❯ qmk doctor
Ψ QMK Doctor is checking your environment.
Ψ CLI version: 1.1.1
Ψ QMK home: /Users/tolau/Workspace/qmk_firmware
Ψ Detected macOS 12.5.1 (Apple Silicon).
Ψ Git branch: master
Ψ Repo version: 0.6.49
Ψ - Latest master: 2022-09-02 09:10:05 -0700 (5d932e2612) -- [Keymap] Fixing location of my Keymap for the Gentleman65 (#18246)
Ψ - Latest upstream/master: 2022-09-02 09:10:05 -0700 (5d932e2612) -- [Keymap] Fixing location of my Keymap for the Gentleman65 (#18246)
Ψ - Latest upstream/develop: None
Ψ - Common ancestor with upstream/master: 2022-09-02 09:10:05 -0700 (5d932e2612) -- [Keymap] Fixing location of my Keymap for the Gentleman65 (#18246)
Ψ - Common ancestor with upstream/develop: None
Ψ CLI installed in virtualenv.
Ψ All dependencies are installed.
Ψ Found arm-none-eabi-gcc version 8.5.0
Ψ Found avr-gcc version 8.5.0
Ψ Found avrdude version 7.0
Ψ Found dfu-util version 0.11
Ψ Found dfu-programmer version 0.7.2
Ψ Submodules are up to date.
Ψ Submodule status:
Ψ - lib/chibios: 2022-06-11 09:09:45 +0000 --  (f836d24b0)
Ψ - lib/chibios-contrib: 2022-07-27 10:46:15 +0200 --  (d03aa9cc)
Ψ - lib/googletest: 2021-06-11 06:37:43 -0700 --  (e2239ee6)
Ψ - lib/lufa: 2022-08-26 12:09:55 +1000 --  (549b97320)
Ψ - lib/pico-sdk: 2022-05-17 19:19:01 +0200 --  (07edde8)
Ψ - lib/printf: 2022-06-29 23:59:58 +0300 --  (c2e3b4e)
Ψ - lib/vusb: 2022-06-13 09:18:17 +1000 --  (819dbc1)
Ψ QMK is ready to go

Any keyboard related software installed?

  • AutoHotKey (Windows)
  • Karabiner (macOS)
  • Other:

Additional Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants