Created attachment 379876 [details, diff] dont_crash.patch This is, I guess, sort-of a bug waiting to happen although perhaps it's not affecting end-users yet. I keep a triple-multilib system, specifically so I can spot bugs like this one. I bumped into this emerging =media-gfx/nvidia-cg-toolkit-3.1.0013-r3. The problem manifested as a crash in multilib_get_enabled_abi_pairs, "abi_x86_x32 not in IUSE" -- well, indeed it wasn't, due to that ebuild employing MULTILIB_COMPAT. Obvious solution is enclosed as a patch: use use_if_iuse instead of use.
You are indeed correct. Though Ciaran considers use_if_iuse an aberration, so I'll check MULTILIB_COMPAT instead.
+ 29 Jun 2014; Michał Górny <mgorny@gentoo.org> multilib-build.eclass: + Check MULTILIB_COMPAT before querying USE flags. Bug #515642, thanks to Greg + Turner. Also, you've got a typo in your Signed-off-by.