esp-idf-template icon indicating copy to clipboard operation
esp-idf-template copied to clipboard

Failed to build on Ubuntu 25.10 due to incompatible libxml2

Open andber1 opened this issue 3 weeks ago • 4 comments

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

  1. Install prerequisites
  2. Create a new blank project from the template
  3. 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

andber1 avatar Dec 15 '25 19:12 andber1