Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Feb 4, 2019 · 2 comments

Comments

@mgood7123
Copy link

[ 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
Copy link
Contributor

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
Copy link
Owner

vivier commented Sep 28, 2019

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.

@vivier vivier closed this as completed Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants