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

RE: [Change] Git build issue on NonStop

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Sep 18, 2025, 15:20 UTC
Message-ID
<020001dc28af$bfec1420$3fc43c60$@nexbridge.com>
In-Reply-To
<xmqqbjn7akca.fsf@gitster.g>
On September 18, 2025 10:48 AM, Junio C Hamano wrote:
Show 5 quoted lines
>Patrick Steinhardt <ps@pks.im> writes:
>
>> One thing I missed: `uintmax_t` doesn't work on 32 bit systems:
>>
>>     ::error file=clar.c,line=879::clar.c:879:8: cast from pointer to
integer of different
Show 10 quoted lines
>size [-Werror=pointer-to-int-cast]
>>       879 |        (uintmax_t)p1, (uintmax_t)p2);
>>           |        ^
>>
>> I'm inclined to just use "%p" instead and accept that this has
>> platform-dependent behaviour. Means we'll have to drop the test for
>> this, but that's the lesser evil from my point of view.
>
>As long as %p works everywhere and with stable output, that is the most
>appropriate solution, I would think.  After all, this is used only for
"oops, the test
>expects these two pointers are pointing at the same address, but they
differ; they
>point at these places...".
>
>To test such a test, wouldn't it be sufficient to perform "does it give a
bit of output
>or not?" check in isolation?

Surprisingly, this actually works on NonStop x86 in both memory models despite warnings to the contrary in their man page.. Thanks :)

Previous: Junio C Hamano
Message 8 of 8 in “[Change] Git build issue on NonStop”
  1. rsbecker@nexbridge.comSep 18, 2025
  2. Jeff KingSep 18, 2025
  3. rsbecker@nexbridge.comSep 18, 2025
  4. Patrick SteinhardtSep 18, 2025
  5. Jeff KingSep 18, 2025
  6. Patrick SteinhardtSep 18, 2025
  7. Junio C HamanoSep 18, 2025
  8. rsbecker@nexbridge.comSep 18, 2025

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.