Re: Linker failures trying to build static qemu-user binary

2023-02-09 Thread Ilya Leoshkevich
On Thu, 2023-02-09 at 14:14 +, Peter Maydell wrote: > On Thu, 9 Feb 2023 at 13:54, John Paul Adrian Glaubitz > wrote: > > > > Hi! > > > > I usually build a static qemu-user binary from the git source using > > the following > > configure line: > > > > export ARCH=m68k && ./configure --targe

Re: Linker failures trying to build static qemu-user binary

2023-02-09 Thread John Paul Adrian Glaubitz
On Thu, 2023-02-09 at 14:23 +, Peter Maydell wrote: > > So, just include "-ldl" in LD_FLAGS? > > If this is necessary, then pkg-config should tell us to do it :-) > > But in the usual situation that you put the statically linked > QEMU binary into a chroot, the dlopen() that libdw is going to

Re: Linker failures trying to build static qemu-user binary

2023-02-09 Thread Peter Maydell
On Thu, 9 Feb 2023 at 14:21, John Paul Adrian Glaubitz wrote: > > Hi! > > On Thu, 2023-02-09 at 14:14 +, Peter Maydell wrote: > > The "Using getpwuid in statically linked applications" etc warnings > > are expected, so we can ignore those; this is the key error: > > OK. > > > > /usr/bin/ld: /u

Re: Linker failures trying to build static qemu-user binary

2023-02-09 Thread John Paul Adrian Glaubitz
Hi! On Thu, 2023-02-09 at 14:14 +, Peter Maydell wrote: > The "Using getpwuid in statically linked applications" etc warnings > are expected, so we can ignore those; this is the key error: OK. > > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libdw.a(debuginfod-client.o): in > > function `__libdwf

Re: Linker failures trying to build static qemu-user binary

2023-02-09 Thread Peter Maydell
On Thu, 9 Feb 2023 at 13:54, John Paul Adrian Glaubitz wrote: > > Hi! > > I usually build a static qemu-user binary from the git source using the > following > configure line: > > export ARCH=m68k && ./configure --target-list=$ARCH-linux-user --static > --disable-rdma \ > --d

Linker failures trying to build static qemu-user binary

2023-02-09 Thread John Paul Adrian Glaubitz
Hi! I usually build a static qemu-user binary from the git source using the following configure line: export ARCH=m68k && ./configure --target-list=$ARCH-linux-user --static --disable-rdma \ --disable-pie --disable-system --disable-xen --disable-pvrdma \