Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 426302 - bootstrap: emerging dev-libs/glib-2.32.3 failed - No package 'libffi' found
Summary: bootstrap: emerging dev-libs/glib-2.32.3 failed - No package 'libffi' found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on: 417741
Blocks:
  Show dependency tree
 
Reported: 2012-07-12 10:31 UTC by samtygier
Modified: 2012-08-13 19:57 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,7.88 KB, text/plain)
2012-07-12 10:31 UTC, samtygier
Details
emerge_info (emerge_info,4.12 KB, text/plain)
2012-07-12 10:32 UTC, samtygier
Details
glib-2.32.4 build.log (build.log,38.70 KB, text/plain)
2012-08-13 18:08 UTC, Jeremy Olexa (darkside) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description samtygier 2012-07-12 10:31:04 UTC
Created attachment 317982 [details]
build.log

at the emerge --oneshot net-misc/wget stage of building a prefix on a fedora16 x86-64 host, i get:

>>> Failed to emerge dev-libs/glib-2.32.3, Log file:

looks like it is missing libffi library

checking for LIBFFI... no
configure: error: Package requirements (libffi >= 3.0.0) were not met:

No package 'libffi' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBFFI_CFLAGS
and LIBFFI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Comment 1 samtygier 2012-07-12 10:32:00 UTC
Created attachment 317984 [details]
emerge_info
Comment 2 samtygier 2012-07-12 10:35:32 UTC
note: dev-libs/libffi-3.0.11::gentoo is iinstalled
Comment 3 Fabian Groffen gentoo-dev 2012-07-12 10:36:37 UTC
From the doc:

  $ emerge --oneshot "<net-misc/wget-1.13.4-r1" (until we fix #393277)

are you sure you copy 'n' pasted that exactly as is?
Comment 4 Fabian Groffen gentoo-dev 2012-07-12 10:37:10 UTC
and you are on Fedora 14, not 16.
Comment 5 samtygier 2012-07-12 10:43:59 UTC
thanks and sorry. was using a script based on the docs that was working fine on another machine. that looks like my issue.
Comment 6 samtygier 2012-07-12 12:10:40 UTC
i hit the same error again when i do:
env FEATURES="-collision-protect" emerge --oneshot sys-apps/portage -v

[ebuild  N     ] dev-libs/glib-2.32.3::gentoo  USE="-debug -doc (-fam) (-selinux) -static-libs -systemtap -test -utils -xattr" 0 kB
[ebuild  N     ] dev-util/pkgconfig-0.26::gentoo  USE="-hardened" 0 kB
[ebuild  N     ] virtual/pkgconfig-0::gentoo  0 kB
[ebuild  N     ] x11-misc/shared-mime-info-1.0::gentoo  0 kB
[ebuild  N     ] dev-lang/python-2.7.3-r2::gentoo  USE="gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml (-aqua) (-berkdb) -build -doc -examples -sqlite -tk -wininst" 0 kB
[ebuild  N     ] sys-apps/portage-2.2.01.20757::gentoo  USE="(ipc) -build -doc -epydoc -prefix-chaining (-selinux) -xattr" LINGUAS="-pl" 0 kB
[ebuild  N     ] app-admin/python-updater-0.10-r2::gentoo  0 kB
Comment 7 samtygier 2012-07-16 11:10:39 UTC
maybe just a pkg-config issue. this gets me past it.
export PKG_CONFIG_PATH=$EPREFIX/usr/lib/pkgconfig/
Comment 8 Jack Hill 2012-07-16 15:15:35 UTC
Another workaround that I found was installing dev-libs/glib-2.32.2. This installs sucessfully and pulls in virtual/pkgconfig and dev-util/pkgconifg. After that I was able to sucessfully upgrade to dev-libs/glib-2.32.3.
Comment 9 Fabian Groffen gentoo-dev 2012-07-18 08:22:22 UTC
could be pkg-config problem indeed, since we're bootstrapping still, probably working on the deps of pkg-config (glib, yes, which needs pkg-config in turn again)

I think this would be solved if we could rid ourselves of pkg-config, bug #417741
Comment 10 Fabian Groffen gentoo-dev 2012-08-10 09:37:26 UTC
once we can mask pkg-config, this bootstrap problem can go away.
Comment 11 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 16:31:35 UTC
Is this bug used to track the addition of the code in bootstrap-prefix.sh?

    # ugly hack to make sure we can compile glib, which is depended upon
    # by shared-mime-info in case an ancient pkg-config is available on
    # the system that glib doesn't grok (e.g. Solaris 10)
    export LIBFFI_CFLAGS="-I$(echo ${ROOT}/usr/lib*/libffi-*/include)"
    export LIBFFI_LIBS="-lffi"
Comment 12 Fabian Groffen gentoo-dev 2012-08-13 16:33:17 UTC
comment 10 is bogus, so I don't understand what you're trying to say here
Comment 13 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 16:36:20 UTC
(In reply to comment #12)
> comment 10 is bogus, so I don't understand what you're trying to say here

glib failed to build and I was going to file a new bug, but then I noticed the code in comment #11 was new. So, is the code in comment #11 a result of this bug?

(If the answer is yes, I'll attach a new build.log here. If the answer is no, I'll open a new bug report to triage)
Comment 14 Fabian Groffen gentoo-dev 2012-08-13 16:44:09 UTC
w/e

I encountered the problem during Solaris bootstrap
Comment 15 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 17:01:23 UTC
(In reply to comment #14)
> w/e
> 
> I encountered the problem during Solaris bootstrap

IFF version <=2.32.2 gets restored to the prefix tree (I suggest 2.30.3) then I suggest the following diff:

Index: bootstrap-prefix.sh
===================================================================
--- bootstrap-prefix.sh (revision 61160)
+++ bootstrap-prefix.sh (working copy)
@@ -1033,11 +1033,12 @@
                app-misc/pax-utils  # need this early for OSX (before libiconv - gen_usr_ldscript)
                sys-apps/coreutils
                sys-apps/findutils
-               "<app-arch/tar-1.26-r1"
+               "<app-arch/tar-1.26-r1" # bug 406131
                sys-apps/grep
                sys-apps/gawk
                sys-devel/make
                sys-libs/zlib
+               "<dev-libs/glib-2.32.3" # bug 426302
        )
        emerge_pkgs "" "${pkgs[@]}" || return 1
Comment 16 Fabian Groffen gentoo-dev 2012-08-13 17:45:50 UTC
That shouldn't be ok, since PKG_CONFIG_PATH is now banned by the bootstrap script, and the libffi overrides should force it not to look at pkg-config
Comment 17 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 18:08:52 UTC
Created attachment 321222 [details]
glib-2.32.4 build.log

(In reply to comment #16)
> That shouldn't be ok, since PKG_CONFIG_PATH is now banned by the bootstrap
> script, and the libffi overrides should force it not to look at pkg-config

See attached log, then.
gclosure.c:29:17: error: ffi.h: No such file or directory
Comment 18 Fabian Groffen gentoo-dev 2012-08-13 18:23:31 UTC
and if you do this?

echo "#!/bin/sh" > ${EPREFIX}/tmp/usr/bin/pkg-config
echo "exit 1" >> ${EPREFIX}/tmp/usr/bin/pkg-config

stupid package.
Comment 19 Fabian Groffen gentoo-dev 2012-08-13 18:24:57 UTC
and chmod 755 it
Comment 20 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-08-13 19:32:45 UTC
(In reply to comment #19)
> and chmod 755 it

yes, got me past the issue on RHEL 5.7
Comment 21 Fabian Groffen gentoo-dev 2012-08-13 19:50:21 UTC
ok, thanks for testing, we now use this brute-force approach from stage1