Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388043 - dev-scheme/guile-gnome-platform-2.16.1 (with dev-libs/g-wrap): ffi.h: No such file or directory
Summary: dev-scheme/guile-gnome-platform-2.16.1 (with dev-libs/g-wrap): ffi.h: No such...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Scheme Project
URL:
Whiteboard:
Keywords:
Depends on: 427470
Blocks:
  Show dependency tree
 
Reported: 2011-10-21 21:21 UTC by Blake Leverett
Modified: 2013-02-02 12:43 UTC (History)
1 user (show)

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


Attachments
Build log for guile-gnome-platform (build.log,43.34 KB, text/plain)
2011-10-24 18:03 UTC, Blake Leverett
Details
Output of emerge --info (emerge.info,4.61 KB, text/plain)
2011-10-24 18:04 UTC, Blake Leverett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Blake Leverett 2011-10-21 21:21:29 UTC
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.
Comment 1 Mike Gilbert gentoo-dev 2011-10-23 04:54:03 UTC
Please provide emerge --info and attach the full build log.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-10-23 23:13:52 UTC
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
Comment 3 Blake Leverett 2011-10-24 18:03:58 UTC
Created attachment 290733 [details]
Build log for guile-gnome-platform
Comment 4 Blake Leverett 2011-10-24 18:04:33 UTC
Created attachment 290735 [details]
Output of emerge --info
Comment 5 Marijn Schouten (RETIRED) gentoo-dev 2011-10-25 07:46:34 UTC
Hi Blake, which g-wrap version have you installed?
Comment 6 Blake Leverett 2011-10-25 16:12:55 UTC
(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
Comment 7 FrankTheTank 2011-10-31 13:42:36 UTC
I had the same proble.
Switching to g-wrap-1.9.13 solved the problem for me.
Comment 8 Thomas Kohler 2011-11-07 17:03:59 UTC
Same problem here - fixed with:
emerge --oneshot libffi
emerge --oneshot g-wrap
Comment 9 Rick Jenkins 2012-02-06 23:38:01 UTC
This is still a problem. It would be readily fixed by marking dev-libs/g-wrap-1.9.13 stable.
Comment 10 Pacho Ramos gentoo-dev 2013-02-02 12:43:49 UTC
(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