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>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
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: 

https://gitlab.gnome.org/GNOME/gcr/commit/1479bda8d36ed7b167a003e016b426ae615c6f33?merge_request_iid=20
Comment 4 tt_1 2019-10-10 07:39:59 UTC
need to run eautoconf in src_configure, obviously.