Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494606 - sys-devel/gcc-4.8.2[gcj]: with =media-libs/freetype-2.5.1 fatal error: freetype/ftglyph.h: No such file or directory
Summary: sys-devel/gcc-4.8.2[gcj]: with =media-libs/freetype-2.5.1 fatal error: freety...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/git/?p=gcc.git;a=c...
Whiteboard:
Keywords:
Depends on:
Blocks: freetype-2.5.1
  Show dependency tree
 
Reported: 2013-12-18 05:24 UTC by Mark Wright
Modified: 2013-12-24 00:59 UTC (History)
0 users

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


Attachments
build.log (build.log.bz2,307.71 KB, application/x-bzip)
2013-12-18 05:43 UTC, Mark Wright
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wright gentoo-dev 2013-12-18 05:24:35 UTC
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 / #
Comment 1 Mark Wright gentoo-dev 2013-12-18 05:43:08 UTC
Created attachment 365574 [details]
build.log
Comment 2 Mark Wright gentoo-dev 2013-12-18 05:49:36 UTC
This bug report looks like it might be relevant:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59497
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-12-18 05:54:10 UTC
See URL for the official upstream fix.
Comment 4 SpanKY gentoo-dev 2013-12-22 11:39:44 UTC
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
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2013-12-22 17:59:45 UTC
Thanks.  I'll close this when the patchset is released.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2013-12-23 21:37:05 UTC
Fixed in 4.8.2 p1.1, but I guess other versions will also need to be patched.