git/list[1] front-page[2] threads[3] people[4] search[5] about
 

MinGW(-W64) compilation

From
Marat Radchenko <marat@slonopotamus.org>
Date
Sep 28, 2014, 13:24 UTC
Message-ID
<1411910670-31285-1-git-send-email-marat@slonopotamus.org>
This patch series fixes building on modern MinGW and MinGW-W64 (including x86_64!).
*Compilation* tested on:
 - MSVC (via WinGit environment)
 - msysGit environment
 - Linux cross-toolchain i686-pc-mingw32
 - Linux cross-toolchain i686-w64-mingw32
 - Linux cross-toolchain x86_64-w64-mingw32
Attention: in order to build on MinGW-W64, you need to use 'sf/v3.x' branch
from MinGW-W64 repo because MinGW-W64 releases do not yet have a fix
for https://sourceforge.net/p/mingw-w64/bugs/397

Workaround that allows to also build on older MinGW-W64 is currently pending [1] on gnulib ML. If it is accepted, same fix [2] can be applied to Git copy of poll.c.

[1]: http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00076.html [2]: http://git.661346.n2.nabble.com/PATCH-v2-MinGW-W64-cross-compilation-tp7609085p7609093.html

-- 
-- 
*** 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 "Git for Windows" 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.
Next: Marat Radchenko
Message 1 of 18 in “MinGW(-W64) compilation”
  1. Marat RadchenkoSep 28, 2014
  2. 01/14 MINGW: compat/mingw.h: do not attempt to redefine lseek on mingw-w64Marat Radchenko, Sep 28, 2014
  3. 02/14 MSVC: config.mak.uname: drop -D__USE_MINGW_ACCESS from CFLAGSMarat Radchenko, Sep 28, 2014
  4. 03/14 MINGW: compat/mingw.h: drop fork() definitionMarat Radchenko, Sep 28, 2014
  5. 04/14 MINGW: do not fail at redefining pid_t on MinGW-W64Marat Radchenko, Sep 28, 2014
  6. 05/14 MINGW: config.mak.uname: allow using cURL for non-msysGit buildsMarat Radchenko, Sep 28, 2014
  7. 06/14 MINGW: compat/winansi.c: do not redefine CONSOLE_FONT_INFOEXMarat Radchenko, Sep 28, 2014
  8. 07/14 Fix BASIC_LDFLAGS and COMPAT_CFLAGS for 64bit MinGW-w64Marat Radchenko, Sep 28, 2014
  9. 08/14 MINGW: git-compat-util.h: use inttypes.h for printf macrosMarat Radchenko, Sep 28, 2014
  10. 09/14 MINGW: config.mak.uname: reorganize MinGW settingsMarat Radchenko, Sep 28, 2014
  11. 10/14 Makefile: introduce CROSS_COMPILE variableMarat Radchenko, Sep 28, 2014
  12. 11/14 compat/nedmalloc/malloc.c.h: fix compilation under MinGW-W64Marat Radchenko, Sep 28, 2014
  13. 12/14 Fix pointer -> integer casts on IL32P64 systemsMarat Radchenko, Sep 28, 2014
  14. Johannes SixtSep 29, 2014
  15. Marat RadchenkoSep 30, 2014
  16. 13/14 git-compat-util.h: fix integer overflow on IL32P64 systemsMarat Radchenko, Sep 28, 2014
  17. 14/14 MINGW: config.mak.uname: auto-detect MinGW build from compilerMarat Radchenko, Sep 28, 2014
  18. Johannes SchindelinSep 28, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.