Slightly Busted: dev-libs/glib-2.50.2 vs. sys-apps/util-linux


Yup, it’s broken. If you happen to have the abi_x86_32 use flag on dev-libs/glib and are trying to install the ~amd64 verison of it, you just might find it barking about libmount like so:

/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../libmount.so while searching for mount
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: skipping incompatible /usr/lib/libmount.so while searching for mount
/usr/lib/gcc/x86_64-pc-linux-gnu/6.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: cannot find -lmount

Which package owns libmount? It’s found in sys-apps/util-linux. It threw me for a loop at first because I had a libmount.so! But alas, util-linux did not have the abi_x86_32 use flag on it, and the dev-libs/glib ebuild doesn’t catch that, so it fails.

It’s becoming a known issue per bug #599586. In the meantime, just add the abi_x86_32 use flag to sys-apps/util-linux and everything emerges fine after that.


Leave a Reply