dev-lang/lua-5.1 has incomplete library path for libraries on x32 ABI profile. As a result, for example, lgi (dev-lua/lgi) module can't be found in the system (lua searches /usr/lib by default) but lgi actually resides in /usr/libx32 I was able to fix problem temporary by editing lua-5.1-module_paths.patch: +#define LUA_CDIR2 LUA_ROOT2 "libx32/lua/5.1/" Reproducible: Always
there's a sed statement that tries to fix it, but fails because the luaconf.h is "lib/..." and not "/lib/...".
should be all set now in the tree; thanks for the report! Commit message: Fix libdir setting in luaconf.h http://sources.gentoo.org/dev-lang/lua/lua-5.1.5-r1.ebuild?rev=1.1