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
Created attachment 770396 [details] compressed build log
thanks, pinged dilf about it
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(+)
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
wine done too just now.