Skip to content

Failed to build on Ubuntu 25.10 due to incompatible libxml2 #282

@andber1

Description

@andber1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions