Comment 6 for bug 1764555

Revision history for this message
David Lechner (dlech) wrote :

I'm having trouble building static qemu from git. I did `./configure --static --enable-debug` and get the following error:

  LINK aarch64-softmmu/qemu-system-aarch64
/usr/bin/x86_64-linux-gnu-ld: cannot find -lcacard
/usr/bin/x86_64-linux-gnu-ld: cannot find -lcacard
/usr/bin/x86_64-linux-gnu-ld: cannot find -lusbredirparser
/usr/bin/x86_64-linux-gnu-ld: cannot find -ludev
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgtk-3
/usr/bin/x86_64-linux-gnu-ld: cannot find -latk-bridge-2.0
/usr/bin/x86_64-linux-gnu-ld: cannot find -latspi
/usr/bin/x86_64-linux-gnu-ld: cannot find -lsystemd
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgdk-3
/usr/bin/x86_64-linux-gnu-ld: cannot find -lwayland-egl
/usr/bin/x86_64-linux-gnu-ld: cannot find -lepoxy
/usr/bin/x86_64-linux-gnu-ld: cannot find -lgraphite2
collect2: error: ld returned 1 exit status
Makefile:193: recipe for target 'qemu-system-aarch64' failed
make[1]: *** [qemu-system-aarch64] Error 1
Makefile:478: recipe for target 'subdir-aarch64-softmmu' failed
make: *** [subdir-aarch64-softmmu] Error 2

FWIW, qemu built fine without the --static option, but I need the static version to put into the chroot for testing.