Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
libgit2 incompatible ptr types, llvm22 i386
To:
Antoine Jacoutot <ajacoutot@bsdfrog.org>
Cc:
ports <ports@openbsd.org>
Date:
Sat, 30 May 2026 16:11:21 +0100

Download raw body.

Thread
Sorry I don't have time to dig into it now:

/pobj/libgit2-1.9.4/libgit2-1.9.4/src/util/array.h:55:35: error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
   55 |                 if (GIT_MULTIPLY_SIZET_OVERFLOW(&new_size, *asize, 3))
      |                                                 ^~~~~~~~~
/pobj/libgit2-1.9.4/libgit2-1.9.4/src/util/git2_util.h:146:32: note: expanded from macro 'GIT_MULTIPLY_SIZET_OVERFLOW'
  146 |         (git__multiply_sizet_overflow(out, nelem, elsize) ? (git_error_set_oom(), 1) : 0)
      |                                       ^~~
/pobj/libgit2-1.9.4/libgit2-1.9.4/src/util/integer.h:60:40: note: expanded from macro 'git__multiply_sizet_overflow'
   60 |      __builtin_umul_overflow(one, two, out)
      |                                        ^~~
1 error generated.