libtool: compile: /var/tmp/portage/sys-devel/gcc-4.8.2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.8.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/libjava/classpath/native/jni/gtk-peer -I../../../include -I/var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/libjava/classpath/include -I/var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/libjava/classpath/native/jni/classpath -I/var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/libjava/classpath/native/jni/native-lib -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -fexceptions -fasynchronous-unwind-tables -g -march=native -pipe -O2 -m32 -MT gnu_java_awt_peer_gtk_FreetypeGlyphVector.lo -MD -MP -MF .deps/gnu_java_awt_peer_gtk_FreetypeGlyphVector.Tpo -c /var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c -fPIC -DPIC -o .libs/gnu_java_awt_peer_gtk_FreetypeGlyphVector.o /var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c:45:30: fatal error: freetype/ftglyph.h: No such file or directory #include <freetype/ftglyph.h> ^ compilation terminated. make[8]: *** [gnu_java_awt_peer_gtk_FreetypeGlyphVector.lo] Error 1 make[8]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.8.2/work/build/x86_64-pc-linux-gnu/32/libjava/classpath/native/jni/gtk-peer' make[7]: *** [all-recursive] Error 1 Reproducible: Always Hacky workaround, which is incomplete as it should at least check that >=media-libs/freetype-2.5.1 is installed before applying this sed: argus / # diff -wc /usr/portage/sys-devel/gcc/gcc-4.8.2.ebuild /usr/local/portage/sys-devel/gcc/gcc-4.8.2.ebuild *** /usr/portage/sys-devel/gcc/gcc-4.8.2.ebuild Tue Nov 12 10:38:10 2013 --- /usr/local/portage/sys-devel/gcc/gcc-4.8.2.ebuild Mon Dec 16 17:25:22 2013 *************** *** 47,52 **** --- 47,57 ---- use vanilla && return 0 #Use -r1 for newer piepatchet that use DRIVER_SELF_SPECS for the hardened specs. [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env-r1.patch + + sed -e 's@freetype/@freetype2/@g' \ + -i "${S}"/libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c \ + -i "${S}"/libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c \ + || die "Could not sed gcc for >=freetype-2.5.1" } pkg_setup() { argus / #
Created attachment 365574 [details] build.log
This bug report looks like it might be relevant: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59497
See URL for the official upstream fix.
i've queued the patch for 4.8.2: http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.8.2/gentoo/20_all_gcj-freetype.patch?rev=1.1 there's other pending patches, so i'll leave it to Ryan to push out when he does the next patchset
Thanks. I'll close this when the patchset is released.
Fixed in 4.8.2 p1.1, but I guess other versions will also need to be patched.
http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.7.3/gentoo/20_all_gcj-freetype.patch?rev=1.1&view=markup http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.6.4/gentoo/20_all_gcj-freetype.patch?rev=1.1&view=markup