Re: btowc problem

Keith Marshall <[email protected]> Fri, 10 Jul 2020 21:46:33 +0100
Newsgroups gmane.comp.gnu.mingw.user
Organization MinGW.org Project
Message-ID <[email protected]>
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

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEwZ7AGBVH3lDh1I9TwK02xjR+Wj8FAl8I06kACgkQwK02xjR+
Wj/aKQ/9GKj5ntXvTD+e/TCkJ4O++L087w3NjAyWpg9BotvU/wOb6O0NLFXnkYXN
tAfpRSdL6AMvZjlfDrJgwCBOKq7YfMnExXRJU29GRyVgKXp3O2D7431n2RBetsms
IjsfQpVglwqqQbB+9ZSbHOOPS+0mWMTTFulHXfwZLJUVnlxc3u/sbRtidIiwYX/j
kqKol8prKfOrxuIG6Rp/dZhvI/EyolQJNTYe6XCnNcIUY/5CSpXFiETG8uoC6M/a
DrJ3xSCG4uY3O/DJUM3n1Od3rVKcHrbhYPKKwcOgkF9qXb0953DAsqU+1Ab6ZZ9Q
PmROivnRWszbHx3DtBBQzt4kwlonqNalFZPi43o82aLNukUtjhK/Qe9n+RWgZfkI
mOZ/a0L2DdxO9QVl6TeE5qF3Td1kSLmGm8uXS7Obst2r3/hI4mO3fyJKzf0YGAPn
UDsKbqkFdEms90tNCRNDL2zYsj7k9Ul0uwHC2e9n8Et78FPsJwfzm8c4SzX8jxEs
dpFu0QGE3kySAWzGCgjXQNB50kJdcq5lrsxWp23aIfoPdUYTLELGxg3RasSuIpiY
LYhQPL8NktWa4sEGt/bJkNNKNIU45RcVoJHs0ru6xZCd3okEhFRv6fh7xlXoW0vr
5ichqn0eYjh3YbF6UXGqvtYcW9xCA0jK54kcbfOxnUbY6Xko504=
=trM1
-----END PGP SIGNATURE-----