All of lore.kernel.org
 help / color / mirror / Atom feed
From: klondike <franxisco1988@gmail.com>
To: Nikola Ciprich <extmaillist@linuxbox.cz>
Cc: kvm@vger.kernel.org
Subject: Re: [ANNOUNCE] qemu-kvm-0.14.0
Date: Wed, 23 Feb 2011 09:05:37 +0100	[thread overview]
Message-ID: <4D64BFD1.2020602@gmail.com> (raw)
In-Reply-To: <20110223074948.GA7608@pcnci.linuxbox.cz>


[-- Attachment #1.1: Type: text/plain, Size: 1859 bytes --]

El 23/02/11 08:49, Nikola Ciprich escribió:
> Hello Avi,
Hi,
> when trying to compile(link) various targets, I get:
>   LINK  sparc-softmmu/qemu-system-sparc
> pci-stub.o: In function `do_pci_info_print':
> /usr/src/redhat/BUILD/qemu-kvm-0.14.0/hw/pci-stub.c:36: multiple definition of `do_pci_info_print'
> pci.o:/usr/src/redhat/BUILD/qemu-kvm-0.14.0/hw/pci.c:1398: first defined here
> /usr/bin/ld: Warning: size of symbol `do_pci_info_print' changed from 147 in pci.o to 50 in pci-stub.o
> pci-stub.o: In function `do_pci_info':
> /usr/src/redhat/BUILD/qemu-kvm-0.14.0/hw/pci-stub.c:31: multiple definition of `do_pci_info'
> pci.o:/usr/src/redhat/BUILD/qemu-kvm-0.14.0/hw/pci.c:1560: first defined here
> /usr/bin/ld: Warning: size of symbol `do_pci_info' changed from 150 in pci.o to 50 in pci-stub.o
> pci.o: In function `pci_update_mappings':
> pci.c:(.text+0xa91): undefined reference to `pci_bridge_get_base'
> pci.c:(.text+0xaa5): undefined reference to `pci_bridge_get_limit'
> pci.c:(.text+0xb7b): undefined reference to `pci_bridge_get_base'
> pci.c:(.text+0xb8e): undefined reference to `pci_bridge_get_limit'
> pci.o: In function `pci_get_devices_list':
> pci.c:(.text+0x2024): undefined reference to `pci_bridge_get_limit'
> pci.c:(.text+0x2036): undefined reference to `pci_bridge_get_base'
> pci.c:(.text+0x2043): undefined reference to `pci_bridge_get_limit'
> pci.c:(.text+0x2050): undefined reference to `pci_bridge_get_base'
> pci.c:(.text+0x2060): undefined reference to `pci_bridge_get_limit'
> pci.c:(.text+0x2070): undefined reference to `pci_bridge_get_base'
> collect2: ld returned 1 exit status
> make[1]: *** [qemu-system-sparc] Error 1
> make: *** [subdir-sparc-softmmu] Error 2
I hit this problem too and after a long night I tracked it back to some
odd merge, this patch solved the issue for me.

[-- Attachment #1.2: qemu-kvm-0.14-fix-nopci-build-system.patch --]
[-- Type: text/plain, Size: 1545 bytes --]

2010-11-10	Francisco Blas Izquierdo Riera <klondike@xiscosoft.es>
		Somehow pci.o was added so it was needed on all targets breaking NO_PCI ones. This patch intends to fix that

		* Makefile.objs: 		Add pci.o back into hw-obj-$(CONFIG_PCI)
		* Makefile.target:		Remove pci.o

diff -ru /tmp/aaa/qemu-kvm-0.14.0.old/Makefile.objs /tmp/aaa/qemu-kvm-0.14.0/Makefile.objs
--- /tmp/aaa/qemu-kvm-0.14.0.old/Makefile.objs	2011-02-23 06:02:16.818182597 +0100
+++ /tmp/aaa/qemu-kvm-0.14.0/Makefile.objs	2011-02-23 06:00:35.439182597 +0100
@@ -170,7 +170,7 @@
 hw-obj-y += loader.o
 hw-obj-$(CONFIG_VIRTIO) += virtio.o virtio-console.o
 hw-obj-y += fw_cfg.o
-hw-obj-$(CONFIG_PCI) += pci_bridge.o
+hw-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
 hw-obj-$(CONFIG_PCI) += msix.o msi.o
 hw-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
 hw-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
diff -ru /tmp/aaa/qemu-kvm-0.14.0.old/Makefile.target /tmp/aaa/qemu-kvm-0.14.0/Makefile.target
--- /tmp/aaa/qemu-kvm-0.14.0.old/Makefile.target	2011-02-23 06:02:16.835182597 +0100
+++ /tmp/aaa/qemu-kvm-0.14.0/Makefile.target	2011-02-23 06:00:35.454182597 +0100
@@ -195,7 +195,7 @@
 # System emulator target
 ifdef CONFIG_SOFTMMU
 
-obj-y = arch_init.o cpus.o monitor.o pci.o machine.o gdbstub.o vl.o balloon.o
+obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o vl.o balloon.o
 # virtio has to be here due to weird dependency between PCI and virtio-net.
 # need to fix this properly
 obj-$(CONFIG_NO_PCI) += pci-stub.o

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

  reply	other threads:[~2011-02-23  8:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-22 17:14 [ANNOUNCE] qemu-kvm-0.14.0 Avi Kivity
2011-02-23  7:49 ` Nikola Ciprich
2011-02-23  8:05   ` klondike [this message]
2011-02-23  8:16     ` Nikola Ciprich
2011-02-23  8:29       ` Nikola Ciprich
2011-02-23  8:39         ` klondike
2011-04-29  8:59           ` Bharat Bhushan
2011-02-23  8:28     ` [PATCH] qemu-kvm: Fix non-PCI target build Jan Kiszka
2011-02-23  8:37       ` klondike
2011-02-27 11:35       ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D64BFD1.2020602@gmail.com \
    --to=franxisco1988@gmail.com \
    --cc=extmaillist@linuxbox.cz \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.