qmk_firmware
qmk_firmware copied to clipboard
Compilation error on MacBook Pro (13-inch, M2, 2022)
Hi, I am running:
qmk compile -kb input_club/ergodox_infinity -km samsons_layout
where samsons_layout is my own layout that I was able to build with a docker image.
Now I do not have this option and I am trying to build it directly on my macOS 12.4 (M2 chip)
I am getting: `Ψ Compiling keymap with gmake --jobs=1 input_club/ergodox_infinity:samsons_layout
QMK Firmware 0.17.5 WARNING: Some git submodules are out of date or modified. Please consider running make git-submodule.
Making input_club/ergodox_infinity with keymap samsons_layout
arm-none-eabi-gcc (GCC) 12.1.0 Copyright (C) 2022 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: layouts/community/ergodox/samsons_layout/keymap.c [OK] Compiling: quantum/quantum.c [OK] Compiling: quantum/send_string.c [OK] Compiling: quantum/bitwise.c [OK] Compiling: quantum/led.c [OK] Compiling: quantum/action.c [OK] Compiling: quantum/action_layer.c [OK] Compiling: quantum/action_tapping.c [OK] Compiling: quantum/action_util.c [OK] Compiling: quantum/eeconfig.c [OK] Compiling: quantum/keyboard.c [OK] Compiling: quantum/keymap_common.c [OK] Compiling: quantum/keycode_config.c [OK] Compiling: quantum/sync_timer.c [OK] Compiling: quantum/logging/debug.c [OK] Compiling: quantum/logging/sendchar.c [OK] Compiling: quantum/logging/print.c [OK] Compiling: quantum/bootmagic/magic.c [OK] Compiling: quantum/matrix_common.c [OK] Compiling: quantum/matrix.c [OK] Compiling: quantum/debounce/sym_defer_g.c [OK] Compiling: quantum/split_common/split_util.c [OK] Compiling: quantum/split_common/transport.c [OK] Compiling: quantum/split_common/transactions.c [OK] Compiling: quantum/main.c [OK] Compiling: lib/printf/printf.c [OK] Compiling: quantum/mousekey.c [OK] Compiling: platforms/chibios/eeprom_teensy.c [OK] Compiling: quantum/process_keycode/process_backlight.c [OK] Compiling: quantum/led_matrix/led_matrix.c [OK] Compiling: quantum/led_matrix/led_matrix_drivers.c [OK] Compiling: lib/lib8tion/lib8tion.c [OK] Compiling: drivers/led/issi/is31fl3731-simple.c [OK] Compiling: platforms/chibios/sleep_led.c [OK] Compiling: quantum/led_tables.c [OK] Compiling: quantum/crc.c [OK] Compiling: drivers/lcd/st7565.c [OK] Compiling: quantum/process_keycode/process_unicode.c [OK] Compiling: quantum/process_keycode/process_unicode_common.c [OK] Compiling: quantum/utf8.c [OK] Compiling: quantum/process_keycode/process_magic.c [OK] Compiling: quantum/command.c [OK] Compiling: quantum/process_keycode/process_grave_esc.c [OK] Compiling: quantum/process_keycode/process_space_cadet.c [OK] Compiling: platforms/chibios/drivers/i2c_master.c [OK] Archiving: .build/obj_input_club_ergodox_infinity_samsons_layout/i2c_master.o [OK] Compiling: platforms/chibios/drivers/serial_usart.c platforms/chibios/drivers/serial_usart.c: In function ‘usart_init’: platforms/chibios/drivers/serial_usart.c:140:17: note: ‘#pragma message: usart_init: MCU Familiy not supported by default, please supply your own init code by implementing usart_init() in your keyboard files.’ 140 | # pragma message "usart_init: MCU Familiy not supported by default, please supply your own init code by implementing usart_init() in your keyboard files." | ^~~~~~~ [OK] Archiving: .build/obj_input_club_ergodox_infinity_samsons_layout/serial_usart.o [OK] Compiling: platforms/chibios/drivers/spi_master.c [OK] Archiving: .build/obj_input_club_ergodox_infinity_samsons_layout/spi_master.o [OK] Assembling: lib/chibios/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S [OK] Assembling: lib/chibios/os/common/startup/ARMCMx/compilers/GCC/vectors.S [OK] Assembling: lib/chibios/os/common/ports/ARMv7-M/compilers/GCC/chcoreasm.S [OK] Compiling: tmk_core/protocol/host.c [OK] Compiling: tmk_core/protocol/report.c [OK] Compiling: tmk_core/protocol/usb_device_state.c [OK] Compiling: tmk_core/protocol/usb_util.c [OK] Compiling: platforms/suspend.c [OK] Compiling: platforms/chibios/hardware_id.c [OK] Compiling: platforms/chibios/platform.c [OK] Compiling: platforms/chibios/suspend.c [OK] Compiling: platforms/chibios/timer.c [OK] Compiling: platforms/chibios/bootloaders/kiibohd.c [OK] Compiling: tmk_core/protocol/chibios/usb_main.c [OK] Compiling: tmk_core/protocol/chibios/chibios.c [OK] Compiling: tmk_core/protocol/usb_descriptor.c [OK] Compiling: tmk_core/protocol/chibios/usb_driver.c [OK] Compiling: tmk_core/protocol/chibios/usb_util.c [OK] Compiling: lib/chibios/os/oslib/src/chmboxes.c [OK] Compiling: lib/chibios/os/oslib/src/chmemcore.c [OK] Compiling: lib/chibios/os/oslib/src/chmemheaps.c [OK] Compiling: lib/chibios/os/oslib/src/chmempools.c [OK] Compiling: lib/chibios/os/oslib/src/chpipes.c [OK] Compiling: lib/chibios/os/oslib/src/chobjcaches.c [OK] Compiling: lib/chibios/os/oslib/src/chdelegates.c [OK] Compiling: lib/chibios/os/oslib/src/chfactory.c [OK] Compiling: lib/chibios/os/common/startup/ARMCMx/compilers/GCC/crt1.c [OK] Compiling: lib/chibios/os/rt/src/chsys.c [OK] Compiling: lib/chibios/os/rt/src/chrfcu.c [OK] Compiling: lib/chibios/os/rt/src/chdebug.c [OK] Compiling: lib/chibios/os/rt/src/chtrace.c [OK] Compiling: lib/chibios/os/rt/src/chvt.c [OK] Compiling: lib/chibios/os/rt/src/chschd.c [OK] Compiling: lib/chibios/os/rt/src/chinstances.c [OK] Compiling: lib/chibios/os/rt/src/chthreads.c [OK] Compiling: lib/chibios/os/rt/src/chtm.c [OK] Compiling: lib/chibios/os/rt/src/chstats.c [OK] Compiling: lib/chibios/os/rt/src/chregistry.c [OK] Compiling: lib/chibios/os/rt/src/chsem.c [OK] Compiling: lib/chibios/os/rt/src/chmtx.c [OK] Compiling: lib/chibios/os/rt/src/chcond.c [OK] Compiling: lib/chibios/os/rt/src/chevents.c [OK] Compiling: lib/chibios/os/rt/src/chmsg.c [OK] Compiling: lib/chibios/os/rt/src/chdynamic.c [OK] Compiling: lib/chibios/os/common/ports/ARMv7-M/chcore.c [OK] Compiling: lib/chibios/os/hal/osal/rt-nil/osal.c [OK] Compiling: lib/chibios/os/hal/src/hal.c [OK] Compiling: lib/chibios/os/hal/src/hal_st.c [OK] Compiling: lib/chibios/os/hal/src/hal_buffers.c [OK] Compiling: lib/chibios/os/hal/src/hal_queues.c [OK] Compiling: lib/chibios/os/hal/src/hal_flash.c [OK] Compiling: lib/chibios/os/hal/src/hal_mmcsd.c [OK] Compiling: lib/chibios/os/hal/src/hal_adc.c [OK] Compiling: lib/chibios/os/hal/src/hal_can.c [OK] Compiling: lib/chibios/os/hal/src/hal_crypto.c [OK] Compiling: lib/chibios/os/hal/src/hal_dac.c [OK] Compiling: lib/chibios/os/hal/src/hal_efl.c [OK] Compiling: lib/chibios/os/hal/src/hal_gpt.c [OK] Compiling: lib/chibios/os/hal/src/hal_i2c.c [OK] Compiling: lib/chibios/os/hal/src/hal_i2s.c [OK] Compiling: lib/chibios/os/hal/src/hal_icu.c [OK] Compiling: lib/chibios/os/hal/src/hal_mac.c [OK] .g/COMMIT_EDITMSG+ buffers Compiling: lib/chibios/os/hal/src/hal_mmc_spi.c [OK] Compiling: lib/chibios/os/hal/src/hal_pal.c [OK] Compiling: lib/chibios/os/hal/src/hal_pwm.c [OK] Compiling: lib/chibios/os/hal/src/hal_rtc.c [OK] Compiling: lib/chibios/os/hal/src/hal_sdc.c [OK] Compiling: lib/chibios/os/hal/src/hal_serial.c [OK] Compiling: lib/chibios/os/hal/src/hal_serial_usb.c [OK] Compiling: lib/chibios/os/hal/src/hal_sio.c [OK] Compiling: lib/chibios/os/hal/src/hal_spi.c [OK] Compiling: lib/chibios/os/hal/src/hal_trng.c [OK] Compiling: lib/chibios/os/hal/src/hal_uart.c [OK] Compiling: lib/chibios/os/hal/src/hal_usb.c [OK] Compiling: lib/chibios/os/hal/src/hal_wdg.c [OK] Compiling: lib/chibios/os/hal/src/hal_wspi.c [OK] Compiling: platforms/chibios/boards/IC_TEENSY_3_1/board/board.c [OK] Compiling: lib/chibios/os/hal/lib/streams/chprintf.c [OK] Compiling: lib/chibios/os/hal/lib/streams/chscanf.c [OK] Compiling: lib/chibios/os/hal/lib/streams/memstreams.c [OK] Compiling: lib/chibios/os/hal/lib/streams/nullstreams.c [OK] Compiling: lib/chibios/os/hal/lib/streams/bufstreams.c [OK] Compiling: lib/chibios/os/various/syscalls.c [OK] Compiling: platforms/chibios/syscall-fallbacks.c [OK] Compiling: platforms/chibios/wait.c [OK] Compiling: platforms/chibios/synchronization_util.c [OK] Compiling: lib/chibios/os/hal/ports/common/ARMCMx/nvic.c [OK] Compiling: lib/chibios-contrib/os/hal/ports/KINETIS/K20x/hal_lld.c [OK] Compiling: lib/chibios-contrib/os/hal/ports/KINETIS/LLD/PITv1/hal_st_lld.c [OK] Compiling: lib/chibios-contrib/os/hal/ports/KINETIS/LLD/GPIOv1/hal_pal_lld.c [OK] Compiling: lib/chibios-contrib/os/hal/ports/KINETIS/LLD/UARTv1/hal_serial_lld.c [OK] Compiling: lib/chibios-contrib/os/hal/ports/KINETIS/LLD/SPIv1/hal_spi_lld.c [OK] Compiling: lib/chibios-contrib/os/hal/ports/KINETIS/LLD/I2Cv1/hal_i2c_lld.c [OK] Compiling: lib/chibios-contrib/os/hal/ports/KINETIS/LLD/PORTv1/hal_ext_lld.c [OK] Compiling: lib/chibios-contrib/os/hal/ports/KINETIS/LLD/ADCv1/hal_adc_lld.c [OK] Compiling: lib/chibios-contrib/os/hal/ports/KINETIS/LLD/PITv1/hal_gpt_lld.c [OK] Compiling: lib/chibios-contrib/os/hal/ports/KINETIS/LLD/FTMv1/hal_pwm_lld.c [OK] Compiling: lib/chibios-contrib/os/hal/ports/KINETIS/LLD/USBHSv1/hal_usb_lld.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_community.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_fsmc.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_nand.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_sram.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_sdram.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_onewire.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_eicu.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_crc.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_rng.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_usbh.c [OK] Compiling: lib/chibios-contrib/os/hal/src/usbh/hal_usbh_debug.c [OK] Compiling: lib/chibios-contrib/os/hal/src/usbh/hal_usbh_desciter.c [OK] Compiling: lib/chibios-contrib/os/hal/src/usbh/hal_usbh_hub.c [OK] Compiling: lib/chibios-contrib/os/hal/src/usbh/hal_usbh_msd.c [OK] Compiling: lib/chibios-contrib/os/hal/src/usbh/hal_usbh_ftdi.c [OK] Compiling: lib/chibios-contrib/os/hal/src/usbh/hal_usbh_aoa.c [OK] Compiling: lib/chibios-contrib/os/hal/src/usbh/hal_usbh_hid.c [OK] Compiling: lib/chibios-contrib/os/hal/src/usbh/hal_usbh_uvc.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_ee24xx.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_ee25xx.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_eeprom.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_timcap.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_qei.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_usb_hid.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_usb_msd.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_comp.c [OK] Compiling: lib/chibios-contrib/os/hal/src/hal_opamp.c [OK] Linking: .build/input_club_ergodox_infinity_samsons_layout.elf [ERRORS] | | /opt/local/lib/gcc/arm-none-eabi/12.1.0/../../../../arm-none-eabi/bin/ld: cannot find -lg_nano | /opt/local/lib/gcc/arm-none-eabi/12.1.0/../../../../arm-none-eabi/bin/ld: cannot find -lc_nano | collect2: error: ld returned 1 exit status | gmake[1]: *** [builddefs/common_rules.mk:364: .build/input_club_ergodox_infinity_samsons_layout.elf] Error 1 gmake: *** [Makefile:413: input_club/ergodox_infinity:samsons_layout] Error 1 Make finished with errors `
Any help will be appreciated .