All of lore.kernel.org
 help / color / mirror / Atom feed
* [QUESTION] Getting configure options for a given QEMU executable?
@ 2020-03-20  6:11 Aleksandar Markovic
  2020-03-20 10:03 ` Daniel P. Berrangé
  0 siblings, 1 reply; 3+ messages in thread
From: Aleksandar Markovic @ 2020-03-20  6:11 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

Hi,

Given a QEMU executable, is there a way to find out the configure options
it was built with?

(context: we frequently get bugs involving QEMU built for a particular
Linux distribution, and knowledge about its configure options would
certainly be helpful while reproducing and debugging)

Thanks,
Aleksandar

[-- Attachment #2: Type: text/html, Size: 425 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [QUESTION] Getting configure options for a given QEMU executable?
  2020-03-20  6:11 [QUESTION] Getting configure options for a given QEMU executable? Aleksandar Markovic
@ 2020-03-20 10:03 ` Daniel P. Berrangé
  2020-03-20 10:44   ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel P. Berrangé @ 2020-03-20 10:03 UTC (permalink / raw)
  To: Aleksandar Markovic; +Cc: qemu-devel

On Fri, Mar 20, 2020 at 07:11:03AM +0100, Aleksandar Markovic wrote:
> Hi,
> 
> Given a QEMU executable, is there a way to find out the configure options
> it was built with?

No, you need to get the original build logs.

The binary should contain the full build version (ie the QEMU version
and the distro specific package release).

On Fedora we build with the "annobin" plugin, which records some info
about GCC options in the binary, but that's still quite distinct from
any configure args.

> (context: we frequently get bugs involving QEMU built for a particular
> Linux distribution, and knowledge about its configure options would
> certainly be helpful while reproducing and debugging)

For Fedora the logs are all publically available at a predictable URL e.g.

https://kojipkgs.fedoraproject.org/packages/qemu/$VERSION/$RPM-RELEASE/data/logs/$ARCH/build.log

so 

https://kojipkgs.fedoraproject.org/packages/qemu/4.0.0/5.fc31/data/logs/x86_64/build.log

Not sure where other distros might store this info. If people have info
for more distros, perhaps we could create a wiki page making a list of
where each distro keeps its biuld logs ?

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [QUESTION] Getting configure options for a given QEMU executable?
  2020-03-20 10:03 ` Daniel P. Berrangé
@ 2020-03-20 10:44   ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-03-20 10:44 UTC (permalink / raw)
  To: Daniel P. Berrangé, Aleksandar Markovic; +Cc: qemu-devel

On 3/20/20 11:03 AM, Daniel P. Berrangé wrote:
> On Fri, Mar 20, 2020 at 07:11:03AM +0100, Aleksandar Markovic wrote:
>> Hi,
>>
>> Given a QEMU executable, is there a way to find out the configure options
>> it was built with?
> 
> No, you need to get the original build logs.
> 
> The binary should contain the full build version (ie the QEMU version
> and the distro specific package release).
> 
> On Fedora we build with the "annobin" plugin, which records some info
> about GCC options in the binary, but that's still quite distinct from
> any configure args.
> 
>> (context: we frequently get bugs involving QEMU built for a particular
>> Linux distribution, and knowledge about its configure options would
>> certainly be helpful while reproducing and debugging)

It should be fairly easy to add an array with the definitions filled by 
./configure:

- config-host.h
- TARGET-softmmu/config-target.h
- TARGET-softmmu/config-devices.h

> 
> For Fedora the logs are all publically available at a predictable URL e.g.
> 
> https://kojipkgs.fedoraproject.org/packages/qemu/$VERSION/$RPM-RELEASE/data/logs/$ARCH/build.log
> 
> so
> 
> https://kojipkgs.fedoraproject.org/packages/qemu/4.0.0/5.fc31/data/logs/x86_64/build.log
> 
> Not sure where other distros might store this info. If people have info
> for more distros, perhaps we could create a wiki page making a list of
> where each distro keeps its biuld logs ?
> 
> Regards,
> Daniel
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-20 10:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20  6:11 [QUESTION] Getting configure options for a given QEMU executable? Aleksandar Markovic
2020-03-20 10:03 ` Daniel P. Berrangé
2020-03-20 10:44   ` Philippe Mathieu-Daudé

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.