Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640678 - media-libs/harfbuzz-1.7.2 fails to emerge with gcc-6.4.0, macro expansion error
Summary: media-libs/harfbuzz-1.7.2 fails to emerge with gcc-6.4.0, macro expansion error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-11 13:37 UTC by Willard Dawson
Modified: 2017-12-15 21:12 UTC (History)
4 users (show)

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


Attachments
emerge info (emerge-info,19.47 KB, text/plain)
2017-12-11 13:37 UTC, Willard Dawson
Details
build log (build.log.gz,11.10 KB, application/octet-stream)
2017-12-11 13:38 UTC, Willard Dawson
Details
emerge -pqv (emerge-pqv,172 bytes, text/plain)
2017-12-11 13:39 UTC, Willard Dawson
Details
environment (environment,143.47 KB, text/plain)
2017-12-11 13:39 UTC, Willard Dawson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willard Dawson 2017-12-11 13:37:58 UTC
Created attachment 509346 [details]
emerge info

The usual files are attached. Here's the relevant portion of the build log:

libtool: compile:  x86_64-pc-linux-gnu-g++ -m32 -DHAVE_CONFIG_H -I. -I/mnt/disk-image4/portag
e/media-libs/harfbuzz-1.7.2/work/harfbuzz-1.7.2/src -I.. -pthread -I/usr/include/glib-2.0 -I/
usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/mnt/disk-image4/portage/media-libs/har
fbuzz-1.7.2/work/harfbuzz-1.7.2/src/hb-ucdn -DHB_NDEBUG -O2 -pipe -fno-rtti -fno-exceptions -
Wcast-align -fvisibility-inlines-hidden -c /mnt/disk-image4/portage/media-libs/harfbuzz-1.7.2
/work/harfbuzz-1.7.2/src/hb-glib.cc  -fPIC -DPIC -o .libs/libharfbuzz_la-hb-glib.o
In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9:0,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /mnt/disk-image4/portage/media-libs/harfbuzz-1.7.2/work/harfbuzz-1.7.2/
src/hb-glib.h:34,
                 from /mnt/disk-image4/portage/media-libs/harfbuzz-1.7.2/work/harfbuzz-1.7.2/
src/hb-glib.cc:31:
/usr/include/glib-2.0/glib/gtypes.h: In function ‘gboolean _GLIB_CHECKED_ADD_U64(guint64*, gu
int64, guint64)’:
/usr/include/glib-2.0/glib/gmacros.h:142:29: error: size of array ‘_GStaticAssertCompileTimeA
ssertion_0’ is negative
   __attribute__((__unused__))
                             ^
/usr/include/glib-2.0/glib/gmacros.h:232:120: note: in expansion of macro ‘G_GNUC_UNUSED’
 #define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __C
OUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED
                                                                                             
                           ^~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtypes.h:423:3: note: in expansion of macro ‘G_STATIC_ASSERT’
   G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
   ^~~~~~~~~~~~~~~
make[4]: *** [Makefile:2211: libharfbuzz_la-hb-glib.lo] Error 1
Comment 1 Willard Dawson 2017-12-11 13:38:31 UTC
Created attachment 509348 [details]
build log
Comment 2 Willard Dawson 2017-12-11 13:39:00 UTC
Created attachment 509350 [details]
emerge -pqv
Comment 3 Willard Dawson 2017-12-11 13:39:16 UTC
Created attachment 509352 [details]
environment
Comment 4 Mike Gilbert gentoo-dev 2017-12-15 19:09:30 UTC
For some reason, the 32-bit build is picking up /usr/lib64/glib-2.0/include/glibconfig.h.

What is the value of "libdir" in /usr/lib/pkgconfig/glib-2.0.pc?
Comment 5 Rick Farina (Zero_Chaos) gentoo-dev 2017-12-15 19:32:38 UTC
this appears to be due to a bug in the pentoo profile not properly tracking recent changes to the gentoo profile.  Please update pentoo and rebuild glib then try again.
Comment 6 Willard Dawson 2017-12-15 21:12:18 UTC
You are correct, the profile was broken, and totally bricked two separate Gentoo VMs I maintain. I will have to rebuild the root on both from scratch, unfortunately. Thanks.