Emerging a system with `USE="-X -gtk -svga" ROOT=/tmp/firewall emerge iptables' failed with "gcc: /tmp/firewall//usr/lib/libglib.a not found". Reproducible: Always Steps to Reproduce: 1.mkdir /tmp/firewall 2.USE="-X -gtk -svga" ROOT=/tmp/firewall emerge iptables 3. Actual Results: Failed with: gcc: /tmp/firewall//usr/lib/glib.a not found Expected Results: It should have emerged a basic system suitable for chrooted operation. PAM is being built to satisfy baselayout. PAM requires a static glib to link into pam_console and pam_pwdb (according to comments in the ebuild). Thisis not present in the chroot and can't be built until baselayout is. PAM does have a proper dependency, but I'm not sure why glib isn't built first although I suspect it may be a dependency on glibc in glib (which pam doesn't depend on). I can work around this for now by emerging glib manually with: USE="-X -svga -gtk" ROOT=/tmp/firewall emerge --nodeps '<dev-libs/glib-1.3'
Also had issue emerging PAM due to missing pwdb dependency. Since this still prevents PAM from bootstrapping, I'm including it here (as that's my problem).
It should have pulled in glib ... verify that that was installed to the chroot, and reopen if still an issue after that.