Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680628 - 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
Summary: app-crypt/gcr - In file included from gck/gck-mock.c:22: /usr/include/glib-2....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-16 17:58 UTC by tt_1
Modified: 2019-12-05 11:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
compressed build log (gcr-3.28.0-failed-cross-build.log.gz,7.19 KB, application/gzip)
2019-03-16 17:58 UTC, tt_1
Details
emerge --info from cross-emerge (emerge-info,4.90 KB, text/plain)
2019-03-16 17:59 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
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.