cyrus-sasl configure.ac is using hardcoded /usr/lib which violate the rule of gentoo lib path. in case x86_64 it's /usr/lib64 while /usr/lib is for 32bit error output is generated by clang possible relative bugs: #651488 #684394 Reproducible: Always Actual Results: libtool: link: clang -shared -fPIC -DPIC .libs/sql.o .libs/sql_init.o -Wl,--whole-archive ../common/.libs/libplugin_common.a -Wl,--no-whole-archive -L/usr/lib -lmysqlclient -L/usr/lib64 -lsqlite3 -Wl,--as-needed -lresolv -O2 -O2 -march=znver1 -flto=thin -fstack-protector-strong -Wl,-rpath -Wl,/usr/lib -Wl,-rpath -Wl,/usr/lib64 -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-O2 -flto=thin -fuse-ld=lld -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libsql.so.3 -o .libs/libsql.so.3.0.0 ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/11/../../../../lib64/crti.o is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/clang_rt.crtbegin-x86_64.o is incompatible with elf32-i386 ld.lld: error: .libs/sql.o is incompatible with elf32-i386 ld.lld: error: .libs/sql_init.o is incompatible with elf32-i386 ld.lld: error: ../common/.libs/libplugin_common.a(plugin_common.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib64/libmysqlclient.so is incompatible with elf32-i386 ld.lld: error: /usr/lib64/libsqlite3.so is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(absvdi2.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(absvsi2.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(absvti2.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(adddf3.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(addsf3.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(addvdi3.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(addvsi3.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(addvti3.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(apple_versioning.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(ashldi3.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(ashlti3.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(ashrdi3.c.o) is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/15/bin/../../../../lib/clang/15.0.6/lib/linux/libclang_rt.builtins-x86_64.a(ashrti3.c.o) is incompatible with elf32-i386 ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors) clang-15: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [Makefile:696: libsql.la] Error 1 make[2]: *** Waiting for unfinished jobs.... Expected Results: all /usr/lib should be /usr/lib64
Please always include the full build.log and emerge --info.
Created attachment 843919 [details] build.log
Created attachment 843921 [details] emerge info
*** Bug 917690 has been marked as a duplicate of this bug. ***
Created attachment 875310 [details] build.log with updated ebuild
Created attachment 875311 [details] new ebuild This seems to build fine when the line: $(multilib_native_use_with mysql mysql "${EPREFIX}"/usr/) is updated to: $(multilib_native_use_with mysql mysql "${EPREFIX}/usr/$(get_libdir)")