Skip to content

Unable to cargo install Can't link to -lunwind #571

@meangrape

Description

@meangrape

Errs out at step 178 building py-spy (bin)

  = note: /usr/bin/ld: cannot find -lunwind: No such file or directory
          /usr/bin/ld: cannot find -lunwind-ptrace: No such file or directory
          /usr/bin/ld: cannot find -lunwind-x86_64: No such file or directory
          collect2: error: ld returned 1 exit status

Looking at the long error message, I see that the correct library path is present "-L" "/usr/lib/x86_64-linux-gnu"

I am running ubuntu22 with libunwind8 installed.

jayed@bench-1:~/repos/py-spy$ ls /usr/lib/x86_64-linux-gnu/ | rg unwind
libunwind-coredump.so.0
libunwind-coredump.so.0.0.0
libunwind-ptrace.so.0
libunwind-ptrace.so.0.0.0
libunwind-x86_64.so.8
libunwind-x86_64.so.8.0.1
libunwind.so.1
libunwind.so.1.0
libunwind.so.8
libunwind.so.8.0.1

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