Subject: Re: [bug#74830] [PATCH] gnu: libcbor: Fix cross-compiling to 32-bit architecture
From: Ludovic Courtès <[email-masked]>
To: Christoph Buck <[email-masked]>
Cc: Simon Tournier <[email-masked]>, [email-masked], Tobias Geerinckx-Rice <[email-masked]>, jgart <[email-masked]>, Mathieu Othacehe <[email-masked]>, Christopher Baines <[email-masked]>, [email-masked]
Date: Sun, 15 Dec 2024 23:54:29 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Christoph Buck <[email-masked]> skribis:

> * gnu/packages/compression.scm (libcbor)[arguments]: Disable examples because
> they don't build during cross-compilation. The callback definition
> `find_string` in examples/streaming_parser.c uses `size_t` as type for
> argument `len` which is 4 bytes on a 32bit platform. However, the callback
> handler of type `cbor_callbacks.string` to which `find_string` is assigned
> expects an `uint64_t`. Since the examples are not required this patch will
> disable them from the build.
>
> Change-Id: I596a62a9d0ab936179c8344e91ecc2cb0419316f

Applied, thanks.  I took the liberty to add some of the explanation as a
comment, to make it easier to find.

Ludo’.