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

Re: XDL_FAST_HASH breaks git on OS X 10.7.3

From
Junio C Hamano <gitster@pobox.com>
Date
May 1, 2012, 04:41 UTC
Message-ID
<7v4ns0cy3l.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7v8vhccy6m.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 20 quoted lines
> Brian Gernhardt <brian@gernhardtsoftware.com> writes:
>
>> On Apr 30, 2012, at 12:38 PM, Thomas Rast wrote:
>>
>>> I can reproduce this.  The problem is that __WORDSIZE is not defined,
>>> either because it's Darwin or because the GCC is too old.  It winds up
>>> compiling the 32-bit case, which of course doesn't work for 64-bit
>>> builds.
>>
>> Great.  I was worried about having to help you debug it via e-mail round-trips.  :-D
>>
>>> Perhaps we can rewrite it in terms of sizeof(long) like this?
>>
>> It does work for me, and seems pretty valid to me since long is actually
>> the type you're storing it in.
>
> Thomas, care to roll an incremental update with proper log message, so
> that we can unbreak the tip of 'next' for Darwin users?
>
> Thanks, both.

Oh, one thing I forgot to say. The low-level code structure seems to become different, so the perf numbers may need to be measured again.

Previous: Junio C HamanoNext: Thomas Rast
Message 5 of 9 in “XDL_FAST_HASH breaks git on OS X 10.7.3”
  1. Brian GernhardtApr 29, 2012
  2. Thomas RastApr 30, 2012
  3. Brian GernhardtMay 1, 2012
  4. Junio C HamanoMay 1, 2012
  5. Junio C HamanoMay 1, 2012
  6. Choose XDL_FAST_HASH code on sizeof(long) instead of __WORDSIZEThomas Rast, May 1, 2012
  7. Junio C HamanoMay 1, 2012
  8. David AguilarMay 1, 2012
  9. Junio C HamanoMay 1, 2012

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.