Page 1 of 1

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

Posted: Tue Apr 30, 2024 5:02 pm
by laqieer
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.

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

Posted: Mon May 06, 2024 12:20 pm
by WinterMute
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?

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

Posted: Fri May 10, 2024 2:54 pm
by laqieer
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

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

Posted: Sun May 12, 2024 12:16 am
by WinterMute
Working with devkitARM release 64.