[Mingw-users] btowc problem

Back to archive index
Keith Marshall keith****@users*****
Sat Jul 11 05:46:33 JST 2020


On 10/07/2020 13:22, Eli Zaretskii wrote:
>> From: Keith Marshall Wed, 8 Jul 2020 12:13:47 +0100
>> On 06/07/2020 16:24, Keith Marshall wrote:
>>> I'll update the mingw-get online catalogue later today, then I'll strip
>>> out the weak aliases, and publish wsl-5.4 later this week.
>>
>> wsl-5.4 is now available on FRS; please test.
> 
> Thanks for a quick and efficient fix.

You're welcome.

> MinGW runtime 5.4 looks good: it passes all of my tests (building
> hello.c, Emacs, and Gawk), and almost succeeds in building the current
> snapshot of GDB, where there's this single problem:
> 
>     CXXLD  gdb.exe
>   d:/usr/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: d:/usr/bin/../lib/gcc/mingw32/9.2.0\libstdc++.a(codecvt_members.o):(.text$_ZNKSt7codecvtIwciE6do_outERiPKwS3_RS3_PcS5_RS5_+0xac): undefined reference to `__msvcrt_wcrtomb'
>   d:/usr/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: d:/usr/bin/../lib/gcc/mingw32/9.2.0\libstdc++.a(codecvt_members.o):(.text$_ZNKSt7codecvtIwciE6do_outERiPKwS3_RS3_PcS5_RS5_+0x111): undefined reference to `__msvcrt_wcrtomb'
> 
> So it looks like the 5.3.x functions are referenced by libstdc++ from
> GCC 9.2.0 distribution, and that library (and possibly others which
> come with GCC) need to be refreshed as well.

That's unfortunate; I was hoping that those redundant __msvcrt_*, and
__mingw_* aliases would no longer be needed.

> I don't see a new gcc-core-9.2.0-1-mingw32-bin.tar.xz on the MinGW
> download site.

I've rebuilt, and posted a complete gcc-9.2.0-2-mingw32 package set on
FRS; it is linked with wsl-5.4.  Does it resolve the issue?

> Alternatively, you could reinstate these functions in libmingwex,
> which might be a smaller fuss...

I could have done this, of course.  It might have been a quicker fix,
but not really any easier, (since I didn't need to change anything for
the GCC rebuild), and I prefer to have the namespace pollution by the
redundant symbolic aliases cleaned up ASAP.

-- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20200710/83f48094/attachment.sig>


More information about the MinGW-Users mailing list
Back to archive index