-
Notifications
You must be signed in to change notification settings - Fork 90
Description
Describe the bug
python3 make.py rp2 on Fedora 43 does not compile
Expected behavior
The source to compile
Images
james@fedora:~/Downloads/GameMachine/lvgl_micropython$ python3 make.py rp2
make: Entering directory '/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2'
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
rm -f -rf build-RPI_PICO
make: Leaving directory '/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2'
Compiling mpy-cross....
make: Entering directory '/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/mpy-cross'
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
make: Leaving directory '/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/mpy-cross'
Generating build files....
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/py_api_drivers/frozen/display/display_driver_framework.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/py_api_drivers/frozen/display/rgb_display_framework.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/py_api_drivers/frozen/indev/touch_calibration/touch_cal_data.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/py_api_drivers/frozen/indev/touch_calibration/touch_calibrate.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/py_api_drivers/frozen/indev/_indev_base.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/py_api_drivers/frozen/indev/button_framework.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/py_api_drivers/frozen/indev/encoder_framework.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/py_api_drivers/frozen/indev/keypad_framework.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/py_api_drivers/frozen/indev/pointer_framework.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/py_api_drivers/fs_driver.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/py_api_drivers/frozen/io_expander/io_expander_framework.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/common_api_drivers/frozen/other/i2c.py
/home/james/Downloads/GameMachine/lvgl_micropython/api_drivers/common_api_drivers/frozen/other/task_handler.py
Compiling....
make: Entering directory '/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2'
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
PICO_SDK_PATH is /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/lib/pico-sdk
Target board (PICO_BOARD) is 'pico'.
Using board configuration from /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/lib/pico-sdk/src/boards/include/boards/pico.h
Pico Platform (PICO_PLATFORM) is 'rp2040'.
Defaulting compiler (PICO_COMPILER) to 'pico_arm_cortex_m0plus_gcc' since not specified.
Configuring toolchain based on PICO_COMPILER 'pico_arm_cortex_m0plus_gcc'
Defaulting PICO_GCC_TRIPLE to 'arm-none-eabi'
-- Found assembler: /usr/bin/arm-none-eabi-gcc
Build type is MinSizeRel
-- Found Python3: /usr/bin/python3.14 (found version "3.14.0") found components: Interpreter
TinyUSB available at /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/lib/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB.
BTstack available at /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/lib/btstack
lwIP available at /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/lib/lwip
Including User C Module(s) from ../../../../ext_mod/micropython.cmake
Found User C Module(s): usermod_lcd_bus, usermod_lvgl, lvgl_interface, usermod_lcd_utils
CMake Warning at /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/lib/pico-sdk/tools/Findpicotool.cmake:30 (message):
No installed picotool with version 2.1.1 found - building from source
It is recommended to build and install picotool separately, or to set
PICOTOOL_FETCH_FROM_GIT_PATH to a common directory for all your SDK
projects
Call Stack (most recent call first):
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/lib/pico-sdk/tools/CMakeLists.txt:138 (find_package)
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/lib/pico-sdk/tools/CMakeLists.txt:493 (pico_init_picotool)
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/lib/pico-sdk/src/cmake/on_device.cmake:56 (picotool_postprocess_binary)
CMakeLists.txt:625 (pico_add_extra_outputs)
Downloading Picotool
-- Generating done (0.3s)
-- Build files have been written to: /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/build-RPI_PICO
make[1]: Entering directory '/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/build-RPI_PICO'
[ 1%] Building ASM object pico-sdk/src/rp2040/boot_stage2/CMakeFiles/bs2_default_library.dir/bs2_default_padded_checksummed.S.o
GEN /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/build-RPI_PICO/genhdr/mpversion.h
[ 1%] Built target BUILD_VERSION_HEADER
Not searching for unused variables given on the command line.
-- Detecting CXX compile features - done
-- Using the single-header code from /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/build-RPI_PICO/_deps/picotool-src/lib/nlohmann_json/single_include/
-- Configuring done (0.7s)
.//home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/build-RPI_PICO/_deps/picotool/
lib/mbedtls submodule needs to be initialized for bintool hashing/signing
mbedtls not found - no signing/hashing support will be built
PICOTOOL_NO_LIBUSB is set - no USB support will be built
-- Generating done (0.0s)
-- Build files have been written to: /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/build-RPI_PICO/_deps/picotool-build
[ 2%] Generating genhdr/root_pointers.collected
Root pointer registrations updated
[ 2%] Generating genhdr/root_pointers.h
QSTR updated
MPY task_handler.py
GEN /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/build-RPI_PICO/frozen_content.c
[100%] Built target picotool
Install the project...
[ 2%] Performing test step for 'picotoolBuild'
picotool v2.1.1 (Linux, GNU-15.2.1, Release)
[ 3%] Generating genhdr/moduledefs.collected
Module registrations updated
Compressed data updated
[ 28%] Building C object CMakeFiles/firmware.dir/main.c.o
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:110:10: error: 'mp_machine_hw_spi_bus_obj_t' {aka 'struct _mp_machine_hw_spi_bus_obj_t'} has no member named 'mosi'
110 | .mosi = MP_OBJ_NULL,
| ^~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:111:10: error: 'mp_machine_hw_spi_bus_obj_t' {aka 'struct _mp_machine_hw_spi_bus_obj_t'} has no member named 'miso'
111 | .miso = MP_OBJ_NULL,
| ^~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:112:10: error: 'mp_machine_hw_spi_bus_obj_t' {aka 'struct _mp_machine_hw_spi_bus_obj_t'} has no member named 'active_devices'
112 | .active_devices = 0,
| ^~~~~~~~~~~~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:119:10: error: 'mp_machine_hw_spi_bus_obj_t' {aka 'struct _mp_machine_hw_spi_bus_obj_t'} has no member named 'mosi'
119 | .mosi = MP_OBJ_NULL,
| ^~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:120:10: error: 'mp_machine_hw_spi_bus_obj_t' {aka 'struct _mp_machine_hw_spi_bus_obj_t'} has no member named 'miso'
120 | .miso = MP_OBJ_NULL,
| ^~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:121:10: error: 'mp_machine_hw_spi_bus_obj_t' {aka 'struct _mp_machine_hw_spi_bus_obj_t'} has no member named 'active_devices'
121 | .active_devices = 0,
| ^~~~~~~~~~~~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c: In function 'machine_spi_make_new':
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:154:5: error: unknown type name 'machine_hw_spi_obj_t'; did you mean 'machine_wdt_obj_t'?
154 | machine_hw_spi_obj_t *self = m_new_obj(machine_hw_spi_obj_t);
| ^~~~~~~~~~~~~~~~~~~~
| machine_wdt_obj_t
In file included from /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/py/mpstate.h:33,
from /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/py/runtime.h:29,
from /home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:5:
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:154:44: error: 'machine_hw_spi_obj_t' undeclared (first use in this function); did you mean 'machine_wdt_obj_t'?
154 | machine_hw_spi_obj_t *self = m_new_obj(machine_hw_spi_obj_t);
| ^~~~~~~~~~~~~~~~~~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/py/misc.h:79:28: note: in definition of macro 'm_new'
79 | #define m_new(type, num) ((type *)(m_malloc(sizeof(type) * (num))))
| ^~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:154:34: note: in expansion of macro 'm_new_obj'
154 | machine_hw_spi_obj_t *self = m_new_obj(machine_hw_spi_obj_t);
| ^~~~~~~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:154:44: note: each undeclared identifier is reported only once for each function it appears in
154 | machine_hw_spi_obj_t *self = m_new_obj(machine_hw_spi_obj_t);
| ^~~~~~~~~~~~~~~~~~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/py/misc.h:79:28: note: in definition of macro 'm_new'
79 | #define m_new(type, num) ((type *)(m_malloc(sizeof(type) * (num))))
| ^~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:154:34: note: in expansion of macro 'm_new_obj'
154 | machine_hw_spi_obj_t *self = m_new_obj(machine_hw_spi_obj_t);
| ^~~~~~~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/py/misc.h:79:34: error: expected expression before ')' token
79 | #define m_new(type, num) ((type *)(m_malloc(sizeof(type) * (num))))
| ^
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/py/misc.h:82:26: note: in expansion of macro 'm_new'
82 | #define m_new_obj(type) (m_new(type, 1))
| ^~~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:154:34: note: in expansion of macro 'm_new_obj'
154 | machine_hw_spi_obj_t *self = m_new_obj(machine_hw_spi_obj_t);
| ^~~~~~~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:155:9: error: request for member 'base' in something not a structure or union
155 | self->base.type = &machine_spi_type;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:161:20: error: 'mp_machine_hw_spi_bus_obj_t' {aka 'struct _mp_machine_hw_spi_bus_obj_t'} has no member named 'mosi'
161 | spi_bus->mosi = mp_obj_new_int(MICROPY_HW_SPI0_MOSI);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:162:20: error: 'mp_machine_hw_spi_bus_obj_t' {aka 'struct _mp_machine_hw_spi_bus_obj_t'} has no member named 'miso'
162 | spi_bus->miso = mp_obj_new_int(MICROPY_HW_SPI0_MISO);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:165:20: error: 'mp_machine_hw_spi_bus_obj_t' {aka 'struct _mp_machine_hw_spi_bus_obj_t'} has no member named 'mosi'
165 | spi_bus->mosi = mp_obj_new_int(MICROPY_HW_SPI1_MOSI);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:166:20: error: 'mp_machine_hw_spi_bus_obj_t' {aka 'struct _mp_machine_hw_spi_bus_obj_t'} has no member named 'miso'
166 | spi_bus->miso = mp_obj_new_int(MICROPY_HW_SPI1_MISO);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:170:9: error: request for member 'spi_bus' in something not a structure or union
170 | self->spi_bus = spi_bus;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:171:9: error: request for member 'baudrate' in something not a structure or union
171 | self->baudrate = (uint32_t)args[ARG_baudrate].u_int;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:172:9: error: request for member 'bits' in something not a structure or union
172 | self->bits = (uint8_t)args[ARG_bits].u_int;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:173:9: error: request for member 'polarity' in something not a structure or union
173 | self->polarity = (uint8_t)args[ARG_polarity].u_int;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:174:9: error: request for member 'phase' in something not a structure or union
174 | self->phase = (uint8_t)args[ARG_phase].u_int;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:175:9: error: request for member 'firstbit' in something not a structure or union
175 | self->firstbit = (uint8_t)args[ARG_firstbit].u_int;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:177:13: error: request for member 'firstbit' in something not a structure or union
177 | if (self->firstbit == SPI_LSB_FIRST) {
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:182:13: error: request for member 'spi_bus' in something not a structure or union
182 | if (self->spi_bus->state == MP_SPI_STATE_STOPPED) {
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:185:61: error: request for member 'spi_bus' in something not a structure or union
185 | spi_inst_t *const spi_inst = (spi_inst_t *const)self->spi_bus->user_data;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:190:35: error: request for member 'spi_bus' in something not a structure or union
190 | if (!IS_VALID_SCK(self->spi_bus->host, sck)) {
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:66:61: note: in definition of macro 'IS_VALID_PERIPH'
66 | #define IS_VALID_PERIPH(spi, pin) ((((pin) & 8) >> 3) == (spi))
| ^~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:190:18: note: in expansion of macro 'IS_VALID_SCK'
190 | if (!IS_VALID_SCK(self->spi_bus->host, sck)) {
| ^~~~~~~~~~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:194:17: error: request for member 'spi_bus' in something not a structure or union
194 | self->spi_bus->sck = args[ARG_sck].u_obj;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:200:36: error: request for member 'spi_bus' in something not a structure or union
200 | if (!IS_VALID_MOSI(self->spi_bus->host, mosi)) {
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:66:61: note: in definition of macro 'IS_VALID_PERIPH'
66 | #define IS_VALID_PERIPH(spi, pin) ((((pin) & 8) >> 3) == (spi))
| ^~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:200:18: note: in expansion of macro 'IS_VALID_MOSI'
200 | if (!IS_VALID_MOSI(self->spi_bus->host, mosi)) {
| ^~~~~~~~~~~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:203:17: error: request for member 'spi_bus' in something not a structure or union
203 | self->spi_bus->mosi = args[ARG_mosi].u_obj;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:209:36: error: request for member 'spi_bus' in something not a structure or union
209 | if (!IS_VALID_MISO(self->spi_bus->host, miso)) {
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:66:61: note: in definition of macro 'IS_VALID_PERIPH'
66 | #define IS_VALID_PERIPH(spi, pin) ((((pin) & 8) >> 3) == (spi))
| ^~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:209:18: note: in expansion of macro 'IS_VALID_MISO'
209 | if (!IS_VALID_MISO(self->spi_bus->host, miso)) {
| ^~~~~~~~~~~~~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:212:17: error: request for member 'spi_bus' in something not a structure or union
212 | self->spi_bus->miso = args[ARG_miso].u_obj;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:215:32: error: request for member 'baudrate' in something not a structure or union
215 | spi_init(spi_inst, self->baudrate);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:216:50: error: request for member 'spi_bus' in something not a structure or union
216 | gpio_set_function(mp_hal_get_pin_obj(self->spi_bus->sck), GPIO_FUNC_SPI);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:217:50: error: request for member 'spi_bus' in something not a structure or union
217 | gpio_set_function(mp_hal_get_pin_obj(self->spi_bus->miso), GPIO_FUNC_SPI);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:218:50: error: request for member 'spi_bus' in something not a structure or union
218 | gpio_set_function(mp_hal_get_pin_obj(self->spi_bus->mosi), GPIO_FUNC_SPI);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:220:13: error: request for member 'spi_bus' in something not a structure or union
220 | self->spi_bus->state = MP_SPI_STATE_STARTED;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:223:9: error: request for member 'cs' in something not a structure or union
223 | self->cs = args[ARG_cs].u_obj;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:225:50: error: request for member 'cs' in something not a structure or union
225 | mp_hal_pin_output(mp_hal_get_pin_obj(self->cs));
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:226:49: error: request for member 'cs' in something not a structure or union
226 | mp_hal_pin_write(mp_hal_get_pin_obj(self->cs), 1);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:229:9: error: request for member 'active' in something not a structure or union
229 | self->active = true;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:230:9: error: request for member 'spi_bus' in something not a structure or union
230 | self->spi_bus->active_devices++;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c: In function 'machine_spi_deinit':
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:245:5: error: unknown type name 'machine_hw_spi_obj_t'; did you mean 'machine_wdt_obj_t'?
245 | machine_hw_spi_obj_t *self = (machine_hw_spi_obj_t *)self_in;
| ^~~~~~~~~~~~~~~~~~~~
| machine_wdt_obj_t
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:245:35: error: 'machine_hw_spi_obj_t' undeclared (first use in this function); did you mean 'machine_wdt_obj_t'?
245 | machine_hw_spi_obj_t *self = (machine_hw_spi_obj_t *)self_in;
| ^~~~~~~~~~~~~~~~~~~~
| machine_wdt_obj_t
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:245:57: error: expected expression before ')' token
245 | machine_hw_spi_obj_t *self = (machine_hw_spi_obj_t *)self_in;
| ^
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:246:13: error: request for member 'active' in something not a structure or union
246 | if (self->active) {
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:247:13: error: request for member 'spi_bus' in something not a structure or union
247 | self->spi_bus->active_devices--;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:248:13: error: request for member 'active' in something not a structure or union
248 | self->active = false;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:250:17: error: request for member 'spi_bus' in something not a structure or union
250 | if (self->spi_bus->active_devices == 0) {
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:251:17: error: request for member 'spi_bus' in something not a structure or union
251 | self->spi_bus->state = MP_SPI_STATE_STOPPED;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c: In function 'machine_spi_transfer':
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:259:5: error: unknown type name 'machine_hw_spi_obj_t'; did you mean 'machine_wdt_obj_t'?
259 | machine_hw_spi_obj_t *self = (machine_hw_spi_obj_t *)self_in;
| ^~~~~~~~~~~~~~~~~~~~
| machine_wdt_obj_t
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:259:35: error: 'machine_hw_spi_obj_t' undeclared (first use in this function); did you mean 'machine_wdt_obj_t'?
259 | machine_hw_spi_obj_t *self = (machine_hw_spi_obj_t *)self_in;
| ^~~~~~~~~~~~~~~~~~~~
| machine_wdt_obj_t
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:259:57: error: expected expression before ')' token
259 | machine_hw_spi_obj_t *self = (machine_hw_spi_obj_t *)self_in;
| ^
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:261:13: error: request for member 'spi_bus' in something not a structure or union
261 | if (self->spi_bus->state == MP_SPI_STATE_STOPPED) {
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:266:14: error: request for member 'active' in something not a structure or union
266 | if (!self->active) {
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:271:16: error: request for member 'spi_bus' in something not a structure or union
271 | while (self->spi_bus->state == MP_SPI_STATE_SENDING) {}
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:273:9: error: request for member 'spi_bus' in something not a structure or union
273 | self->spi_bus->state = MP_SPI_STATE_SENDING;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:275:57: error: request for member 'spi_bus' in something not a structure or union
275 | spi_inst_t *const spi_inst = (spi_inst_t *const)self->spi_bus->user_data;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:277:36: error: request for member 'baudrate' in something not a structure or union
277 | spi_set_baudrate(spi_inst, self->baudrate);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:278:34: error: request for member 'bits' in something not a structure or union
278 | spi_set_format(spi_inst, self->bits, self->polarity, self->phase, self->firstbit);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:278:46: error: request for member 'polarity' in something not a structure or union
278 | spi_set_format(spi_inst, self->bits, self->polarity, self->phase, self->firstbit);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:278:62: error: request for member 'phase' in something not a structure or union
278 | spi_set_format(spi_inst, self->bits, self->polarity, self->phase, self->firstbit);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:278:75: error: request for member 'firstbit' in something not a structure or union
278 | spi_set_format(spi_inst, self->bits, self->polarity, self->phase, self->firstbit);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:280:13: error: request for member 'cs' in something not a structure or union
280 | if (self->cs != mp_const_none) {
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:281:49: error: request for member 'cs' in something not a structure or union
281 | mp_hal_pin_write(mp_hal_get_pin_obj(self->cs), 0);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:341:13: error: request for member 'cs' in something not a structure or union
341 | if (self->cs != mp_const_none) {
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:342:49: error: request for member 'cs' in something not a structure or union
342 | mp_hal_pin_write(mp_hal_get_pin_obj(self->cs), 1);
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:345:9: error: request for member 'spi_bus' in something not a structure or union
345 | self->spi_bus->state = MP_SPI_STATE_STARTED;
| ^~
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c: In function 'machine_spi_get_buffer':
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:353:5: error: unknown type name 'machine_hw_spi_obj_t'; did you mean 'machine_wdt_obj_t'?
353 | machine_hw_spi_obj_t *self = MP_OBJ_TO_PTR(o_in);
| ^~~~~~~~~~~~~~~~~~~~
| machine_wdt_obj_t
/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/machine_spi.c:354:57: error: request for member 'spi_bus' in something not a structure or union
354 | spi_inst_t *const spi_inst = (spi_inst_t *const)self->spi_bus->user_data;
| ^~
[ 28%] Building C object CMakeFiles/firmware.dir/modrp2.c.o
make[3]: *** [CMakeFiles/firmware.dir/build.make:3954: CMakeFiles/firmware.dir/machine_spi.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2/build-RPI_PICO'
See https://github.com/micropython/micropython/wiki/Build-Troubleshooting
make: Leaving directory '/home/james/Downloads/GameMachine/lvgl_micropython/lib/micropython/ports/rp2'
make[2]: *** [CMakeFiles/Makefile2:2247: CMakeFiles/firmware.dir/all] Error 2
make[1]: *** [Makefile:91: all] Error 2
make: *** [Makefile:65: all] Error 1
PASTE OUTPUT HEREIf your problem is running the binding please past the code you are using below.*
I need to see ALL of the setup code exactly as it is being ran.
PASTE CODE HERE**Exact make and model number of the MCU that you are compiling for or the firmware is running on. **
- Make: PICO
- Model: 2w
For ESP32 MCU's The PSRAM and FLASH SPI type, quad SPI or octal SPI.
- PSRAM: quad OR octal
- FLASH: quad OR octal
I need to know the OS and OS version of the machine that compiled the binary. If using a VM then I need to know the OS and OS version the VM is running. (WSL == VM)
- OS: [e.g. iOS] Fedora 43
Build Command
python3 make.py rp2