vivier / qemu-m68k

Other
41 stars 7 forks source link

ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T. You probably need to set PKG_CONFIG_LIBDIR to point to the right pkg-config files for your build target #37

Closed mgood7123 closed 5 years ago

mgood7123 commented 5 years ago
[ blackarch@mobile_c git ]$ git clone https://github.com/vivier/qemu-m68k.git
Cloning into 'qemu-m68k'...
remote: Enumerating objects: 2640, done.
remote: Counting objects: 100% (2640/2640), done.
remote: Compressing objects: 100% (1191/1191), done.
remote: Total 412402 (delta 1650), reused 1966 (delta 1444), pack-reused 409762
Receiving objects: 100% (412402/412402), 151.20 MiB | 716.00 KiB/s, done.
Resolving deltas: 100% (337633/337633), done.
Checking out files: 100% (6484/6484), done.
[ blackarch@mobile_c git ]$ cd qemu-m68k/
[ blackarch@mobile_c qemu-m68k ]$ git checkout m68k-dev
Branch 'm68k-dev' set up to track remote branch 'm68k-dev' from 'origin'.
Switched to a new branch 'm68k-dev'
[ blackarch@mobile_c qemu-m68k ]$ ./configure --target-list=m68k-linux-user --static --disable-glusterfs

ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T.
       You probably need to set PKG_CONFIG_LIBDIR
       to point to the right pkg-config files for your
       build target

[ blackarch@mobile_c qemu-m68k ]$ 
glaubitz commented 5 years ago

Which distributions and which architecture is this? You might be missing the pkg-config files (.pc) on your machine for glib. On Debian, building qemu-m68k works fine with the configure settings above after installing the build dependencies with apt build-dep qemu.

vivier commented 5 years ago

You should check config.log to have the exact error.

This can happen on fedora if you install the -devel packages but not the -static packages.