wofferl / proxmox-backup-arm64

Script for building Proxmox Backup Server 3.x (Bookworm) for Armbian64
151 stars 12 forks source link

ld: cannot find -luuid: No such file or directory #18

Closed Christoph-Wagner closed 1 year ago

Christoph-Wagner commented 1 year ago

Ubuntu 22.04.1 LTS via armbian cli image Raspberry Pi 4 2GB


 Compiling pve-rs v0.7.2 (/root/proxmox-backup-arm64/sources/proxmox-perl-rs/build/pve-rs)
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-Wl,--version-script=/tmp/rustcWpZ6kW/list" [… snipped super long line …]
  = note: /usr/bin/ld: cannot find -luuid: No such file or directory
          collect2: error: ld returned 1 exit status

error: could not compile `pve-rs` due to previous error
make[2]: *** [Makefile:26: all] Error 101
make[2]: Leaving directory '/root/proxmox-backup-arm64/sources/proxmox-perl-rs/build/pve-rs'
dh_auto_build: error: make -j4 returned exit code 2
make[1]: *** [debian/rules:7: binary] Error 2
make[1]: Leaving directory '/root/proxmox-backup-arm64/sources/proxmox-perl-rs/build/pve-rs'
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make: *** [Makefile:93: pve-deb] Error 2

I actually had the same (or at least similar, erroring with cannot find -luuid) issue before on a Debian LXC container, but some searching pointed me towards a crosscompilation issue (it’s an amd64 host), so I redid it on the PI, but that seems to not have helped.

wofferl commented 1 year ago

Can you check if uuid-dev is correctly installed on your system?

dpkg -s uuid-dev

Christoph-Wagner commented 1 year ago

It was not, I installed it with apt install uuid-dev and everything worked, thanks :)

I guess it needs to be added to the dependency list for some systems?