Skip to contentSkip to conversation

Error compiling Qemu-4.1 on Linux

DISCUSSION [email protected] 3 participants 7 messages Dec 5, 2019 – Jun 22, 2020

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 11 lines · On Thu, Dec 05, 2019 at 01:40:11PM +0000, [email protected] 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.

Quoted 1 line

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

Signature · 3 lines
|: 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 :|
#2 lore raw

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

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

Quoted 7 lines

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.

Quoted 1 line

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 :|
#3 lore raw
Quoted 3 lines · On Fri, Dec 06, 2019 at 04:55:37PM +0000, [email protected] 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

Signature · 3 lines
|: 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 :|
#4 lore raw

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

Quoted 4 lines · On Fri, Dec 06, 2019 at 04:55:37PM +0000, [email protected] 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 :|
#5 lore raw

Hello

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

Keen to hear

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

Quoted 4 lines · On Fri, Dec 06, 2019 at 04:55:37PM +0000, [email protected] 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 :|
#6 lore raw

Hi,

Quoted 54 lines · On Sun, Dec 15, 2019 at 2:40 PM <[email protected]> wrote:

Hello

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

Keen to hear

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

Quoted 4 lines · On Fri, Dec 06, 2019 at 04:55:37PM +0000, [email protected] 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.

Quoted 8 lines

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