Skip to content

esp-clang (esp-idf 5.5.2): autoPatchelf fails due to missing libxml2.so.2 #113

Description

@Peter3579

After recent updates (between esp-idf 5.5.1 and current HEAD), building esp-idf 5.5.2 fails during the autoPatchelf phase.
The lld binary in esp-clang-esp-idf-v5.5.2 depends on libxml2.so.2, but autoPatchelf is unable to satisfy this dependency and aborts.
This issue does not occur with esp-idf 5.5.1 using the same nixpkgs.

Error message:

auto-patchelf: 1 dependencies could not be satisfied
error: auto-patchelf could not satisfy dependency libxml2.so.2 wanted by /nix/store/mzmllx9dlbbyy1qi2i9mrsk7x9djc0hi-esp-clang-esp-idf-v5.5.2/esp-clang/bin/lld
auto-patchelf failed to find all the required dependencies.
Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
error: Cannot build '/nix/store/khmgyq0kr2gw49qik5winxpn39598mj6-esp-clang-esp-idf-v5.5.2.drv'.
       Reason: builder failed with exit code 1.

Additional context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions