From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JF7OX-0008TK-SL for qemu-devel@nongnu.org; Wed, 16 Jan 2008 07:29:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JF7OW-0008Sg-Oz for qemu-devel@nongnu.org; Wed, 16 Jan 2008 07:29:25 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JF7OW-0008SV-II for qemu-devel@nongnu.org; Wed, 16 Jan 2008 07:29:24 -0500 Received: from mtagate4.uk.ibm.com ([195.212.29.137]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JF7OW-00061w-2t for qemu-devel@nongnu.org; Wed, 16 Jan 2008 07:29:24 -0500 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate4.uk.ibm.com (8.13.8/8.13.8) with ESMTP id m0GCTEpA108020 for ; Wed, 16 Jan 2008 12:29:14 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m0GCTEZW5087338 for ; Wed, 16 Jan 2008 12:29:14 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m0GCTB9e025174 for ; Wed, 16 Jan 2008 12:29:11 GMT Received: from [9.152.198.52] (dyn-9-152-198-52.boeblingen.de.ibm.com [9.152.198.52]) by d06av02.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m0GCTA1M025164 for ; Wed, 16 Jan 2008 12:29:11 GMT Message-ID: <478DF896.3040208@linux.vnet.ibm.com> Date: Wed, 16 Jan 2008 13:29:10 +0100 From: Christian Ehrhardt MIME-Version: 1.0 Subject: Re: [Qemu-devel] QEMU static build References: <7f7951300801160220i6852c881of112cfd259d67476@mail.gmail.com> <7f7951300801160348h4d07d8et2984e6940ebef96c@mail.gmail.com> In-Reply-To: <7f7951300801160348h4d07d8et2984e6940ebef96c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Salil Bijur wrote: > On Jan 16, 2008 4:48 PM, Mulyadi Santosa wr= ote: >> Hi >> >> >> On Jan 16, 2008 5:20 PM, Salil Bijur wrote: >>> Hello, >>> >>> I've been trying to build QEMU statically by first configuring it >>> using the --static option. The compiling gives me the same linker >>> errors as mentioned here: >>> http://www.mail-archive.com/qemu-devel@nongnu.org/msg10721.html >>> >>> I know this has been asked before but it hasn't been followed up. Any >>> ideas on how to fix this? >> What do you want to do? to debug it? if yes, maybe you just want the >> unstripped binary? dig qemu-devel and qemu-forum.... or at least try >> the binary in target-i386..i believe it's unstripped. Can check it >> here, because my box use gcc 4.x >> >=20 > I'm trying to build qemu-system-arm so my configure command is > "./configure --target-list=3Darm-softmmu --static". I need a static > build to overcome dynamic library dependency issues. Doing a 'make' > with the above configure command breaks. I haven't found a solution on > the forums. >=20 > Thanks, > Salil I sometimes use a static build for the same reasons on ppc. I did not have the same issue but I usually set LDFLAGS=3D"$LDFLAGS -pthr= ead" before doing configure&make. Maybe it's worth a try if this helps your linker to find the pthread func= tions. --=20 Gr=FCsse / regards,=20 Christian Ehrhardt IBM Linux Technology Center, Open Virtualization