Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 680628

Summary: app-crypt/gcr - In file included from gck/gck-mock.c:22: /usr/include/glib-2.0/glib/gtypes.h: In function ‘_GLIB_CHECKED_ADD_U64’: /usr/include/glib-2.0/glib/gmacros.h:277:53: error: size of array ‘_GStaticAssertCompileTimeAssertion_0’ is negative
Product: Gentoo Linux Reporter: tt_1 <herrtimson>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: compressed build log
emerge --info from cross-emerge

Description tt_1 2019-03-16 17:58:51 UTC
Created attachment 569388 [details]
compressed build log

I think this happens because of using hosts pkg-config, which leads to pulling the hosts headers into the cross-compile. 

Is there a way to fix this within the build? cross-compiling without portage works, as long as 

export PKG_CONFIG=/usr/bin/armv7a-unknown-linux-gnueabihf-pkg-config 

is set before ./configure
Comment 1 tt_1 2019-03-16 17:59:11 UTC
Created attachment 569390 [details]
emerge --info from cross-emerge
Comment 3 tt_1 2019-10-06 13:06:57 UTC
a suitable patch for gcr-3.28.1 can be cherry picked from:
Comment 4 tt_1 2019-10-10 07:39:59 UTC
need to run eautoconf in src_configure, obviously.