Error compiling Qemu-4.1 on Linux

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Error compiling Qemu-4.1 on Linux

Aijaz.Baig

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

 

Reply | Threaded
Open this post in threaded view
|

Re: Error compiling Qemu-4.1 on Linux

Daniel P. Berrangé
On Thu, Dec 05, 2019 at 01:40:11PM +0000, [hidden email] 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 :|


Reply | Threaded
Open this post in threaded view
|

RE: Error compiling Qemu-4.1 on Linux

Aijaz.Baig
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é <[hidden email]>
Sent: Thursday, December 5, 2019 8:06 PM
To: [hidden email]
Cc: [hidden email]
Subject: Re: Error compiling Qemu-4.1 on Linux


On Thu, Dec 05, 2019 at 01:40:11PM +0000, [hidden email] 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 :|




Reply | Threaded
Open this post in threaded view
|

Re: Error compiling Qemu-4.1 on Linux

Daniel P. Berrangé
On Fri, Dec 06, 2019 at 04:55:37PM +0000, [hidden email] 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 :|


Reply | Threaded
Open this post in threaded view
|

RE: Error compiling Qemu-4.1 on Linux

Aijaz.Baig
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é <[hidden email]>
Sent: Friday, December 6, 2019 10:38 PM
To: [hidden email]
Cc: [hidden email]
Subject: Re: Error compiling Qemu-4.1 on Linux


On Fri, Dec 06, 2019 at 04:55:37PM +0000, [hidden email] 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 :|




Reply | Threaded
Open this post in threaded view
|

RE: Error compiling Qemu-4.1 on Linux

Aijaz.Baig
Hello

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

Keen to hear

-----Original Message-----
From: [hidden email] <[hidden email]>
Sent: Saturday, December 7, 2019 11:25 AM
To: 'Daniel P. Berrangé' <[hidden email]>
Cc: [hidden email]
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é <[hidden email]>
Sent: Friday, December 6, 2019 10:38 PM
To: [hidden email]
Cc: [hidden email]
Subject: Re: Error compiling Qemu-4.1 on Linux


On Fri, Dec 06, 2019 at 04:55:37PM +0000, [hidden email] 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 :|