Can not list dir, MinGW compiler issue?

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Aug 20 10:01:32 UTC 2013


On 2013-08-20 11:35, ruizx wrote:
> On Tuesday, August 20, 2013 5:26 PM Sebastian Huber wrote:
>
>> What is the difference between the tool chains?  How did you build
>> them?
>
> I download from http://www.rtems.org/ftp/pub/rtems/linux/4.11/centos/6/
> and http://www.rtems.org/ftp/pub/rtems/mingw32/4.11/rtems-4.11-i386-rtems4.11-gcc/
>
> Centos gcc version:
>
> [ruizx at localhost hello]$ powerpc-rtems4.11-gcc -v
> Using built-in specs.
> COLLECT_GCC=powerpc-rtems4.11-gcc
> COLLECT_LTO_WRAPPER=/opt/rtems-4.11/libexec/gcc/powerpc-rtems4.11/4.8.0/lto-wrapper
> Target: powerpc-rtems4.11
> Configured with: ../gcc-4.8.0/configure --prefix=/opt/rtems-4.11 --bindir=/opt/rtems-4.11/bin --exec_prefix=/opt/rtems-4.11 --includedir=/opt/rtems-4.11/include --libdir=/opt/rtems-4.11/lib --libexecdir=/opt/rtems-4.11/libexec --mandir=/opt/rtems-4.11/share/man --infodir=/opt/rtems-4.11/share/info --datadir=/opt/rtems-4.11/share --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=powerpc-rtems4.11 --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs --enable-threads --disable-lto --disable-plugin --enable-newlib-io-c99-formats --enable-newlib-iconv --enable-languages=c,c++
> Thread model: rtems
> gcc version 4.8.0 20130322 (RTEMS gcc-4.8.0-2.el6/newlib-1.20.0-23.el6) (GCC)
>
> MinGW gcc version:
>
> $ powerpc-rtems4.11-gcc.exe -v
> Using built-in specs.
> COLLECT_GCC=e:\RTEMS-Studio\host\ppc-rtems-4.11\bin\powerpc-rtems4.11-gcc.exe
> COLLECT_LTO_WRAPPER=e:/rtems-studio/host/ppc-rtems-4.11/bin/../libexec/gcc/powerpc-rtems4.11/4.7.2/lto-wrapper.exe
> Target: powerpc-rtems4.11
> Configured with: ../gcc-4.7.2/configure --prefix=/opt/rtems-4.11 --bindir=/opt/rtems-4.11/bin --exec_prefix=/opt/rtems-4.11 --includedir=/opt/rtems-4.11/include
>   --libdir=/opt/rtems-4.11/lib --libexecdir=/opt/rtems-4.11/libexec --mandir=/opt/rtems-4.11/share/man --infodir=/opt/rtems-4.11/share/info --datadir=/opt/rtems-
> 4.11/share --build=i386-pc-linux-gnu --host=i686-pc-mingw32 --target=powerpc-rtems4.11 --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --verbose --with-newlib
> --with-system-zlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs --enable-threads --disable-lto --
> disable-plugin --enable-newlib-io-c99-formats --enable-newlib-iconv --enable-languages=c,c++
> Thread model: rtems
> gcc version 4.7.2 20120920 (RTEMS gcc-4.7.2-3.mgw/newlib-1.20.0-19.mgw) (GCC)
>

Both compilers don't support the UTF-8 converters via iconv().  It should look 
like this:

powerpc-rtems4.11-gcc -v
Using built-in specs.
COLLECT_GCC=powerpc-rtems4.11-gcc
COLLECT_LTO_WRAPPER=/scratch/opt/rtems-4.11/lib/gcc/powerpc-rtems4.11/4.8.2/lto-wrapper
Target: powerpc-rtems4.11
Configured with: /home/sh/archive/gcc-git/configure 
--prefix=/scratch/opt/rtems-4.11 --target=powerpc-rtems4.11  --verbose 
--with-gnu-as --with-gnu-ld --with-newlib --disable-libstdcxx-pch --disable-nls 
--disable-lto --disable-plugin --without-included-gettext 
--disable-win32-registry --enable-version-specific-runtime-libs 
--enable-threads --enable-newlib-iconv 
--enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,win_1253,win_1254,win_1255,win_1256,win_1257,win_1258 
--enable-newlib-io-c99-formats --enable-languages=c,c++
Thread model: rtems
gcc version 4.8.2 20130807 (prerelease) [master revision 
022fc2d:bffd767:fd457cef14f3bc6673e90a2de80005feea743ab7] (GCC)

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list