MicroPython Firmeware bauen -> newlib component has been renamed
Verfasst: Sonntag 11. Januar 2026, 19:49
Hallo zusammen,
ich würde gerne MicroPython mit dem `st7789` Modul bauen. Für den ESP8266 hat das auch geklappt. Zumindest der `make` lief erfolgreich durch. Aber der hat zu wenig Speicherplatz für die Firmware.
Dann wollte ich auf den ESP32 ausweichen, allerdings läuft hier `make` nicht erfolgreich:
Der Hinweis ist recht eindeutig und ich habe mich auf die Suche gemacht, wo ich denn `newlib` finde und je nach dem hätte ich das einfach umbenannt oder eben rausgeworfen, weil es ja nicht benötigt wird.
Mit `grep` habe ich gesucht und überall hier wird "newlib" gefunden:
Einfach da durch gehen und jedes "newlib" in "new_lib" umbenennen, könnte funktionieren. Das ist aber nicht meine Art. Habe ich trotzdem gemacht und wie zu erwarten, geht das nicht:
Da stehen ja jetzt auch wieder Hinweise. Allerdings habe ich das Problem ja mehr oder weniger erzwungen. Daher eher meine Frage, wie würdet ihr bei der originalen Fehlermeldung vorgehen? Kann ich das in Griff bekommen und wenn ja, wie?
Der Link zu MicroPython noch, falls jemand Interesse daran hat.
Danke und Grüße
Dennis
ich würde gerne MicroPython mit dem `st7789` Modul bauen. Für den ESP8266 hat das auch geklappt. Zumindest der `make` lief erfolgreich durch. Aber der hat zu wenig Speicherplatz für die Firmware.
Dann wollte ich auf den ESP32 ausweichen, allerdings läuft hier `make` nicht erfolgreich:
Code: Alles auswählen
CMake Error at /home/dennis/esp/esp-idf/tools/cmake/build.cmake:376 (message):
Failed to resolve component 'newlib' required by component 'main': unknown
name.
Call Stack (most recent call first):
/home/dennis/esp/esp-idf/tools/cmake/build.cmake:419 (__build_resolve_and_add_req)
/home/dennis/esp/esp-idf/tools/cmake/build.cmake:749 (__build_expand_requirements)
/home/dennis/esp/esp-idf/tools/cmake/project.cmake:741 (idf_build_process)
CMakeLists.txt:68 (project)
-- Configuring incomplete, errors occurred!
HINT: newlib component has been renamed to esp_libc. Any `REQUIRES newlib` can simply be deleted as esp_libc is REQUIRED by default.
Mit `grep` habe ich gesucht und überall hier wird "newlib" gefunden:
Code: Alles auswählen
./micropython/extmod/modplatform.h
./micropython/lib/btstack/platform/chibios/retarget_chibios.c
./micropython/lib/btstack/port/apollo2-em9304/btstack_port.c
./micropython/lib/btstack/port/msp432p401lp-cc256x/main.c
./micropython/lib/btstack/port/nrf5-cinnamon/pca10040/armgcc/Makefile
./micropython/lib/btstack/port/renesas-ek-ra6m4a-da14531/e2-project/.cproject
./micropython/lib/btstack/port/renesas-ek-ra6m4a-da14531/e2-project/ra/fsp/src/bsp/mcu/all/bsp_sbrk.c
./micropython/lib/btstack/port/renesas-ek-ra6m4a-da14531/port/hal_entry.c
./micropython/lib/btstack/port/renesas-tb-s1ja-cc256x/template/btstack_example/.cproject
./micropython/lib/btstack/port/renesas-tb-s1ja-cc256x/template/btstack_example/synergy/ssp/src/bsp/mcu/all/bsp_sbrk.c
./micropython/lib/btstack/port/stm32-f4discovery-cc256x/port/port.c
./micropython/lib/fsp/ra/fsp/src/bsp/mcu/all/bsp_sbrk.c
./micropython/lib/libffi/.ci/bfin-sim.exp
./micropython/lib/libffi/.ci/m32r-sim.exp
./micropython/lib/libffi/.ci/moxie-sim.exp
./micropython/lib/libffi/.ci/or1k-sim.exp
./micropython/lib/libffi/.ci/powerpc-eabisim.exp
./micropython/lib/libffi/.ci/wine-sim.exp
./micropython/lib/libffi/config.sub
./micropython/lib/libm/ef_rem_pio2.c
./micropython/lib/libm/ef_sqrt.c
./micropython/lib/libm/erf_lgamma.c
./micropython/lib/libm/fdlibm.h
./micropython/lib/libm/kf_cos.c
./micropython/lib/libm/kf_rem_pio2.c
./micropython/lib/libm/kf_sin.c
./micropython/lib/libm/kf_tan.c
./micropython/lib/libm/sf_cos.c
./micropython/lib/libm/sf_erf.c
./micropython/lib/libm/sf_frexp.c
./micropython/lib/libm/sf_ldexp.c
./micropython/lib/libm/sf_modf.c
./micropython/lib/libm/sf_sin.c
./micropython/lib/libm/sf_tan.c
./micropython/lib/libm/wf_lgamma.c
./micropython/lib/libm/wf_tgamma.c
./micropython/lib/nxp_driver/lpcopen/lpc11u6x/gcc/cr_startup_lpc11u6x.c
./micropython/lib/nxp_driver/lpcopen/lpc11uxx/gcc/cr_startup_lpc11xx.c
./micropython/lib/nxp_driver/lpcopen/lpc13xx/gcc/cr_startup_lpc13xx.c
./micropython/lib/pico-sdk/README.md
./micropython/lib/pico-sdk/bazel/config/BUILD.bazel
./micropython/lib/pico-sdk/bazel/constraint/BUILD.bazel
./micropython/lib/pico-sdk/cmake/preload/toolchains/pico_arm_cortex_m0plus_clang.cmake
./micropython/lib/pico-sdk/cmake/preload/toolchains/pico_arm_cortex_m33_clang.cmake
./micropython/lib/pico-sdk/cmake/preload/toolchains/util/pico_arm_clang_common.cmake
./micropython/lib/pico-sdk/src/rp2_common/pico_clib_interface/BUILD.bazel
./micropython/lib/pico-sdk/src/rp2_common/pico_clib_interface/CMakeLists.txt
./micropython/lib/pico-sdk/src/rp2_common/pico_printf/include/pico/printf.h
./micropython/lib/pico-sdk/src/rp2_common/pico_printf/printf.c
./micropython/lib/pico-sdk/test/pico_float_test/pico_double_test.c
./micropython/lib/pico-sdk/test/pico_float_test/pico_float_test.c
./micropython/lib/pico-sdk/test/pico_sha256_test/pico_sha256_test.c
./micropython/lib/pico-sdk/test/pico_stdlib_test/pico_stdlib_test.c
./micropython/lib/pico-sdk/test/pico_time_test/pico_time_test.c
./micropython/lib/tinyusb/hw/bsp/board.c
./micropython/ports/cc3200/FreeRTOS/Source/tasks.c
./micropython/ports/esp32/boards/sdkconfig.base
./micropython/ports/esp32/esp32_common.cmake
./micropython/ports/esp32/managed_components/espressif__mdns/tests/test_afl_fuzz_host/Makefile
./micropython/ports/esp32/build-ESP32_GENERIC/log/idf_py_stderr_output_58277
./micropython/ports/esp32/build-ESP32_GENERIC/CMakeFiles/CMakeConfigureLog.yaml
./micropython/ports/esp32/build-ESP32_GENERIC/CMakeFiles/3.31.6/CompilerIdC/a.out
./micropython/ports/esp32/build-ESP32_GENERIC/CMakeFiles/3.31.6/CompilerIdCXX/a.out
./micropython/ports/esp32/build-ESP32_GENERIC/sdkconfig.combined.in
./micropython/ports/esp32/build-ESP32_GENERIC/sdkconfig.combined
Code: Alles auswählen
CMake Error at /home/dennis/esp/esp-idf/tools/cmake/build.cmake:376 (message):
Failed to resolve component 'new_lib' required by component 'main': unknown
name.
Call Stack (most recent call first):
/home/dennis/esp/esp-idf/tools/cmake/build.cmake:419 (__build_resolve_and_add_req)
/home/dennis/esp/esp-idf/tools/cmake/build.cmake:749 (__build_expand_requirements)
/home/dennis/esp/esp-idf/tools/cmake/project.cmake:741 (idf_build_process)
CMakeLists.txt:68 (project)
-- Configuring incomplete, errors occurred!
HINT: The component 'new_lib' could not be found. This could be because: component name was misspelled, the component was not added to the build, the component has been moved to the IDF component manager, the component has been removed and refactored into some other component or the component may not be supported by the selected target.
Please look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.
Refer to the migration guide for more details about moved components.
Refer to the build-system guide for more details about how components are found and included in the build.
Der Link zu MicroPython noch, falls jemand Interesse daran hat.
Danke und Grüße
Dennis