From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTIOY-00080S-H0 for qemu-devel@nongnu.org; Wed, 23 Nov 2011 14:22:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTIOX-0007pP-93 for qemu-devel@nongnu.org; Wed, 23 Nov 2011 14:22:10 -0500 Received: from mail-bw0-f45.google.com ([209.85.214.45]:52061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTIOW-0007pI-Ux for qemu-devel@nongnu.org; Wed, 23 Nov 2011 14:22:09 -0500 Received: by bkbzu5 with SMTP id zu5so2192087bkb.4 for ; Wed, 23 Nov 2011 11:22:07 -0800 (PST) Message-ID: <4ECD47DD.90701@googlemail.com> Date: Wed, 23 Nov 2011 19:22:05 +0000 From: Mr Dash Four MIME-Version: 1.0 References: <4ECCEDFF.1000303@googlemail.com> <4ECD001E.7020707@googlemail.com> <4ECD103C.60406@redhat.com> <4ECD140C.7060102@googlemail.com> <4ECD34BD.4010803@redhat.com> <4ECD3C93.7010307@googlemail.com> <4ECD3E9D.4090001@googlemail.com> <4ECD432A.4000008@googlemail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 , qemu-devel@nongnu.org > Which binary are we trying to link when we fail? This is where it all fails: gcc -m64 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -I/home/mr-4/qemu-1.0-rc3/libcacard -I/usr/include/nss3 -I/usr/include/nspr4 -I../linux-headers -I.. -I/home/mr-4/qemu-1.0-rc3/target-i386 -DNEED_CPU_H -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/home/mr-4/qemu-1.0-rc3/linux-user/x86_64 -I/home/mr-4/qemu-1.0-rc3/linux-user -O2 -g -Wl,--warn-common -m64 -static -g -Wl,-T../config-host.ld -Wl,-T,/home/mr-4/qemu-1.0-rc3/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-ru ntime.o ../libuser/trace.o ../libuser/trace/control.o ../libuser/trace/default.o cpu-exec.o cpu-uname.o cpuid.o disas.o elfload.o exec.o fpu/softfloat.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-exec.o -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lrt -pthread -pthread -lgthread-2.0 -lrt -lglib-2.0 -lusbredirparser -lm /usr/bin/ld: cannot find -lssl3 collect2: ld returned 1 exit status make[1]: *** [qemu-x86_64] Error 1 make[1]: Leaving directory `/home/mr-4/qemu-1.0-rc3/x86_64-linux-user' make: *** [subdir-x86_64-linux-user] Error 2 > OK. We don't explicitly try to link with ssl3 ourselves, so this only > ever ends up in LDFLAGS because of some other library that has claimed > it needs it as a dependency via pkg-config. Try adding > --disable-sdl --disable-vnc --disable-bluez --disable-check-utests > --disable-smartcard --disable-usb-redir > > to your configure argument. That turns off a lot of stuff that's irrelevant > for linux-user and which might be pulling in this library. If that works > then you can identify which particular switch is needed by process of > elimination. Different error this time: ./configure --target-list="x86_64-linux-user arm-linux-user armeb-linux-user" --disable-kvm --disable-strip --disable-xen --disable-spice --disable-werror --static --disable-sdl --disable-vnc --disable-bluez --disable-check-utests --disable-smartcard --disable-usb-redir make V=1 gcc -m64 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -I../linux-headers -I.. -I/home/mr-4/qemu-1.0-rc3/target-i386 -DNEED_CPU_H -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/home/mr-4/qemu-1.0-rc3/linux-user/x86_64 -I/home/mr-4/qemu-1.0-rc3/linux-user -O2 -g -Wl,--warn-common -m64 -static -g -Wl,-T../config-host.ld -Wl,-T,/home/mr-4/qemu-1.0-rc3/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/default. o cpu-exec.o cpu-uname.o cpuid.o disas.o elfload.o exec.o fpu/softfloat.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-exec.o -lrt -pthread -pthread -lgthread-2.0 -lrt -lglib-2.0 -lusbredirparser -lm /usr/bin/ld: cannot find -lgthread-2.0 collect2: ld returned 1 exit status make[1]: *** [qemu-x86_64] Error 1 make[1]: Leaving directory `/home/mr-4/qemu-1.0-rc3/x86_64-linux-user' make: *** [subdir-x86_64-linux-user] Error 2