On 7/23/2016 3:15 AM, André Hentschel wrote:
> Am 23.07.2016 um 01:15 schrieb dw:
> I currently have no perfect setup, but Martell Malone wanted to clean 
> everything up and even upload builds to sf.net
> While doing this he spotted some strange issues which only happened on linux, 
> but not in msys2.
> You can have a look at:
> https://github.com/Alexpux/MSYS2-packages/blob/master/mingw-w64-cross-gcc-git/PKGBUILD

It turns out that none of those 'cross' packages on that link build 
correctly.  Although the two binutils packages run to completion, the 
executables they produce do not work correctly (for example directives 
that start at the beginning of a line just produce assembly errors).  I 
never got either of the gcc packages to build at all.

I did successfully build mingw-w64 for ARM using clang instead of gcc.  
The steps are (roughly):

 1. Install MSys2 (https://msys2.github.io/).
 2. Install clang (pacman -S mingw-w64-x86_64-clang mingw-w64-i686-clang).
 3. "A miracle occurs" and the mingw-w64 headers get copied to the
    "right" place.
 4. Use a configure line like (/c/Mingw-w64/configure --disable-lib32
    --disable-lib64 --enable-libarm32 --target=armv7-windows-gnu
    CC=clang CFLAGS='-target armv7-windows-gnu').
 5. Build and install with 'make' as per normal.

Much thanks to wbs on irc for pointing me in the right direction.

FWIW,
dw
------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to