[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug 1878348] Re: --static build fails in v5.0 (since 5010cec2bc87dafab3
From: |
Peter Maydell |
Subject: |
[Bug 1878348] Re: --static build fails in v5.0 (since 5010cec2bc87dafab39b3913c8ca91f88df9c540) |
Date: |
Fri, 15 May 2020 10:25:03 -0000 |
Some people want the system emulation to be statically linked, which is
why we don't refuse to do it entirely; and static vs not changes a bunch
of stuff like CFLAGS which we assume to be common across the whole
build. So if you want some statically linked binaries and some not
statically linked, then yes, you should configure and build twice. (Use
separate build directories, one for each config.)
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1878348
Title:
--static build fails in v5.0 (since
5010cec2bc87dafab39b3913c8ca91f88df9c540)
Status in QEMU:
New
Bug description:
Hi,
Since commit 5010cec2bc87dafab39b3913c8ca91f88df9c540, building qemu
fails when configured with --static (eg ../configure --target-
list=x86_64-softmmu,x86_64-linux-user --enable-debug --static).
On ubuntu 16.04, it fails to find -lffi and -lselinux.
After I apt-get install libffi-dev libselinux1-dev, the build still fails:
../backends/dbus-vmstate.o: In function
`_nocheck__trace_dbus_vmstate_pre_save':
/home/christophe.lyon/src/qemu/build-static/backends/trace.h:29: undefined
reference to `_TRACE_DBUS_VMSTATE_PRE_SAVE_DSTATE'
../backends/dbus-vmstate.o: In function
`_nocheck__trace_dbus_vmstate_post_load':
/home/christophe.lyon/src/qemu/build-static/backends/trace.h:52: undefined
reference to `_TRACE_DBUS_VMSTATE_POST_LOAD_DSTATE'
../backends/dbus-vmstate.o: In function
`_nocheck__trace_dbus_vmstate_loading':
/home/christophe.lyon/src/qemu/build-static/backends/trace.h:75: undefined
reference to `_TRACE_DBUS_VMSTATE_LOADING_DSTATE'
../backends/dbus-vmstate.o: In function `_nocheck__trace_dbus_vmstate_saving':
/home/christophe.lyon/src/qemu/build-static/backends/trace.h:98: undefined
reference to `_TRACE_DBUS_VMSTATE_SAVING_DSTATE'
collect2: error: ld returned 1 exit status
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1878348/+subscriptions
- [Bug 1878348] [NEW] --static build fails in v5.0 (since 5010cec2bc87dafab39b3913c8ca91f88df9c540), Christophe Lyon, 2020/05/13
- [Bug 1878348] Re: --static build fails in v5.0 (since 5010cec2bc87dafab39b3913c8ca91f88df9c540), Laurent Vivier, 2020/05/14
- [Bug 1878348] Re: --static build fails in v5.0 (since 5010cec2bc87dafab39b3913c8ca91f88df9c540), Christophe Lyon, 2020/05/14
- [Bug 1878348] Re: --static build fails in v5.0 (since 5010cec2bc87dafab39b3913c8ca91f88df9c540), Daniel Berrange, 2020/05/14
- [Bug 1878348] Re: --static build fails in v5.0 (since 5010cec2bc87dafab39b3913c8ca91f88df9c540), Peter Maydell, 2020/05/14
- [Bug 1878348] Re: --static build fails in v5.0 (since 5010cec2bc87dafab39b3913c8ca91f88df9c540), Christophe Lyon, 2020/05/15
- [Bug 1878348] Re: --static build fails in v5.0 (since 5010cec2bc87dafab39b3913c8ca91f88df9c540), Philippe Mathieu-Daudé, 2020/05/15
- [Bug 1878348] Re: --static build fails in v5.0 (since 5010cec2bc87dafab39b3913c8ca91f88df9c540), Christophe Lyon, 2020/05/15
- [Bug 1878348] Re: --static build fails in v5.0 (since 5010cec2bc87dafab39b3913c8ca91f88df9c540),
Peter Maydell <=