From: Felipe Contreras Date: Mon, 21 Apr 2014 23:59:10 GMT Subject: RE: [NOT_A_PATCH] A naive attempt to cross-build Linux->mingw64 Git Message-ID: <5355b0ce562b8_6c39e772f0cb@nysa.notmuch> In-Reply-To: <1398118479-7731-1-git-send-email-marat@slonopotamus.org> Marat Radchenko wrote: > config.mak.uname: provide a way to explicitely request MinGW build. > This is required to perform Linux->MinGW crosscompilation. > --- > > > Personally I don't see why ideally I shouldn't be able to build upstream Git > > for Windows with mingw without leaving my Linux system. > > One day you might be able, but as of today... > > 1. Obtain x86_64-w64-mingw32 compiler for your *nix distro > * [Gentoo] emerge crossdev && crossdev -t x86_64-w64-mingw32 > * [Debian/Ubuntu] apt-get install mingw-w64 Note that I didn't say 64-bit. Baby steps, first the tried-and-true 32-bit compiler. > 2. Apply patch from this email to Git sources (git/git or msysgit/git - doesn't matter) Funny I came with almost exactly the same patch. > 3. `make CC=x86_64-w64-mingw32-gcc MINGW=1` I did: % make CC=i486-mingw32-gcc NO_OPENSSL=1 NO_GETTEXT=1 But ideally it should be: % make CROSS_COMPILE=i486-mingw32- (or whatever the name of the suite) > 4. Observe errors [1] I see those errors with a 64-bit compiler, but not with the old 32-bit one. > I would be happy to find out I'm doing something wrong -- Johannes says building > mingw64 Git is dirt-easy. I get the same error. I've been cross-compiling since basically all my professional life, so I don't think you are doing something wrong, it just doesn't work. -- Felipe Contreras -- -- *** Please reply-to-all at all times *** *** (do not pretend to know who is subscribed and who is not) *** *** Please avoid top-posting. *** The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free. You received this message because you are subscribed to the Google Groups "msysGit" group. To post to this group, send email to msysgit@googlegroups.com To unsubscribe from this group, send email to msysgit+unsubscribe@googlegroups.com For more options, and view previous threads, visit this group at http://groups.google.com/group/msysgit?hl=en_US?hl=en --- You received this message because you are subscribed to the Google Groups "msysGit" group. To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.