Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646858 - dev-libs/libgcrypt-1.8.2-r1 - mips64-unknown-linux-gnu-ld: /usr/lib32/libgpg-error.so: error adding symbols: File in wrong format
Summary: dev-libs/libgcrypt-1.8.2-r1 - mips64-unknown-linux-gnu-ld: /usr/lib32/libgpg-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: MIPS Linux
: Normal normal
Assignee: Kristian Fiskerstrand (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-07 03:32 UTC by James McMechan
Modified: 2018-02-11 10:42 UTC (History)
2 users (show)

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


Attachments
emerge --info '=dev-libs/libgcrypt-1.8.2-r1::gentoo' (emerge.info,15.40 KB, text/plain)
2018-02-07 03:32 UTC, James McMechan
Details
build.log (build.log,149.50 KB, text/plain)
2018-02-07 03:33 UTC, James McMechan
Details
emerge -pqv '=dev-libs/libgcrypt-1.8.2-r1::gentoo' (emerge.pqv,121 bytes, text/plain)
2018-02-07 03:35 UTC, James McMechan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James McMechan 2018-02-07 03:32:49 UTC
Created attachment 518320 [details]
emerge --info '=dev-libs/libgcrypt-1.8.2-r1::gentoo'

While I am trying to get the current stage3 up to date
dev-libs/libgcrypt-1.8.2-r1 dies when building for the 64bit side of multilib

It appears to be when libtool goes to la la land and tries to stick 64bit files in the 32bit library

/usr/lib32/libgpg-error.so: error adding symbols: File in wrong format

Note: that I am not cross compiling this is a failure of a native multi-lib build, I am building in a NFS mounted chroot(v4.1, -osync)

Everything but this and dev-libs/libxslt-1.1.30-r2 (which depends on libgcrypt) is up to date. These are the last two packages of "emerge -uDU @world"
Comment 1 James McMechan 2018-02-07 03:33:56 UTC
Created attachment 518322 [details]
build.log
Comment 2 James McMechan 2018-02-07 03:35:39 UTC
Created attachment 518324 [details]
emerge -pqv '=dev-libs/libgcrypt-1.8.2-r1::gentoo'
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2018-02-10 23:39:24 UTC
checking for GPG Error - version >= 1.25... yes (1.27)
configure: WARNING:
***
*** The config script /usr/bin/gpg-error-config was
*** built for mips64-unknown-linux-gnu and thus may not match the
*** used host mips-unknown-linux-gnu.
*** You may want to use the configure option --with-gpg-error-prefix
*** to specify a matching config script or use $SYSROOT.
***
Comment 4 Larry the Git Cow gentoo-dev 2018-02-10 23:56:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f652174807d48fe0830ef207bacad7ff702e6cb7

commit f652174807d48fe0830ef207bacad7ff702e6cb7
Author:     Alon Bar-Lev <alonbl@gentoo.org>
AuthorDate: 2018-02-10 23:54:43 +0000
Commit:     Alon Bar-Lev <alonbl@gentoo.org>
CommitDate: 2018-02-10 23:56:15 +0000

    dev-libs/libgcrypt: force gpg-error-config for multilib
    
    Closes: https://bugs.gentoo.org/646858
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-libs/libgcrypt/libgcrypt-1.8.2-r2.ebuild | 79 ++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2018-02-10 23:57:34 UTC
Interesting we did not see this so far!

Can you please try =dev-libs/libgcrypt-1.8.2-r3?
Comment 6 James McMechan 2018-02-11 10:38:18 UTC
(In reply to Alon Bar-Lev from comment #5)
> Interesting we did not see this so far!
> 
> Can you please try =dev-libs/libgcrypt-1.8.2-r3?

So far I am not seeing it in the tree?

I expect you mean =dev-libs/libgcrypt-1.8.2-r2?

emerge -1 =dev-libs/libgcrypt-1.8.2-r2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-libs/libgpg-error-1.27-r1::gentoo  USE="-common-lisp -nls -static-libs" ABI_MIPS="(n32) n64 o32" 795 KiB
[ebuild  N     ] dev-libs/libgcrypt-1.8.2-r2:0/20::gentoo  USE="-doc -o-flag-munging -static-libs" ABI_MIPS="(n32) n64 o32" 0 KiB

Total: 2 packages (2 new), Size of downloads: 795 KiB

Both have built successfully, and dev-libs/libxslt-1.1.30-r2[crypt] which originally pulled them in builds too.

So, Yes it all seems to work.



I did enable all three ABI o32 n32 n64 since what I was interested in was n64.

Or this may have to do with how old the stage3 is I was using the latest I could find which was stage3-mips64r2_multilib-20140904 or again that this is big endian.

How does one request a updated stage3?

It has been a minor pain to bring it up to date again, my previous install corrupted the flash card, so I wanted to reinstall...
I had been running a pure n64 system because back then I did not care to fiddle with keeping bash going when the multi-lib build pulled ncurses out from under bash preventing pretty much everything from working.  Then it happens again with readline. So this time I built binpkgs for everything and rolled them back (by unmounting and using ROOT=) until I could install all the updates together and continue, then rebuilt them all again, fair bit of fiddling this time, but I once again have a up to date natively built system.

The stage3 portage-2.2.12 really does not like the current portage tree.


Thank you,

Jim McMechan
Comment 7 Alon Bar-Lev (RETIRED) gentoo-dev 2018-02-11 10:42:02 UTC
OK, thanks, I hope you will not experience this again.