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

Re: git build on msys fails (and fix)

From
dhruva <dhruvakm@gmail.com>
Date
Nov 30, 2008, 11:52 UTC
Message-ID
<e3f230850811300352n76fda756jfeec6e9fb3db5246@mail.gmail.com>
In-Reply-To
<e3f230850811300302y68992b9doe4897d97d513de3a@mail.gmail.com>
Hi,
On Sun, Nov 30, 2008 at 4:32 PM, dhruva <dhruvakm@gmail.com> wrote:
Show 41 quoted lines
> Hello,
>  I build git on msys environment regularly. With the recent changes to
> add cache preload facility (commit ID:
> 671c9b7e315db89081cc69f83a8f405e4aca37bc) brings in dependency on
> pthreads. This is not available in the msys distribution which was
> part of the git build distro. I installed libpthread for mingw to get
> the related headers and libraries. I had to make some minor changes to
> libpthread installation. I copied the 'setjmp.h' from my other mingw
> installation and had to had edit it to remove some mingw specific
> macros.
>
> @:/e/users/dhruva/stub/repo/git/git
> [520]$ diff -u /e/tools/gnu/include/setjmp.h /mingw/include/setjmp.h
> --- /e/tools/gnu/include/setjmp.h       Sun Oct  5 04:01:15 2008
> +++ /mingw/include/setjmp.h     Sun Nov 30 16:18:00 2008
> @@ -36,7 +36,7 @@
>  * The function provided by CRTDLL which appears to do the actual work
>  * of setjmp.
>  */
> -_CRTIMP int __cdecl __MINGW_NOTHROW _setjmp (jmp_buf);
> +int __cdecl _setjmp (jmp_buf);
>
>  #define        setjmp(x)       _setjmp(x)
>
> @@ -44,7 +44,7 @@
>  * Return to the last setjmp call and act as if setjmp had returned
>  * nVal (which had better be non-zero!).
>  */
> -_CRTIMP void __cdecl __MINGW_NOTHROW longjmp (jmp_buf, int)
> __MINGW_ATTRIB_NORETURN;
> +void __cdecl longjmp (jmp_buf, int);
>
>  #ifdef __cplusplus
>  }
>
> Also,
>  had to copy a pthread library with a dfferent name to the standard name:
> $cp libpthreadGC2.a libpthread.a
>
> The build went fine and am using the new binaries.
>

I also had to define THREADED_DELTA_SEARCH. $ export THREADED_DELTA_SEARCH=1 $ make

This worked for me.
-dhruva
-- 
Contents reflect my personal views only!
Previous: dhruvaNext: Johannes Sixt
Message 2 of 10 in “git build on msys fails (and fix)”
  1. dhruvaNov 30, 2008
  2. dhruvaNov 30, 2008
  3. Johannes SixtDec 1, 2008
  4. dhruvaDec 1, 2008
  5. dhruvaDec 1, 2008
  6. dhruvaDec 1, 2008
  7. Johannes SixtDec 1, 2008
  8. dhruvaDec 1, 2008
  9. dhruvaDec 1, 2008
  10. dhruvaDec 1, 2008

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.