From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLNI9-0004Yr-MZ for qemu-devel@nongnu.org; Mon, 08 Oct 2012 20:03:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLNI8-0000gs-6z for qemu-devel@nongnu.org; Mon, 08 Oct 2012 20:03:21 -0400 Received: from m12-17.163.com ([220.181.12.17]:56056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLNI7-0000eZ-CD for qemu-devel@nongnu.org; Mon, 08 Oct 2012 20:03:20 -0400 Message-ID: <50736969.9000607@163.com> Date: Tue, 09 Oct 2012 08:01:45 +0800 From: wenchao xia MIME-Version: 1.0 References: <1349587956-21436-1-git-send-email-xiaxia347os@163.com> <1349587956-21436-2-git-send-email-xiaxia347os@163.com> <50722ECD.5060801@163.com> In-Reply-To: <50722ECD.5060801@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V6 1/5] libqblock build system List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: kwolf@redhat.com, aliguori@us.ibm.com, stefanha@gmail.com, qemu-devel@nongnu.org, pbonzini@redhat.com, xiawenc@linux.vnet.ibm.com >>> +###################################################################### >>> +# Support building shared library libqblock >>> +libqblock.la: >>> + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libqblock >>> V="$(V)" TARGET_DIR="$*/" libqblock.la,) >> >> Does not work for out of tree build: >> $ make -C obj-amd64 libqblock.la >> make: Entering directory `/src/qemu/obj-amd64' >> make: Entering an unknown directory >> make: *** libqblock: No such file or directory. Stop. >> make: Leaving an unknown directory >> make: *** [libqblock.la] Error 2 >> make: Leaving directory `/src/qemu/obj-amd64' >> >> If I fake what 'configure' should be doing and add the directory and >> link to Makefile, there are still problems: >> $ make -C obj-amd64 libqblock.la >> make: Entering directory `/src/qemu/obj-amd64' >> make[1]: *** No rule to make target `libqblock.lo', needed by >> `libqblock.la'. Stop. >> make: *** [libqblock.la] Error 2 >> > Could u give more tip about this error? what is obj-amd64? > My understanding is you tried to build the library from another > directory similar as: > /extend_disk/xiawenc/qemu/qemu have the qemu source code, then > [xiawenc@RedHat62GAWSWenchao xiawenc]$ pwd > /extend_disk/xiawenc > [xiawenc@RedHat62GAWSWenchao xiawenc]$ make -C qemu/qemu libqblock.la > failed. > Please correct me. > >> I think the library should be built by default, like vscclient which >> probably nobody uses. >> > libvirt can't link to it now for OOM issue, but I will wrapper the > APIs with RPC later. > I can't reproduce the issue, hope you can show how to make it happen.