esp-idf-template
esp-idf-template copied to clipboard
Failed to build on Ubuntu 25.10 due to incompatible libxml2
Bug description
error: failed to run custom build command for esp-idf-sys v0.36.1
[...]
ERROR: tool esp-clang version 16.0.1-fe4f10a809 is installed, but getting error: non-zero exit code (127) with message: /home/[...]/.embuild/espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/bin/clang: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
Maybe this is related? https://discourse.ubuntu.com/t/psa-ubuntu-25-10-features-a-libxml2-version-with-api-breaking-changes/71783
To Reproduce
- Install prerequisites
- Create a new blank project from the template
- Start build
Expected behavior
It should build without errors.
Environment
- ESP-IDF branch or tag: v5.3.3
- Target device (MCU): esp32c3
- OS: Ubuntu 25.10
- How did you install the environment: see readme