GongYiLiao / qmk_AdaFruitRp2040USBH

QMK firmware for using Adafruit Rp2040 USB Host as an USB-to-USB converter
2 stars 2 forks source link

Problem with make #1

Open whyaaronbailey opened 5 months ago

whyaaronbailey commented 5 months ago

I'm getting the following error when I attempt to make:

make converter/adafruit_rp2040_usbh:ansi:uf2
QMK Firmware 0.24.8
Making converter/adafruit_rp2040_usbh with keymap ansi and target uf2

arm-none-eabi-gcc (Homebrew ARM GCC 8.5.0_2) 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.

Generating: .build/obj_converter_adafruit_rp2040_usbh_ansi/src/info_config.h                        [OK]
Generating: .build/obj_converter_adafruit_rp2040_usbh_ansi/src/default_keyboard.h                   [OK]
Generating: .build/obj_converter_adafruit_rp2040_usbh_ansi/src/default_keyboard.c                   [OK]
Compiling: keyboards/converter/adafruit_rp2040_usbh/matrix.c                                        [OK]
Compiling: keyboards/converter/adafruit_rp2040_usbh/c1_main.c                                       [OK]
Compiling: keyboards/converter/adafruit_rp2040_usbh/c1_usbh.c                                       [OK]
Compiling: keyboards/converter/adafruit_rp2040_usbh/tusb_os_custom.c                                [OK]
Compiling: lib/Pico-PIO-USB/src/pio_usb.c                                                           [OK]
Compiling: lib/Pico-PIO-USB/src/pio_usb_host.c                                                      [OK]
Compiling: lib/Pico-PIO-USB/src/usb_crc.c                                                           [OK]
Compiling: lib/tinyusb/src/tusb.c                                                                  lib/tinyusb/src/tusb.c: In function 'tu_edpt_stream_deinit':
lib/tinyusb/src/tusb.c:237:23: error: implicit declaration of function 'osal_mutex_delete'; did you mean 'osal_mutex_create'? [-Werror=implicit-function-declaration]
   if (s->ff.mutex_wr) osal_mutex_delete(s->ff.mutex_wr);
                       ^~~~~~~~~~~~~~~~~
                       osal_mutex_create
cc1: all warnings being treated as errors
 [ERRORS]
 | 
 | 
 | 
make[1]: *** [.build/obj_converter_adafruit_rp2040_usbh_ansi/lib/tinyusb/src/tusb.o] Error 1
make: *** [converter/adafruit_rp2040_usbh:ansi:uf2] Error 1
GongYiLiao commented 4 months ago

It seems caused by tinyusb's previous non-production code. The last tinyusb's master branch code as of 2024-6-9 05:00UTC works on my setup, can you please test this again on your setup?