Created attachment 553590 [details] build.log On mips/n32 the default libdir is /usr/lib32. The failing command is /bin/sh ../libtool --tag=CC --mode=link mips64el-unknown-linux-gnu-gcc -O2 -march=loongson3a -mplt -pipe -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -Wl,-O1 -Wl,--as-needed -L/usr/lib -o gen-posix-lock-obj gen-posix-lock-obj.o It contains "-L/usr/lib" which causes the failure. Running it manually with -L/usr/lib32 succeeds. libgpg-error-1.32 builds successfully.
Created attachment 553592 [details] build.log from libgpg-error-1.32 From 1.32 /bin/sh ../libtool --tag=CC --mode=link mips64el-unknown-linux-gnu-gcc -O2 -march=loongson3a -mplt -pipe -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -Wl,-O1 -Wl,--as-needed -o gen-posix-lock-obj gen-posix-lock-obj.o Same command, just without -L/usr/lib.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2df79692ab69cbf9cd02b73af7a3fd77b9171ec6 commit 2df79692ab69cbf9cd02b73af7a3fd77b9171ec6 Author: Alon Bar-Lev <alonbl@gentoo.org> AuthorDate: 2018-10-29 08:45:50 +0000 Commit: Alon Bar-Lev <alonbl@gentoo.org> CommitDate: 2018-10-29 08:50:23 +0000 dev-libs/libgpg-error: support cross-compile + multilib Closes: https://bugs.gentoo.org/show_bug.cgi?id=669906 Signed-off-by: Alon Bar-Lev <alonbl@gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.11 dev-libs/libgpg-error/libgpg-error-1.32-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)