* [Qemu-devel] QEMU static build @ 2008-01-16 10:20 Salil Bijur 2008-01-16 11:18 ` Mulyadi Santosa 0 siblings, 1 reply; 11+ messages in thread From: Salil Bijur @ 2008-01-16 10:20 UTC (permalink / raw) To: qemu-devel Hello, I've been trying to build QEMU statically by first configuring it using the --static option. The compiling gives me the same linker errors as mentioned here: http://www.mail-archive.com/qemu-devel@nongnu.org/msg10721.html I know this has been asked before but it hasn't been followed up. Any ideas on how to fix this? Salil ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] QEMU static build 2008-01-16 10:20 [Qemu-devel] QEMU static build Salil Bijur @ 2008-01-16 11:18 ` Mulyadi Santosa 2008-01-16 11:48 ` Salil Bijur 0 siblings, 1 reply; 11+ messages in thread From: Mulyadi Santosa @ 2008-01-16 11:18 UTC (permalink / raw) To: qemu-devel Hi On Jan 16, 2008 5:20 PM, Salil Bijur <salilbijur@gmail.com> wrote: > Hello, > > I've been trying to build QEMU statically by first configuring it > using the --static option. The compiling gives me the same linker > errors as mentioned here: > http://www.mail-archive.com/qemu-devel@nongnu.org/msg10721.html > > I know this has been asked before but it hasn't been followed up. Any > ideas on how to fix this? What do you want to do? to debug it? if yes, maybe you just want the unstripped binary? dig qemu-devel and qemu-forum.... or at least try the binary in target-i386..i believe it's unstripped. Can check it here, because my box use gcc 4.x regards, Mulyadi. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] QEMU static build 2008-01-16 11:18 ` Mulyadi Santosa @ 2008-01-16 11:48 ` Salil Bijur 2008-01-16 11:59 ` Mulyadi Santosa 2008-01-16 12:29 ` Christian Ehrhardt 0 siblings, 2 replies; 11+ messages in thread From: Salil Bijur @ 2008-01-16 11:48 UTC (permalink / raw) To: qemu-devel On Jan 16, 2008 4:48 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote: > Hi > > > On Jan 16, 2008 5:20 PM, Salil Bijur <salilbijur@gmail.com> wrote: > > Hello, > > > > I've been trying to build QEMU statically by first configuring it > > using the --static option. The compiling gives me the same linker > > errors as mentioned here: > > http://www.mail-archive.com/qemu-devel@nongnu.org/msg10721.html > > > > I know this has been asked before but it hasn't been followed up. Any > > ideas on how to fix this? > > What do you want to do? to debug it? if yes, maybe you just want the > unstripped binary? dig qemu-devel and qemu-forum.... or at least try > the binary in target-i386..i believe it's unstripped. Can check it > here, because my box use gcc 4.x > I'm trying to build qemu-system-arm so my configure command is "./configure --target-list=arm-softmmu --static". I need a static build to overcome dynamic library dependency issues. Doing a 'make' with the above configure command breaks. I haven't found a solution on the forums. Thanks, Salil ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] QEMU static build 2008-01-16 11:48 ` Salil Bijur @ 2008-01-16 11:59 ` Mulyadi Santosa 2008-01-16 12:29 ` Christian Ehrhardt 1 sibling, 0 replies; 11+ messages in thread From: Mulyadi Santosa @ 2008-01-16 11:59 UTC (permalink / raw) To: qemu-devel Hi.. On Jan 16, 2008 6:48 PM, Salil Bijur <salilbijur@gmail.com> wrote: > I'm trying to build qemu-system-arm so my configure command is > "./configure --target-list=arm-softmmu --static". I need a static > build to overcome dynamic library dependency issues. Doing a 'make' > with the above configure command breaks. I haven't found a solution on > the forums. Hmmm, from what I see...sounds like pthreads libs don't have static version..I might be wrong here. regards, Mulyadi. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] QEMU static build 2008-01-16 11:48 ` Salil Bijur 2008-01-16 11:59 ` Mulyadi Santosa @ 2008-01-16 12:29 ` Christian Ehrhardt 2008-01-16 12:59 ` Salil Bijur 1 sibling, 1 reply; 11+ messages in thread From: Christian Ehrhardt @ 2008-01-16 12:29 UTC (permalink / raw) To: qemu-devel Salil Bijur wrote: > On Jan 16, 2008 4:48 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote: >> Hi >> >> >> On Jan 16, 2008 5:20 PM, Salil Bijur <salilbijur@gmail.com> wrote: >>> Hello, >>> >>> I've been trying to build QEMU statically by first configuring it >>> using the --static option. The compiling gives me the same linker >>> errors as mentioned here: >>> http://www.mail-archive.com/qemu-devel@nongnu.org/msg10721.html >>> >>> I know this has been asked before but it hasn't been followed up. Any >>> ideas on how to fix this? >> What do you want to do? to debug it? if yes, maybe you just want the >> unstripped binary? dig qemu-devel and qemu-forum.... or at least try >> the binary in target-i386..i believe it's unstripped. Can check it >> here, because my box use gcc 4.x >> > > I'm trying to build qemu-system-arm so my configure command is > "./configure --target-list=arm-softmmu --static". I need a static > build to overcome dynamic library dependency issues. Doing a 'make' > with the above configure command breaks. I haven't found a solution on > the forums. > > Thanks, > Salil I sometimes use a static build for the same reasons on ppc. I did not have the same issue but I usually set LDFLAGS="$LDFLAGS -pthread" before doing configure&make. Maybe it's worth a try if this helps your linker to find the pthread functions. -- Grüsse / regards, Christian Ehrhardt IBM Linux Technology Center, Open Virtualization ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] QEMU static build 2008-01-16 12:29 ` Christian Ehrhardt @ 2008-01-16 12:59 ` Salil Bijur 2008-01-16 13:04 ` Samuel Thibault 2008-01-16 13:20 ` Christian Ehrhardt 0 siblings, 2 replies; 11+ messages in thread From: Salil Bijur @ 2008-01-16 12:59 UTC (permalink / raw) To: qemu-devel On Jan 16, 2008 5:59 PM, Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> wrote: > > Salil Bijur wrote: > > On Jan 16, 2008 4:48 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote: > >> Hi > >> > >> > >> On Jan 16, 2008 5:20 PM, Salil Bijur <salilbijur@gmail.com> wrote: > >>> Hello, > >>> > >>> I've been trying to build QEMU statically by first configuring it > >>> using the --static option. The compiling gives me the same linker > >>> errors as mentioned here: > >>> http://www.mail-archive.com/qemu-devel@nongnu.org/msg10721.html > >>> > >>> I know this has been asked before but it hasn't been followed up. Any > >>> ideas on how to fix this? > >> What do you want to do? to debug it? if yes, maybe you just want the > >> unstripped binary? dig qemu-devel and qemu-forum.... or at least try > >> the binary in target-i386..i believe it's unstripped. Can check it > >> here, because my box use gcc 4.x > >> > > > > I'm trying to build qemu-system-arm so my configure command is > > "./configure --target-list=arm-softmmu --static". I need a static > > build to overcome dynamic library dependency issues. Doing a 'make' > > with the above configure command breaks. I haven't found a solution on > > the forums. > > > > Thanks, > > Salil > > I sometimes use a static build for the same reasons on ppc. > I did not have the same issue but I usually set LDFLAGS="$LDFLAGS -pthread" before doing configure&make. > Maybe it's worth a try if this helps your linker to find the pthread functions. > Thanks - I did 'export LDFLAGS="$LDFLAGS -pthread"' before configure and it compiles further. But there are further linker errors with respect to libasound (for ALSA) and libSDL. This can be solved by adding -ldl, -lartsc, etc. for every dependency of these libs but would be very tedious, especially for libSDL. Any better solution? ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] QEMU static build 2008-01-16 12:59 ` Salil Bijur @ 2008-01-16 13:04 ` Samuel Thibault 2008-01-16 13:20 ` Christian Ehrhardt 1 sibling, 0 replies; 11+ messages in thread From: Samuel Thibault @ 2008-01-16 13:04 UTC (permalink / raw) To: qemu-devel Salil Bijur, le Wed 16 Jan 2008 18:29:31 +0530, a écrit : > But there are further linker errors with respect to libasound (for > ALSA) and libSDL. This can be solved by adding -ldl, -lartsc, etc. for > every dependency of these libs but would be very tedious, especially > for libSDL. Any better solution? That's a libSDL bug: sdl-config --static-libs should report all of them, but it looks like it doesn't. Samuel ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] QEMU static build 2008-01-16 12:59 ` Salil Bijur 2008-01-16 13:04 ` Samuel Thibault @ 2008-01-16 13:20 ` Christian Ehrhardt 2008-01-16 13:28 ` Salil Bijur 1 sibling, 1 reply; 11+ messages in thread From: Christian Ehrhardt @ 2008-01-16 13:20 UTC (permalink / raw) To: qemu-devel Salil Bijur wrote: > On Jan 16, 2008 5:59 PM, Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> wrote: >> Salil Bijur wrote: >>> On Jan 16, 2008 4:48 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote: >>>> Hi >>>> >>>> >>>> On Jan 16, 2008 5:20 PM, Salil Bijur <salilbijur@gmail.com> wrote: >>>>> Hello, >>>>> >>>>> I've been trying to build QEMU statically by first configuring it >>>>> using the --static option. The compiling gives me the same linker >>>>> errors as mentioned here: >>>>> http://www.mail-archive.com/qemu-devel@nongnu.org/msg10721.html >>>>> >>>>> I know this has been asked before but it hasn't been followed up. Any >>>>> ideas on how to fix this? >>>> What do you want to do? to debug it? if yes, maybe you just want the >>>> unstripped binary? dig qemu-devel and qemu-forum.... or at least try >>>> the binary in target-i386..i believe it's unstripped. Can check it >>>> here, because my box use gcc 4.x >>>> >>> I'm trying to build qemu-system-arm so my configure command is >>> "./configure --target-list=arm-softmmu --static". I need a static >>> build to overcome dynamic library dependency issues. Doing a 'make' >>> with the above configure command breaks. I haven't found a solution on >>> the forums. >>> >>> Thanks, >>> Salil >> I sometimes use a static build for the same reasons on ppc. >> I did not have the same issue but I usually set LDFLAGS="$LDFLAGS -pthread" before doing configure&make. >> Maybe it's worth a try if this helps your linker to find the pthread functions. >> > > Thanks - I did 'export LDFLAGS="$LDFLAGS -pthread"' before configure > and it compiles further. > > But there are further linker errors with respect to libasound (for > ALSA) and libSDL. This can be solved by adding -ldl, -lartsc, etc. for > every dependency of these libs but would be very tedious, especially > for libSDL. Any better solution? > The question is if you really need SDL for your environment - if not you can just add "--disable-sdl" and do the same with everything else e.g. alsa that is missing but not really needed. -- Grüsse / regards, Christian Ehrhardt IBM Linux Technology Center, Open Virtualization ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] QEMU static build 2008-01-16 13:20 ` Christian Ehrhardt @ 2008-01-16 13:28 ` Salil Bijur 2008-01-16 15:45 ` Thiemo Seufer 0 siblings, 1 reply; 11+ messages in thread From: Salil Bijur @ 2008-01-16 13:28 UTC (permalink / raw) To: qemu-devel On Jan 16, 2008 6:50 PM, Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> wrote: > > Salil Bijur wrote: > > On Jan 16, 2008 5:59 PM, Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> wrote: > >> Salil Bijur wrote: > >>> On Jan 16, 2008 4:48 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com> wrote: > >>>> Hi > >>>> > >>>> > >>>> On Jan 16, 2008 5:20 PM, Salil Bijur <salilbijur@gmail.com> wrote: > >>>>> Hello, > >>>>> > >>>>> I've been trying to build QEMU statically by first configuring it > >>>>> using the --static option. The compiling gives me the same linker > >>>>> errors as mentioned here: > >>>>> http://www.mail-archive.com/qemu-devel@nongnu.org/msg10721.html > >>>>> > >>>>> I know this has been asked before but it hasn't been followed up. Any > >>>>> ideas on how to fix this? > >>>> What do you want to do? to debug it? if yes, maybe you just want the > >>>> unstripped binary? dig qemu-devel and qemu-forum.... or at least try > >>>> the binary in target-i386..i believe it's unstripped. Can check it > >>>> here, because my box use gcc 4.x > >>>> > >>> I'm trying to build qemu-system-arm so my configure command is > >>> "./configure --target-list=arm-softmmu --static". I need a static > >>> build to overcome dynamic library dependency issues. Doing a 'make' > >>> with the above configure command breaks. I haven't found a solution on > >>> the forums. > >>> > >>> Thanks, > >>> Salil > >> I sometimes use a static build for the same reasons on ppc. > >> I did not have the same issue but I usually set LDFLAGS="$LDFLAGS -pthread" before doing configure&make. > >> Maybe it's worth a try if this helps your linker to find the pthread functions. > >> > > > > Thanks - I did 'export LDFLAGS="$LDFLAGS -pthread"' before configure > > and it compiles further. > > > > But there are further linker errors with respect to libasound (for > > ALSA) and libSDL. This can be solved by adding -ldl, -lartsc, etc. for > > every dependency of these libs but would be very tedious, especially > > for libSDL. Any better solution? > > > > The question is if you really need SDL for your environment - if not you can just add "--disable-sdl" and do the same with everything else e.g. alsa that is missing but not really needed. > I do need both alsa and SDL. Currently I'm getting the libraries from apt-get. Is it a good idea to rebuild them from sources? ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] QEMU static build 2008-01-16 13:28 ` Salil Bijur @ 2008-01-16 15:45 ` Thiemo Seufer 2008-01-18 8:00 ` Salil Bijur 0 siblings, 1 reply; 11+ messages in thread From: Thiemo Seufer @ 2008-01-16 15:45 UTC (permalink / raw) To: Salil Bijur; +Cc: qemu-devel Salil Bijur wrote: [snip] > > > But there are further linker errors with respect to libasound (for > > > ALSA) and libSDL. This can be solved by adding -ldl, -lartsc, etc. for > > > every dependency of these libs but would be very tedious, especially > > > for libSDL. Any better solution? > > > > > > > The question is if you really need SDL for your environment - if not you can just add "--disable-sdl" and do the same with everything else e.g. alsa that is missing but not really needed. > > > > I do need both alsa and SDL. Currently I'm getting the libraries from > apt-get. Is it a good idea to rebuild them from sources? Why would you need SDL for userland emulation, I wonder? Thiemo ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Qemu-devel] QEMU static build 2008-01-16 15:45 ` Thiemo Seufer @ 2008-01-18 8:00 ` Salil Bijur 0 siblings, 0 replies; 11+ messages in thread From: Salil Bijur @ 2008-01-18 8:00 UTC (permalink / raw) To: Thiemo Seufer; +Cc: qemu-devel On Jan 16, 2008 9:15 PM, Thiemo Seufer <ths@networkno.de> wrote: > Salil Bijur wrote: > [snip] > > > > But there are further linker errors with respect to libasound (for > > > > ALSA) and libSDL. This can be solved by adding -ldl, -lartsc, etc. for > > > > every dependency of these libs but would be very tedious, especially > > > > for libSDL. Any better solution? > > > > > > > > > > The question is if you really need SDL for your environment - if not you can just add "--disable-sdl" and do the same with everything else e.g. alsa that is missing but not really needed. > > > > > > > I do need both alsa and SDL. Currently I'm getting the libraries from > > apt-get. Is it a good idea to rebuild them from sources? > > Why would you need SDL for userland emulation, I wonder? > I need SDL to emulate the framebuffer display. Salil ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-01-18 8:01 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-01-16 10:20 [Qemu-devel] QEMU static build Salil Bijur 2008-01-16 11:18 ` Mulyadi Santosa 2008-01-16 11:48 ` Salil Bijur 2008-01-16 11:59 ` Mulyadi Santosa 2008-01-16 12:29 ` Christian Ehrhardt 2008-01-16 12:59 ` Salil Bijur 2008-01-16 13:04 ` Samuel Thibault 2008-01-16 13:20 ` Christian Ehrhardt 2008-01-16 13:28 ` Salil Bijur 2008-01-16 15:45 ` Thiemo Seufer 2008-01-18 8:00 ` Salil Bijur
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).