This is an unstable amd64 chroot image (named 13.0-systemd-libressl-unstable-abi32+64_20170210-142202) at a hardened host acting as a tinderbox. ----------------------------------------------------------------- /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I.. -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1 -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I/usr/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR='"/var/cache/fontconfig"' -DFONTCONFIG_PATH='"/etc/fonts"' -O2 -pipe -march=native -Wall -pthread -c -o fcmatch.lo /var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcmatch.c libtool: compile: x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I.. -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1 -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I/usr/include/freetype2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/etc/fonts\" -O2 -pipe -march=native -Wall -pthread -c /var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcmatch.c -fPIC -DPIC -o .libs/fcmatch.o /var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcmatch.c:324:63: error: ‘PRI_CHAR_WIDTH_STRONG’ undeclared here (not in a function) #define FC_OBJECT(NAME, Type, Cmp) { FC_##NAME##_OBJECT, Cmp, PRI_##NAME##_STRONG, PRI_##NAME##_WEAK }, ^ /var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcobjs.h:54:1: note: in expansion of macro ‘FC_OBJECT’ ----------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-5.4.0 * llvm-config --version: /tmp/job.sh: line 526: llvm-config: command not found Available Python interpreters, in order of preference: [1] python3.4 [2] python2.7 (fallback) java-config:
Created attachment 463268 [details] emerge-info.txt
Created attachment 463270 [details] config.log
Created attachment 463272 [details] emerge-history.txt
Created attachment 463274 [details] environment
Created attachment 463276 [details] etc.portage.tbz2
Created attachment 463278 [details] media-libs:fontconfig-2.12.1:20170211-053003.log
Upstream has a fix for this. https://cgit.freedesktop.org/fontconfig/commit/?id=1ab5258f7c2abfafcd63a760ca08bf93591912da But now I get a different compile error. libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I.. -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1 -I/var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -DFC_CACHEDIR=\"/var/cache/fontconfig\" -DFONTCONFIG_PATH=\"/etc/fonts\" -march=core2 -Os -pipe -pthread -c /var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcobjs.c -fPIC -DPIC -o .libs/fcobjs.o In file included from /var/tmp/portage/media-libs/fontconfig-2.12.1/work/fontconfig-2.12.1/src/fcobjs.c:33:0: fcobjshash.gperf: In function ‘FcObjectTypeLookup’: fcobjshash.gperf:47:85: error: ‘FC_CHAR_WIDTH_OBJECT’ undeclared (first use in this function) "charwidth",FC_CHARWIDTH_OBJECT ^ fcobjshash.gperf:47:85: note: each undeclared identifier is reported only once for each function it appears in
Created attachment 463950 [details, diff] charwidth_macro.patch It turns out that the patch on freedesktop is an incomplete one. I was able to find the rest of it here: http://lists.openembedded.org/pipermail/openembedded-core/2016-December/130059.html Now, fontconfig is compiling fine for me.
(In reply to cyrillic from comment #8) so this *replaces * the mentioned one in comment #6, right ?
(In reply to Toralf Förster from comment #9) I can confirm that the patch of comment #8 works here at few tinderbox images.
FYI, this patch does not cause regressions with older versions of sys-libs/glibc, so it should be ok to apply in all cases.
@cyrillic: Thanks for the patch hint. Now fixed via https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11be27377891a6da90b8ab04a7de3cfe5db276b9