Compilation fails in this stage: i686-pc-linux-gnu-gcc -shared .libs/_gobject_la-gobjectmodule.o .libs/_gobject_la-pygboxed.o .libs/_gobject_la-pygenum.o .libs/_gobject_la-pygflags.o .libs/_gobject_la-pygobject.o .libs/_gobject_la-pygmaincontext.o .libs/_gobject_la-pygmainloop.o .libs/_gobject_la-pygparamspec.o .libs/_gobject_la-pygpointer.o .libs/_gobject_la-pygiochannel.o .libs/_gobject_la-pygsource.o .libs/_gobject_la-pygtype.o .libs/_gobject_la-pygoptioncontext.o .libs/_gobject_la-pygoptiongroup.o .libs/_gobject_la-ffi-marshaller.o /usr/lib/libgobject-2.0.so -L/usr/lib /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so -lffi -march=athlon -pthread -Wl,-soname -Wl,_gobject.so -Wl,-version-script -Wl,.libs/_gobject.ver -o .libs/_gobject.so /usr/lib/gcc/i686-pc-linux-gnu/4.2.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lffi I have dev-libs/libffi-3.4.3 installed, and the previous version of pygobject 2.12.3 emerged fine on my system. Reproducible: Always
Reopen with config.log attached and emerge --info output; thanks.
Created attachment 132562 [details] config.log
Created attachment 132563 [details] emerge --info
Reopening bug with config.log and emerge --info output attached!
equery d libffi If nothing depends on it then emerge -C libffi && emerge -av pygobject
I have squeak installed and depending on libffi, so I followed Dan's suggestion backing up libffi: quickpkg libffi emerge -C libffi emerge -1 pygobject emerge -1K libffi Now pygobject emerged correctly, thanks!
Problem is in configure.ac wich checks only the presence of ffi.h. At compile time libffi.so can not be found because it's located in non-standard directory /usr/lib/libffi. The dev-libs/libffi defines variables in /etc/env.d/99libffi (CPATH, LDPATH) but only CPATH is exported into user shell. The LDPATH=/usr/li/libffi doesn't present in /etc/profile.env for some reason.
According to dev-libs/libffi description: "libffi (from gcc) does not commonly build unless gcj is compiled, but is used by other projects, like GNUstep." pygobject should depend on dev-libs/libffi if gcc hasn't been compiled with the gcj USE flag.
gcc and pygobject-2.14.2 should now be able to use libffi properly. Please reopen if it's not the case.