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] Can't compile lily58 keyboard for rp2040 #22291

Closed
1 of 2 tasks
jittapont opened this issue Oct 18, 2023 · 4 comments
Closed
1 of 2 tasks

[Bug] Can't compile lily58 keyboard for rp2040 #22291

jittapont opened this issue Oct 18, 2023 · 4 comments

Comments

@jittapont
Copy link

Describe the Bug

I tried to run command to compile the u2f files for my lily58 keyboard qmk compile -kb lily58/rev1 -km via -e CONVERT_TO=promicro_rp2040 but got the compilation errors

Copyright (C) 2023 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: .build/obj_lily58_rev1_via/src/default_keyboard.c                                       In file included from ./lib/pico-sdk/src/common/pico_base/include/pico/types.h:12,
                 from ./lib/pico-sdk/src/common/pico_base/include/pico.h:24,
                 from ./lib/pico-sdk/src/rp2_common/hardware_flash/include/hardware/flash.h:10,
                 from ./platforms/chibios/drivers/wear_leveling/wear_leveling_rp2040_flash_config.h:6,
                 from <command-line>:
./lib/pico-sdk/src/common/pico_base/include/pico/assert.h:18:10: fatal error: assert.h: No such file or directory
   18 | #include <assert.h>
      |          ^~~~~~~~~~
compilation terminated.
 [ERRORS]
 |
 |
 |
gmake[1]: *** [builddefs/common_rules.mk:361: .build/obj_lily58_rev1_via/.build/obj_lily58_rev1_via/src/default_keyboard.o] Error 1
gmake: *** [Makefile:392: lily58/rev1:via] Error 1
Make finished with errors

Keyboard Used

lily58/rev1

Link to product page (if applicable)

No response

Operating System

MacOS

qmk doctor Output

Ψ QMK Doctor is checking your environment.
Ψ CLI version: 1.1.2
Ψ QMK home: /Users/jittapon/qmk_firmware
Ψ Detected macOS 11.4 (Intel).
Ψ Git branch: master
Ψ Repo version: 0.22.12
⚠ Git has unstashed/uncommitted changes.
Ψ - Latest master: 2023-10-17 09:43:50 +1100 (f6c70c40af) -- Allow for disabling of parallel processing of qmk find and `qmk mass-compile`. (#22160)
Ψ - Latest upstream/master: 2023-10-17 09:43:50 +1100 (f6c70c40af) -- Allow for disabling of parallel processing of qmk find and `qmk mass-compile`. (#22160)
Ψ - Latest upstream/develop: 2023-10-16 22:44:27 +0000 (20cefe254d) -- Merge remote-tracking branch 'origin/master' into develop
Ψ - Common ancestor with upstream/master: 2023-10-17 09:43:50 +1100 (f6c70c40af) -- Allow for disabling of parallel processing of qmk find and `qmk mass-compile`. (#22160)
Ψ - Common ancestor with upstream/develop: 2023-10-17 09:43:50 +1100 (f6c70c40af) -- Allow for disabling of parallel processing of qmk find and `qmk mass-compile`. (#22160)
Ψ CLI installed in virtualenv.
Ψ All dependencies are installed.
Ψ Found arm-none-eabi-gcc version 13.2.0
Ψ Found avr-gcc version 9.4.0
⚠ We do not recommend avr-gcc newer than 8. Downgrading to 8.x is recommended.
Ψ Found avrdude version 7.2
Ψ Found dfu-programmer version 1.1.0
Ψ Found dfu-util version 0.11
Ψ Submodules are up to date.
Ψ Submodule status:
Ψ - lib/chibios: 2023-04-15 13:48:04 +0000 --  (11edb1610)
Ψ - lib/chibios-contrib: 2023-07-17 11:39:05 +0200 --  (da78eb37)
Ψ - lib/googletest: 2021-06-11 06:37:43 -0700 --  (e2239ee6)
Ψ - lib/lufa: 2022-08-26 12:09:55 +1000 --  (549b97320)
Ψ - lib/vusb: 2022-06-13 09:18:17 +1000 --  (819dbc1)
Ψ - lib/printf: 2022-06-29 23:59:58 +0300 --  (c2e3b4e)
Ψ - lib/pico-sdk: 2023-02-12 20:19:37 +0100 --  (a3398d8)
Ψ - lib/lvgl: 2022-04-11 04:44:53 -0600 --  (e19410f8)
Ψ QMK is ready to go, but minor problems were found

Is AutoHotKey / Karabiner installed

  • AutoHotKey (Windows)
  • Karabiner (macOS)

Other keyboard-related software installed

No response

Additional Context

No response

@elpekenin
Copy link
Contributor

This is apparently due to a missing/incomplete installation of the compiler toolchain, a user reported this on discord as getting fixed after installing "arm-none-eabi-newlib" package. Beware, name could be different on other package manager/distros

@fauxpark
Copy link
Member

Above is incorrect, you have the wrong arm-none-eabi toolchain. Please uninstall it and reinstall qmk/qmk/qmk in Homebrew.

@jittapont
Copy link
Author

Thanks a lot 🙇

@malparty
Copy link

malparty commented Mar 8, 2024

Adding a note in case a simple uninstall / reinstall do not work for you:

brew uninstall qmk/qmk/qmk, then brew uninstall arm-none-eabi-gcc.
Then brew install qmk/qmk/qmk flow again

Source: https://www.reddit.com/r/olkb/comments/179w4us/need_some_help_about_compiling_the_lily58/

@qmk qmk deleted a comment from wwalker Aug 15, 2024
@qmk qmk deleted a comment from wwalker Aug 15, 2024
@qmk qmk locked as resolved and limited conversation to collaborators Aug 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants