arm-none-eabi-gcc error: no iconv implementation on MSYS2

Post Reply
laqieer
Posts: 2
Joined: Tue Apr 30, 2024 4:26 pm

arm-none-eabi-gcc error: no iconv implementation on MSYS2

Post by laqieer » Tue Apr 30, 2024 5:02 pm

What's the issue you encountered?
arm-none-eabi-gcc throws no iconv implementation error with -fexec-charset option on MSYS2.

How can the issue be reproduced?
$ cat test.c
const char s[] = "ああ";
$ $DEVKITARM/bin/arm-none-eabi-gcc -S test.c -fexec-charset=sjis
cc1.exe: error: no iconv implementation, cannot convert from UTF-8 to sjis

Copied from https://github.com/devkitPro/buildscripts/issues/60 as requested.

WinterMute
Site Admin
Posts: 1863
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: arm-none-eabi-gcc error: no iconv implementation on MSYS2

Post by WinterMute » Mon May 06, 2024 12:20 pm

I presume this has something to do with one or more of the decomp projects? If not then, being honest, I'd recommend using UTF-8 rather than sjis.

This command line appears to work with the linux & macOS toolchains where I end up with this in the generated assembly

Code: Select all

.ascii	"\202\240\202\240\000"
Is this the expected output?
Help keep devkitPro toolchains free, Donate today

Personal Blog

laqieer
Posts: 2
Joined: Tue Apr 30, 2024 4:26 pm

Re: arm-none-eabi-gcc error: no iconv implementation on MSYS2

Post by laqieer » Fri May 10, 2024 2:54 pm

WinterMute wrote: Mon May 06, 2024 12:20 pm This command line appears to work with the linux & macOS toolchains where I end up with this in the generated assembly

Code: Select all

.ascii	"\202\240\202\240\000"
Is this the expected output?
Yes, this is the expected output. https://gist.github.com/laqieer/24dcba6 ... est_sjis-s

WinterMute
Site Admin
Posts: 1863
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: arm-none-eabi-gcc error: no iconv implementation on MSYS2

Post by WinterMute » Sun May 12, 2024 12:16 am

Working with devkitARM release 64.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests