Skip to contentSkip to conversation

kvm-87 static build failure: cannot find -lpci

DISCUSSION Antoine Martin 2 participants 3 messages Jun 30, 2009 – Jul 1, 2009 KVM

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

./configure --kerneldir=/usr/src/linux-2.6.29.4 --static [...]
make
[...]

  CC    x86_64-softmmu/i386-dis.o
  AR    x86_64-softmmu/libqemu.a
  LINK  x86_64-softmmu/qemu-system-x86_64

/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lpci
collect2: ld returned 1 exit status
make[1]: *** [qemu-system-x86_64] Error 1
make: *** [subdir-x86_64-softmmu] Error 2

What gives?

Antoine
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkpKOggACgkQGK2zHPGK1rt5OQCcCIc8WL7aVo6sUAesXoMUTzjq mOEAnj9JHG7k/Ab+2Pgu310pAjOPi/o2
=o94J
-----END PGP SIGNATURE-----

#1 lore raw

Antoine Martin wrote:
[]

Quoted 5 lines

LINK x86_64-softmmu/qemu-system-x86_64
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lpci

What gives?

Is it your system or who's? Why the system does not have a usable libpci.a is a question for you, not for kvm... I guess.

/mjt

#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Quoted 11 lines · Michael Tokarev

Antoine Martin wrote:
[]

Quoted 6 lines

LINK x86_64-softmmu/qemu-system-x86_64
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld:

cannot find -lpci

What gives?

Is it your system or who's? Why the system does not have a usable libpci.a is a question for you, not for kvm... I guess.

It seems like an old bug re-surfacing (.so present, .a missing):
http://bugs.gentoo.org/138035
Sorry for the line noise.

Antoine
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkpLGfYACgkQGK2zHPGK1rtFRwCePaqg0l3Oy9XAQwhwhDeeClLr NS8An20azMQ9dbwR1wxOCNRjcDZYU61m
=8tgM
-----END PGP SIGNATURE-----