When compiling pam_mount it failed with this error message: /bin/mkdir -p '/var/tmp/portage/sys-auth/pam_mount-2.14/image//sbin' /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcryptmount collect2: error: ld returned 1 exit status /bin/sh ../libtool --mode=install /usr/lib64/portage/bin/ebuild-helpers/xattr/install -c mount.crypt '/var/tmp/portage/sys-auth/pam_mount-2.14/image//sbin' libtool: install: (cd /var/tmp/portage/sys-auth/pam_mount-2.14/image//usr/lib64 && { ln -s -f libcryptmount.so.0.0.0 libcryptmount.so.0 || { rm -f libcryptmount.so.0 && ln -s libcryptmount.so.0.0.0 libcryptmount.so.0; }; }) libtool: install: error: relink `pam_mount.la' with the above command before installing it make[2]: *** [install-moduleLTLIBRARIES] Error 1 make[2]: *** Waiting for unfinished jobs.... libtool: install: (cd /var/tmp/portage/sys-auth/pam_mount-2.14/image//usr/lib64 && { ln -s -f libcryptmount.so.0.0.0 libcryptmount.so || { rm -f libcryptmount.so && ln -s libcryptmount.so.0.0.0 libcryptmount.so; }; }) libtool: install: /usr/lib64/portage/bin/ebuild-helpers/xattr/install -c .libs/libcryptmount.lai /var/tmp/portage/sys-auth/pam_mount-2.14/image//usr/lib64/libcryptmount.la libtool: install: warning: `libcryptmount.la' has not been installed in `/usr/lib64' libtool: install: warning: `libcryptmount.la' has not been installed in `/usr/lib64' libtool: install: /usr/lib64/portage/bin/ebuild-helpers/xattr/install -c .libs/mount.crypt /var/tmp/portage/sys-auth/pam_mount-2.14/image//sbin/mount.crypt libtool: install: /usr/lib64/portage/bin/ebuild-helpers/xattr/install -c .libs/pmt-ehd /var/tmp/portage/sys-auth/pam_mount-2.14/image//usr/sbin/pmt-ehd libtool: install: warning: remember to run `libtool --finish /usr/lib64' make[1]: *** [install-am] Error 2 make: *** [install-recursive] Error 1 * ERROR: sys-auth/pam_mount-2.14::gentoo failed (install phase): * emake failed Changing ebuild to: src_install() { emake DESTDIR="${D}" install -j1 use selinux || rm -r "${D}"/etc/selinux dodoc doc/*.txt } fixed the issue. Reproducible: Always
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report.