All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mr Dash Four <mr.dash.four@googlemail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] cannot build qemu with "--static" configure option
Date: Wed, 23 Nov 2011 19:22:05 +0000	[thread overview]
Message-ID: <4ECD47DD.90701@googlemail.com> (raw)
In-Reply-To: <CAFEAcA8+TTk-7ABZKsg=BEr6hGUJ5NmG4sP2o8KHfhJihcDzFA@mail.gmail.com>

> 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

  reply	other threads:[~2011-11-23 19:22 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23 12:58 [Qemu-devel] cannot build qemu with "--static" configure option Mr Dash Four
2011-11-23 14:10 ` Paolo Bonzini
2011-11-23 14:15   ` Mr Dash Four
2011-11-23 15:24     ` Paolo Bonzini
2011-11-23 15:41       ` Mr Dash Four
2011-11-23 18:00         ` Paolo Bonzini
2011-11-23 18:28           ` Peter Maydell
2011-11-23 18:33             ` Mr Dash Four
2011-11-23 18:36               ` Peter Maydell
2011-11-23 18:42                 ` Mr Dash Four
2011-11-23 18:47                   ` Peter Maydell
2011-11-23 19:02                     ` Mr Dash Four
2011-11-23 19:16                       ` Peter Maydell
2011-11-23 19:22                         ` Mr Dash Four [this message]
2011-11-23 19:33                           ` Peter Maydell
2011-11-23 19:50                             ` Mr Dash Four
2011-11-23 19:53                               ` Max Filippov
2011-11-23 19:57                                 ` Mr Dash Four
2011-11-23 19:59                                   ` Peter Maydell
2011-11-23 20:08                                     ` Max Filippov
2011-11-23 20:18                                       ` Max Filippov
2011-11-23 20:28                                         ` Mr Dash Four
2011-11-23 23:02                                         ` Mr Dash Four
2011-11-23 23:15                                           ` Max Filippov
2011-11-23 23:22                                             ` Peter Maydell
2011-11-23 23:33                                               ` Mr Dash Four
2011-11-24  8:48                                                 ` Max Filippov
2011-11-24 12:15                                                   ` Mr Dash Four
2011-11-24 12:25                                                     ` Paolo Bonzini
2011-11-24 12:45                                                       ` Mr Dash Four
2011-11-23 20:27                                       ` Mr Dash Four
2011-11-23 20:39                                         ` Mr Dash Four
2011-11-23 20:51                                           ` Max Filippov
2011-11-23 21:00                                             ` Mr Dash Four
2011-11-23 21:40                                               ` Max Filippov
2011-11-23 22:12                                                 ` Peter Maydell
2011-11-23 22:13                                         ` Peter Maydell
2011-11-23 20:13                                     ` Mr Dash Four
2011-11-24 12:26                             ` Alon Levy
2011-11-24 12:57                               ` Peter Maydell
2011-11-23 18:34           ` Mr Dash Four
2011-11-23 14:18 ` Peter Maydell
2011-11-23 14:39   ` Mr Dash Four

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=4ECD47DD.90701@googlemail.com \
    --to=mr.dash.four@googlemail.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.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.