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....
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
Depends on:
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: ---

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
emerge --info from cross-emerge (emerge-info,4.90 KB, text/plain)
2019-03-16 17:59 UTC, tt_1

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:
Comment 4 tt_1 2019-10-10 07:39:59 UTC
need to run eautoconf in src_configure, obviously.