From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTJ7F-0005bz-VP for qemu-devel@nongnu.org; Wed, 23 Nov 2011 15:08:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTJ7E-00018R-Hy for qemu-devel@nongnu.org; Wed, 23 Nov 2011 15:08:21 -0500 Received: from mail-bw0-f45.google.com ([209.85.214.45]:34433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTJ7E-00016R-96 for qemu-devel@nongnu.org; Wed, 23 Nov 2011 15:08:20 -0500 Received: by bkbzu5 with SMTP id zu5so2241551bkb.4 for ; Wed, 23 Nov 2011 12:08:19 -0800 (PST) From: Max Filippov Date: Thu, 24 Nov 2011 00:08:15 +0400 References: <4ECCEDFF.1000303@googlemail.com> <4ECD5032.7030708@googlemail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201111240008.15872.jcmvbkbc@gmail.com> Subject: Re: [Qemu-devel] cannot build qemu with "--static" configure option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Mr Dash Four , qemu-devel@nongnu.org > >>> So, somebody at Fedora doesn't like static (.a) files very much, it s= eems. I could easily correct this, enable static building and have these in= stalled, I think. > >> > >> There's glib2-static in Fedora: > >> > >> $ rpm -ql glib2-static > >> /usr/lib64/libgio-2.0.a > >> /usr/lib64/libglib-2.0.a > >> /usr/lib64/libgmodule-2.0.a > >> /usr/lib64/libgobject-2.0.a > >> /usr/lib64/libgthread-2.0.a > > That is what I just wrote in my previous post, didn't I? The "die die d= ie" comments were related to the glib package, not the glib2! Just open gli= b.spec and see it for yourself. >=20 > However it looks from Max's list of libraries like the glib2-static packa= ge > contains all the static libraries qemu wants here [both libglib-2.0 and > libgthread-2.0]so so you don't need to build anything yourself, just inst= all > that, right? It fails some other way ): $ make V=3D1 gcc -m64 -D_FORTIFY_SOURCE=3D2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LA= RGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-= strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -W= endif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-= security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declarat= ion -Wold-style-definition -Wtype-limits -I../linux-headers -I.. -I/home/j= cmvbkbc/ws/m/awt/emu/xtensa/qemu/target-i386 -DNEED_CPU_H -pthread -I/usr/i= nclude/glib-2.0 -I/usr/lib64/glib-2.0/include -I/home/jcmvbkbc/ws/m/awt/e= mu/xtensa/qemu/linux-user/x86_64 -I/home/jcmvbkbc/ws/m/awt/emu/xtensa/qemu/= linux-user -O2 -g -Wl,--warn-common -m64 -static -g -Wl,-T../config-host.= ld -Wl,-T,/home/jcmvbkbc/ws/m/awt/emu/xtensa/qemu/x86_64.ld -o qemu-x86_64= ../libdis-user/i386-dis.o ../libuser/cache-utils.o ../libuser/cutils.o ../= libuser/envlist.o ../libuser/host-utils.o ../libuser/path.o ../libuser/tcg-= runtime.o ../libuser/trace.o ../libuser/trace/control.o ../libuser/trace/de= fault.o cpu-exec.o cpu-uname.o cpuid.o disas.o elfload.o exec.o fpu/softflo= at.o gdbstub.o helper.o ioport-user.o linuxload.o main.o mmap.o op_helper.o= osdep.o oslib-posix.o qemu-thread-posix.o signal.o strace.o syscall.o tcg/= optimize.o tcg/tcg.o thunk.o translate-all.o translate.o uaccess.o user-exe= c.o -lrt -pthread -pthread -lgthread-2.0 -lrt -lglib-2.0 -lm /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gmem= =2Eo):(.note.stapsdt+0x24): undefined reference to `glib_mem__alloc_semapho= re' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gmem= =2Eo):(.note.stapsdt+0x7c): undefined reference to `glib_mem__alloc_semapho= re' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gmem= =2Eo):(.note.stapsdt+0xd0): undefined reference to `glib_mem__alloc_semapho= re' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gmem= =2Eo):(.note.stapsdt+0x128): undefined reference to `glib_mem__alloc_semaph= ore' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gmem= =2Eo):(.note.stapsdt+0x17c): undefined reference to `glib_mem__realloc_sema= phore' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gmem= =2Eo):(.note.stapsdt+0x1d8): undefined reference to `glib_mem__realloc_sema= phore' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gmem= =2Eo):(.note.stapsdt+0x230): undefined reference to `glib_mem__free_semapho= re' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gmem= =2Eo):(.note.stapsdt+0x274): undefined reference to `glib_mem__alloc_semaph= ore' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gmem= =2Eo):(.note.stapsdt+0x2cc): undefined reference to `glib_mem__realloc_sema= phore' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gsli= ce.o):(.note.stapsdt+0x24): undefined reference to `glib_slice__alloc_semap= hore' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gsli= ce.o):(.note.stapsdt+0x70): undefined reference to `glib_slice__free_semaph= ore' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gdat= aset.o):(.note.stapsdt+0x24): undefined reference to `glib_quark__new_semap= hore' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gdat= aset.o):(.note.stapsdt+0x70): undefined reference to `glib_quark__new_semap= hore' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gdat= aset.o):(.note.stapsdt+0xbc): undefined reference to `glib_quark__new_semap= hore' /usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../lib64/libglib-2.0.a(gdat= aset.o):(.note.stapsdt+0x108): undefined reference to `glib_quark__new_sema= phore' Thanks. =2D- Max