All of lore.kernel.org
 help / color / mirror / Atom feed
* Error compiling Qemu-4.1 on Linux
@ 2019-12-05 13:40 Aijaz.Baig
  2019-12-05 14:36 ` Daniel P. Berrangé
  0 siblings, 1 reply; 7+ messages in thread
From: Aijaz.Baig @ 2019-12-05 13:40 UTC (permalink / raw)
  To: qemu-devel

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

Hello

I’m trying to compile Qemu from sources and as such face the well known errors of requiring Glib-2.4 and gthread-2.0

ERROR: glib-2.40 gthread-2.0 is required to compile QEMU

I’m on Linux Mint and I’ve installed libglib-2.0 from the repo

AB1@piper11:~$ dpkg -l | grep -i libglib

ii  libglib-object-introspection-perl     0.042-1                           amd64        Perl bindings for gobject-introspection libraries

ii  libglib-perl                          3:1.324-1                         amd64        interface to the GLib and GObject libraries

ii  libglib2.0-0:amd64                    2.50.3-2+deb9u1                   amd64        GLib library of C routines

ii  libglib2.0-0-dbg:amd64                2.50.3-2+deb9u1                   amd64        Debugging symbols for the GLib libraries

ii  libglib2.0-bin                        2.50.3-2+deb9u1                   amd64        Programs for the GLib library

ii  libglib2.0-cil                        2.12.40-2                         amd64        CLI binding for the GLib utility library 2.12

ii  libglib2.0-cil-dev                    2.12.40-2                         amd64        CLI binding for the GLib utility library 2.12

ii  libglib2.0-data                       2.50.3-2+deb9u1                   all          Common files for GLib library

ii  libglib2.0-dev                        2.50.3-2+deb9u1                   amd64        Development files for the GLib library

ii  libglib2.0-doc                        2.50.3-2+deb9u1                   all          Documentation files for the GLib library

ii  libglib2.0-tests                      2.50.3-2+deb9u1                   amd64        GLib library of C routines - installed tests

ii  libglibmm-2.4-1v5:amd64               2.50.0-1                          amd64        C++ wrapper for the GLib toolkit (shared libraries)

I am wondering what is it that I am missing. Kindly guide

Regards

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

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

* Re: Error compiling Qemu-4.1 on Linux
  2019-12-05 13:40 Error compiling Qemu-4.1 on Linux Aijaz.Baig
@ 2019-12-05 14:36 ` Daniel P. Berrangé
  2019-12-06 16:55   ` Aijaz.Baig
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel P. Berrangé @ 2019-12-05 14:36 UTC (permalink / raw)
  To: Aijaz.Baig; +Cc: qemu-devel

On Thu, Dec 05, 2019 at 01:40:11PM +0000, Aijaz.Baig@protonmail.com wrote:
> Hello
> 
> I’m trying to compile Qemu from sources and as such face the well known errors of requiring Glib-2.4 and gthread-2.0
> 
> ERROR: glib-2.40 gthread-2.0 is required to compile QEMU
> 
> I’m on Linux Mint and I’ve installed libglib-2.0 from the repo
> 
> AB1@piper11:~$ dpkg -l | grep -i libglib
> 
> ii  libglib2.0-dev                        2.50.3-2+deb9u1                   amd64        Development files for the GLib library

This is the important one & looks fine.

> I am wondering what is it that I am missing. Kindly guide

Please paste the 'config.log' file after a failed configure, it often
has more debug info.

Also, what env/args (if any) are you passing to configure

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] 7+ messages in thread

* RE: Error compiling Qemu-4.1 on Linux
  2019-12-05 14:36 ` Daniel P. Berrangé
@ 2019-12-06 16:55   ` Aijaz.Baig
  2019-12-06 17:07     ` Daniel P. Berrangé
  0 siblings, 1 reply; 7+ messages in thread
From: Aijaz.Baig @ 2019-12-06 16:55 UTC (permalink / raw)
  To: 'Daniel P. Berrangé'; +Cc: qemu-devel

Here is the content of config.log: https://pastebin.com/6zrSXWAG

I am configuring it for 'arm-softmmu'  as can be seen from the above paste

Keen to know,
Aijaz Baig

-----Original Message-----
From: Daniel P. Berrangé <berrange@redhat.com> 
Sent: Thursday, December 5, 2019 8:06 PM
To: Aijaz.Baig@protonmail.com
Cc: qemu-devel@nongnu.org
Subject: Re: Error compiling Qemu-4.1 on Linux


On Thu, Dec 05, 2019 at 01:40:11PM +0000, Aijaz.Baig@protonmail.com wrote:
> Hello
>
> I’m trying to compile Qemu from sources and as such face the well 
> known errors of requiring Glib-2.4 and gthread-2.0
>
> ERROR: glib-2.40 gthread-2.0 is required to compile QEMU
>
> I’m on Linux Mint and I’ve installed libglib-2.0 from the repo
>
> AB1@piper11:~$ dpkg -l | grep -i libglib
>
> ii  libglib2.0-dev                        2.50.3-2+deb9u1                   amd64        Development files for the GLib library

This is the important one & looks fine.

> I am wondering what is it that I am missing. Kindly guide

Please paste the 'config.log' file after a failed configure, it often has more debug info.

Also, what env/args (if any) are you passing to configure

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] 7+ messages in thread

* Re: Error compiling Qemu-4.1 on Linux
  2019-12-06 16:55   ` Aijaz.Baig
@ 2019-12-06 17:07     ` Daniel P. Berrangé
  2019-12-07  5:55       ` Aijaz.Baig
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel P. Berrangé @ 2019-12-06 17:07 UTC (permalink / raw)
  To: Aijaz.Baig; +Cc: qemu-devel

On Fri, Dec 06, 2019 at 04:55:37PM +0000, Aijaz.Baig@protonmail.com wrote:
> Here is the content of config.log: https://pastebin.com/6zrSXWAG
> 
> I am configuring it for 'arm-softmmu'  as can be seen from the above paste

Looks like it is failing on

  $ pkg-config  --atleast-version=2.40 gthread-2.0

returning non-zero exit status.


This suggests the file:

  /usr/lib/x86_64-linux-gnu/pkgconfig/gthread-2.0.pc

is missing on your install.

Or do you have some PKG_CONFIG_LIBDIR env variable set that
is mistakenly pointing to a different directory.


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] 7+ messages in thread

* RE: Error compiling Qemu-4.1 on Linux
  2019-12-06 17:07     ` Daniel P. Berrangé
@ 2019-12-07  5:55       ` Aijaz.Baig
  2019-12-15  6:40         ` Aijaz.Baig
  0 siblings, 1 reply; 7+ messages in thread
From: Aijaz.Baig @ 2019-12-07  5:55 UTC (permalink / raw)
  To: 'Daniel P. Berrangé'; +Cc: qemu-devel

That file IS present and its contents are:

prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include

Name: GThread
Description: Thread support for GLib
Requires: glib-2.0
Version: 2.50.3
Libs: -L${libdir} -lgthread-2.0 -pthread
Cflags: -pthread

Let me know what is falling short here

Regards

-----Original Message-----
From: Daniel P. Berrangé <berrange@redhat.com> 
Sent: Friday, December 6, 2019 10:38 PM
To: Aijaz.Baig@protonmail.com
Cc: qemu-devel@nongnu.org
Subject: Re: Error compiling Qemu-4.1 on Linux


On Fri, Dec 06, 2019 at 04:55:37PM +0000, Aijaz.Baig@protonmail.com wrote:
> Here is the content of config.log: https://pastebin.com/6zrSXWAG
>
> I am configuring it for 'arm-softmmu'  as can be seen from the above 
> paste

Looks like it is failing on

  $ pkg-config  --atleast-version=2.40 gthread-2.0

returning non-zero exit status.


This suggests the file:

  /usr/lib/x86_64-linux-gnu/pkgconfig/gthread-2.0.pc

is missing on your install.

Or do you have some PKG_CONFIG_LIBDIR env variable set that is mistakenly pointing to a different directory.


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] 7+ messages in thread

* RE: Error compiling Qemu-4.1 on Linux
  2019-12-07  5:55       ` Aijaz.Baig
@ 2019-12-15  6:40         ` Aijaz.Baig
  2020-06-22  3:23           ` Bin Meng
  0 siblings, 1 reply; 7+ messages in thread
From: Aijaz.Baig @ 2019-12-15  6:40 UTC (permalink / raw)
  To: Aijaz.Baig, 'Daniel P. Berrangé'; +Cc: qemu-devel

Hello

Anything suspicious that anyone can spot in here?? Still cannot get qemu to compile

Keen to hear

-----Original Message-----
From: Aijaz.Baig@protonmail.com <Aijaz.Baig@protonmail.com> 
Sent: Saturday, December 7, 2019 11:25 AM
To: 'Daniel P. Berrangé' <berrange@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: RE: Error compiling Qemu-4.1 on Linux


That file IS present and its contents are:

prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include

Name: GThread
Description: Thread support for GLib
Requires: glib-2.0
Version: 2.50.3
Libs: -L${libdir} -lgthread-2.0 -pthread
Cflags: -pthread

Let me know what is falling short here

Regards

-----Original Message-----
From: Daniel P. Berrangé <berrange@redhat.com> 
Sent: Friday, December 6, 2019 10:38 PM
To: Aijaz.Baig@protonmail.com
Cc: qemu-devel@nongnu.org
Subject: Re: Error compiling Qemu-4.1 on Linux


On Fri, Dec 06, 2019 at 04:55:37PM +0000, Aijaz.Baig@protonmail.com wrote:
> Here is the content of config.log: https://pastebin.com/6zrSXWAG
>
> I am configuring it for 'arm-softmmu'  as can be seen from the above 
> paste

Looks like it is failing on

  $ pkg-config  --atleast-version=2.40 gthread-2.0

returning non-zero exit status.


This suggests the file:

  /usr/lib/x86_64-linux-gnu/pkgconfig/gthread-2.0.pc

is missing on your install.

Or do you have some PKG_CONFIG_LIBDIR env variable set that is mistakenly pointing to a different directory.


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] 7+ messages in thread

* Re: Error compiling Qemu-4.1 on Linux
  2019-12-15  6:40         ` Aijaz.Baig
@ 2020-06-22  3:23           ` Bin Meng
  0 siblings, 0 replies; 7+ messages in thread
From: Bin Meng @ 2020-06-22  3:23 UTC (permalink / raw)
  To: Aijaz.Baig; +Cc: Daniel P. Berrangé, qemu-devel@nongnu.org Developers

Hi,

On Sun, Dec 15, 2019 at 2:40 PM <Aijaz.Baig@protonmail.com> wrote:
>
> Hello
>
> Anything suspicious that anyone can spot in here?? Still cannot get qemu to compile
>
> Keen to hear
>
> -----Original Message-----
> From: Aijaz.Baig@protonmail.com <Aijaz.Baig@protonmail.com>
> Sent: Saturday, December 7, 2019 11:25 AM
> To: 'Daniel P. Berrangé' <berrange@redhat.com>
> Cc: qemu-devel@nongnu.org
> Subject: RE: Error compiling Qemu-4.1 on Linux
>
>
> That file IS present and its contents are:
>
> prefix=/usr
> exec_prefix=${prefix}
> libdir=${prefix}/lib/x86_64-linux-gnu
> includedir=${prefix}/include
>
> Name: GThread
> Description: Thread support for GLib
> Requires: glib-2.0
> Version: 2.50.3
> Libs: -L${libdir} -lgthread-2.0 -pthread
> Cflags: -pthread
>
> Let me know what is falling short here
>
> Regards
>
> -----Original Message-----
> From: Daniel P. Berrangé <berrange@redhat.com>
> Sent: Friday, December 6, 2019 10:38 PM
> To: Aijaz.Baig@protonmail.com
> Cc: qemu-devel@nongnu.org
> Subject: Re: Error compiling Qemu-4.1 on Linux
>
>
> On Fri, Dec 06, 2019 at 04:55:37PM +0000, Aijaz.Baig@protonmail.com wrote:
> > Here is the content of config.log: https://pastebin.com/6zrSXWAG
> >
> > I am configuring it for 'arm-softmmu'  as can be seen from the above
> > paste
>
> Looks like it is failing on
>
>   $ pkg-config  --atleast-version=2.40 gthread-2.0
>
> returning non-zero exit status.
>
>
> This suggests the file:
>
>   /usr/lib/x86_64-linux-gnu/pkgconfig/gthread-2.0.pc
>
> is missing on your install.
>
> Or do you have some PKG_CONFIG_LIBDIR env variable set that is mistakenly pointing to a different directory.
>

This is failing for me today after I cleaned up my build directory and
re-configured everything from scratch. Something is wrong in the
configure scripts?

Regards,
Bin


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

end of thread, other threads:[~2020-06-22  3:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-05 13:40 Error compiling Qemu-4.1 on Linux Aijaz.Baig
2019-12-05 14:36 ` Daniel P. Berrangé
2019-12-06 16:55   ` Aijaz.Baig
2019-12-06 17:07     ` Daniel P. Berrangé
2019-12-07  5:55       ` Aijaz.Baig
2019-12-15  6:40         ` Aijaz.Baig
2020-06-22  3:23           ` Bin Meng

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.