Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669906 - dev-libs/libgpg-error-1.32-r1 fails to build on mips (regression since 1.32)
Summary: dev-libs/libgpg-error-1.32-r1 fails to build on mips (regression since 1.32)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-29 02:47 UTC by Matt Turner
Modified: 2018-10-29 08:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,115.40 KB, text/plain)
2018-10-29 02:47 UTC, Matt Turner
Details
build.log from libgpg-error-1.32 (3PY09M6.txt,45.75 KB, text/plain)
2018-10-29 03:27 UTC, Matt Turner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Turner gentoo-dev 2018-10-29 02:47:27 UTC
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.
Comment 1 Matt Turner gentoo-dev 2018-10-29 03:27:03 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2018-10-29 08:50:33 UTC
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(-)