Hi!

I work on MSYS2 and now built mingw-msys2 cross compiler. Also I successfully build native toolchain for msys2 and some 3rdparty libs. Now I need to cross-compiling BASH but I got error on start building:

gcc  -DPROGRAM='"bash.exe"' -DCONF_HOSTTYPE='"i686"' -DCONF_OSTYPE='"msys"' -DCONF_MACHTYPE='"i686-pc-msys"' -DCONF_VENDOR='"pc"' -DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL  -DHAVE_CONFIG_H -DRECYCLES_PIDS   -I.  -I../../src/bash-4.2 -I../../src/bash-4.2/include -I../../src/bash-4.2/lib   -g -DCROSS_COMPILING -o mksyntax.exe ../../src/bash-4.2/mksyntax.c
In file included from c:\test\crosstools\gcc-4.7.2-msys\usr\bin\../lib/gcc/i686-pc-msys/4.7.2/include/stdint.h:3:0,
                 from c:\test\crosstools\gcc-4.7.2-msys\usr\bin\../lib/gcc/i686-pc-msys/4.7.2/../../../../i686-pc-msys/include/cygwin/types.h:20,
                 from c:\test\crosstools\gcc-4.7.2-msys\usr\bin\../lib/gcc/i686-pc-msys/4.7.2/../../../../i686-pc-msys/include/sys/types.h:455,
                 from c:\test\crosstools\gcc-4.7.2-msys\usr\bin\../lib/gcc/i686-pc-msys/4.7.2/../../../../i686-pc-msys/include/stdio.h:47,
                 from ../../src/bash-4.2/mksyntax.c:25:
c:\test\crosstools\gcc-4.7.2-msys\usr\bin\../lib/gcc/i686-pc-msys/4.7.2/../../../../i686-pc-msys/include/stdint.h:106:19: error: 'long long long' is too long for GCC
c:\test\crosstools\gcc-4.7.2-msys\usr\bin\../lib/gcc/i686-pc-msys/4.7.2/../../../../i686-pc-msys/include/stdint.h:106:19: error: 'long long long' is too long for GCC
c:\test\crosstools\gcc-4.7.2-msys\usr\bin\../lib/gcc/i686-pc-msys/4.7.2/../../../../i686-pc-msys/include/stdint.h:107:28: error: duplicate 'unsigned'
c:\test\crosstools\gcc-4.7.2-msys\usr\bin\../lib/gcc/i686-pc-msys/4.7.2/../../../../i686-pc-msys/include/stdint.h:107:28: error: 'long long long' is too long for GCC
c:\test\crosstools\gcc-4.7.2-msys\usr\bin\../lib/gcc/i686-pc-msys/4.7.2/../../../../i686-pc-msys/include/stdint.h:107:28: error: 'long long long' is too long for GCC
../../src/bash-4.2/mksyntax.c:36:12: warning: 'optind' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
../../src/bash-4.2/mksyntax.c:37:14: warning: 'optarg' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]

Can it be resolved. I found thread with similar problem:
http://sourceforge.net/mailarchive/message.php?msg_id=28852743
but there is compiling bash with native mingw compiler.

Thanks, Alexey!