Package fails to build with the following errors. make[6]: Entering directory `/var/tmp/portage/dev-scheme/guile-gnome-platform-2.16.1/work/guile-gnome-platform-2.16.1/glib/gnome/gw' /bin/sh ../../../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../.. -I./../gobject -I../gobject -I. -I. -Wall -g -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -std=gnu99 -pthread -I/usr/lib64/libffi-3.0.9/include -I../../../glib/gnome/gobject -I../../../glib/gnome/gobject -march=core2 -mtune=generic -O2 -pipe -MT libgw_guile_gnome_gobject_la-guile-gnome-gw-gobject.lo -MD -MP -MF .deps/libgw_guile_gnome_gobject_la-guile-gnome-gw-gobject.Tpo -c -o libgw_guile_gnome_gobject_la-guile-gnome-gw-gobject.lo `test -f 'guile-gnome-gw-gobject.c' || echo './'`guile-gnome-gw-gobject.c libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../.. -I./../gobject -I../gobject -I. -I. -Wall -g -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -std=gnu99 -pthread -I/usr/lib64/libffi-3.0.9/include -I../../../glib/gnome/gobject -I../../../glib/gnome/gobject -march=core2 -mtune=generic -O2 -pipe -MT libgw_guile_gnome_gobject_la-guile-gnome-gw-gobject.lo -MD -MP -MF .deps/libgw_guile_gnome_gobject_la-guile-gnome-gw-gobject.Tpo -c guile-gnome-gw-gobject.c -fPIC -DPIC -o .libs/libgw_guile_gnome_gobject_la-guile-gnome-gw-gobject.o In file included from /usr/include/g-wrap/core-runtime.h:23:0, from guile-gnome-gw-gobject.c:3: /usr/include/g-wrap/ffi-support.h:24:17: fatal error: ffi.h: No such file or directory compilation terminated. make[6]: *** [libgw_guile_gnome_gobject_la-guile-gnome-gw-gobject.lo] Error 1 make[6]: Leaving directory `/var/tmp/portage/dev-scheme/guile-gnome-platform-2.16.1/work/guile-gnome-platform-2.16.1/glib/gnome/gw' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/var/tmp/portage/dev-scheme/guile-gnome-platform-2.16.1/work/guile-gnome-platform-2.16.1/glib/gnome/gw' make[4]: *** [all] Error 2 make[4]: Leaving directory `/var/tmp/portage/dev-scheme/guile-gnome-platform-2.16.1/work/guile-gnome-platform-2.16.1/glib/gnome/gw' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-scheme/guile-gnome-platform-2.16.1/work/guile-gnome-platform-2.16.1/glib/gnome' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-scheme/guile-gnome-platform-2.16.1/work/guile-gnome-platform-2.16.1/glib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-scheme/guile-gnome-platform-2.16.1/work/guile-gnome-platform-2.16.1' make: *** [all] Error 2 emake failed Reproducible: Always Steps to Reproduce: 1. Try emerging quile-gnome-platform Actual Results: Fails Expected Results: Succeeds If I enter the following, then the package builds: export C_INCLUDE_PATH="/usr/lib64/libffi-3.0.10/include" I have no idea if this is a problem specific to my system. I did emerge dev-libs/libffi to try to fix this, but that did not help.
Please provide emerge --info and attach the full build log.
proper fix: dev-libs/g-wrap needs to provide pkg-config file so guile-gnome-platform can get the cflags from `pkg-config --cflags g-wrap` or similar to get the ffi include directory inherited where it should workaround: inherit flag-o-matic toolchain-funcs followed by append-flags $($(tc-getPKG_CONFIG) --cflags-only-I libffi) to guile-gnome-platform's ebuild, and virtual/libffi to it's depends
Created attachment 290733 [details] Build log for guile-gnome-platform
Created attachment 290735 [details] Output of emerge --info
Hi Blake, which g-wrap version have you installed?
(In reply to comment #5) > Hi Blake, which g-wrap version have you installed? [I] dev-libs/g-wrap Available versions: 1.9.11 ~1.9.13 Installed versions: 1.9.11(12:53:53 PM 09/28/2011) Homepage: http://www.nongnu.org/g-wrap/ Description: A tool for exporting C libraries into Scheme
I had the same proble. Switching to g-wrap-1.9.13 solved the problem for me.
Same problem here - fixed with: emerge --oneshot libffi emerge --oneshot g-wrap
This is still a problem. It would be readily fixed by marking dev-libs/g-wrap-1.9.13 stable.
(In reply to comment #9) > This is still a problem. It would be readily fixed by marking > dev-libs/g-wrap-1.9.13 stable. that was done