ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T.

Bug #1579565 reported by luigiburdo
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QEMU
Invalid
Undecided
Unassigned

Bug Description

cont build from last 2.6 rc4

~/Downloads/qemu-2.6.0-rc4$ ./configure

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

Os Ubuntu Mate 16.04 PPC64

Revision history for this message
Stefan Weil (ubuntu-weilnetz) wrote :
Changed in qemu:
status: New → Fix Committed
Revision history for this message
Peter Maydell (pmaydell) wrote :

The problem could also be that your build environment is broken in the way the warning is trying to diagnose (for instance that you have the 32-bit PPC glib development packages installed and not the 64-bit ones.)

Revision history for this message
luigiburdo (intermediadc) wrote :

thanks for the infos
Stefan i will check tomorrow and report.
Peter, yes this is an issue of the powerpc64 of ubuntu/debian the ppc64 libraries are half ported usually i fix changing in the makefile -m32 where -m64 is call i will try to force the flags on configure of qemu too. i will report if success or not.

Revision history for this message
luigiburdo (intermediadc) wrote :

Peter just try forcing the cpp flagas with -m32 without success.
On this rc configure dont start build ..
CPPFLAGS="-m32" CFLAGS="-g -O2 -mcpu=e5500 -mno-altivec -mtune=e5500" CXXFLAGS="-m32 -g -O2 -mcpu=e5500 -mno-altivec -mtune=e5500" ./configure --disable-werror

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

will check Stefan parch if something change and reports.

Thanks

Revision history for this message
Daniel Berrange (berrange) wrote :

If you can still see the bug after applying Stefan's patch, please attach the config.log file generated by configure

Revision history for this message
luigiburdo (intermediadc) wrote :

Ok Daniel, will check and report.
note usually on PPC we use ad default compiler GCC (5.3.1 now).
I been installed clang 3.8 and will check report if all will right.

Thanks

Revision history for this message
luigiburdo (intermediadc) wrote :

Hi guys, did the patch but same error appear.
i attached the config.log.

Revision history for this message
Daniel Berrange (berrange) wrote :

Ok so the log message associated with the failure is this:

cc -m32 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/local/include -I/usr/include/libpng12 -pthread -I/usr/include/glib-2.0 -I/usr/lib/powerpc-linux-gnu/glib-2.0/include -g -o config-temp/qemu-conf.exe config-temp/qemu-conf.c -m32 -g -lgthread-2.0 -pthread -lglib-2.0 -lz
In file included from /usr/include/glib-2.0/glib.h:79:0,
                 from config-temp/qemu-conf.c:1:
/usr/include/glib-2.0/glib/gstrfuncs.h:301:2: error: #endif without #if
 #endif /* __G_STRFUNCS_H__ */

Which rather suggests your glib header files are broken.

Revision history for this message
luigiburdo (intermediadc) wrote :

Hi Daniel i dont know
from this last i have this issue other versions was building right .
im affraid i deleted the rc3 i just make a test with 2.5.1 and you can see configure work, like was working in past.

Revision history for this message
luigiburdo (intermediadc) wrote :

rc5 same issue

./configure

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

thanks

Revision history for this message
Peter Maydell (pmaydell) wrote :

I think Daniel is right -- your glib headers are broken, and we just weren't diagnosing it before. You need to fix your glib install.

Revision history for this message
luigiburdo (intermediadc) wrote :

Hi Perter,
probalby ... i found something wrongs inside my ppc64 library , im clearing and reinstall the glib . report it soon

Revision history for this message
luigiburdo (intermediadc) wrote :

Yes Fixed guys.
configure reply right . can close this bug , that was not a qemu bug.

Changed in qemu:
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.