Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 838106

Summary: >=sys-devel/binutils-2.38-r1: please backport pr28885
Product: Gentoo Linux Reporter: tt_1 <herrtimson>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: guido.schmitz, ionen, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=836263
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 838157    
Attachments: compressed build log

Description tt_1 2022-04-12 16:55:24 UTC
I've been having trouble to bootstrap a mingw32 toolchain lately, like this:

crossdev -S x86_64-w64-mingw32 --ov-output /var/lib/layman/crossdev/ --libc 8.0.0-r1 --binutils 2.38-r1

stage1 mingw64-runtime fails with: 

x86_64-w64-mingw32-dlltool: reopening MAPI32_dll_s00168.o: No such file or directory

x86_64-w64-mingw32-dlltool: lib64/libmapi32.a: error reading MAPI32_dll_s00168.o: No such file or directory
x86_64-w64-mingw32-dlltool: lib64/libmapistub.a: error reading MAPI32_dll_t.o: No such file or directory
make[3]: *** [Makefile:82453: lib64/libmapistub.a] Error 1


its all working nice with binutils-2.37_p1-r2, hence I diffed dlltool.c and found the file to have been touched in the developement phase of binutils-2.38

history for that file shows one merge after the release of binutils-2.38:
https://sourceware.org/git/?p=binutils-gdb.git;a=history;f=binutils/dlltool.c;h=89871510b459a78ba1076368e3752c677f8daaf6;hb=refs/heads/binutils-2_38-branch

which leads to https://sourceware.org/bugzilla/show_bug.cgi?id=28885 ; where you can find the backported patch for the 2.38 branch: 

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=99852365513266afdd793289813e8e565186c9e6

please pull it in, I have tested it locally with success. 

Thank you
Comment 1 tt_1 2022-04-12 16:58:32 UTC
Created attachment 770396 [details]
compressed build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-13 04:56:31 UTC
thanks, pinged dilf about it
Comment 3 Larry the Git Cow gentoo-dev 2022-04-16 11:36:01 UTC
The bug has been referenced in the following commit(s):

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

commit cd4a24737a00a1806c99c96a2340cd0161039b13
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2022-04-16 11:35:27 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2022-04-16 11:35:27 +0000

    sys-devel/binutils: 2.38 patchset 4 bump (no keywords so far)
    
    Bug: https://bugs.gentoo.org/838106
    Bug: https://bugs.gentoo.org/838157
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>

 sys-devel/binutils/Manifest                |   1 +
 sys-devel/binutils/binutils-2.38-r2.ebuild | 460 +++++++++++++++++++++++++++++
 2 files changed, 461 insertions(+)
Comment 4 Ionen Wolkens gentoo-dev 2022-04-16 13:06:56 UTC
2.38-r2 seems fine for me with mingw64-runtime-[89].0.0, likewise for building wine-*-7.6[mingw]. Thanks.

Haven't looked up what upstream did about it, but mingw64-runtime-10.0.0[1] bootstraps/rebuild fine even with the unpatched 2.38-r1, so might push the update later/tomorrow or so regardless of keywords status after more inspection (not that this helps wine[mingw], so still need 2.38-r2 to remove its blocker).

[1] https://github.com/gentoo/gentoo/pull/25038
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-18 19:20:23 UTC
wine done too just now.