From unknown Mon Aug 18 17:58:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#74830] [PATCH] gnu: libcbor: Fix cross-compiling to 32-bit architecture Resent-From: Christoph Buck Original-Sender: "Debbugs-submit" Resent-CC: , guix-patches@gnu.org Resent-Date: Thu, 12 Dec 2024 14:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74830 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74830@debbugs.gnu.org Cc: Christoph Buck , ( , Christopher Baines , Ludovic Court?s , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice , jgart X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: ( , Christopher Baines , Ludovic Court?s , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice , jgart Received: via spool by submit@debbugs.gnu.org id=B.17340123169794 (code B ref -1); Thu, 12 Dec 2024 14:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Dec 2024 14:05:16 +0000 Received: from localhost ([127.0.0.1]:38243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLjoZ-0002Xd-FC for submit@debbugs.gnu.org; Thu, 12 Dec 2024 09:05:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:36208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLjoU-0002Vy-14 for submit@debbugs.gnu.org; Thu, 12 Dec 2024 09:05:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLjoI-000750-99 for guix-patches@gnu.org; Thu, 12 Dec 2024 09:05:00 -0500 Received: from mail-108-mta182.mxroute.com ([136.175.108.182]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLjoE-0001fI-UG for guix-patches@gnu.org; Thu, 12 Dec 2024 09:04:58 -0500 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta182.mxroute.com (ZoneMTA) with ESMTPSA id 193bb2fc1130003e01.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 12 Dec 2024 14:04:49 +0000 X-Zone-Loop: 41d340ec30082aeda48f7414b7f55a33cdc72f58b616 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=icepic.de; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To: From:Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=DC+O32huDXLxdJ9cNj5cFMFmjamUetiLn03EHj5X4GQ=; b=Y 0IU5jqL557woSwo52ofeelwadD/XAmm70Rxudywh1Y+bWBQyJdp23gBFd9+J7KK1ahUImxyF+b6IA jpgp9eF0x0Qk163ET17JUHXTZHd0MgTAOlhRFUiKxjjUk0B2/8/gcWB97BH4CvWAL6taAdY40cDKq yWq9FCKTQH6K1W3Vm0BFiNw85DyBf550nrjJFyWBxPNDbYUHBBANkZA9vp4zUQxeeCYZxgX+Hq87v 8WjPk0zrJcZMU+0rb/1ISVQcgPLQ7rG5JI2X3VcBCl1a4jwj/0MyxDdMvk/8uJtBfwZiV+2bQT5M7 AKPJZ1UC1MyHmcCaytR6Iwd2bArhS+OiQ==; From: Christoph Buck Date: Thu, 12 Dec 2024 14:04:35 +0000 Message-ID: <62a9e8b6613b09d0a260007aa2c79ad05cf774df.1734012275.git.dev@icepic.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: dev@icepic.de Received-SPF: pass client-ip=136.175.108.182; envelope-from=dev@icepic.de; helo=mail-108-mta182.mxroute.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * 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 --- gnu/packages/compression.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 99ea090091..eb3968cbce 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -2919,6 +2919,7 @@ (define-public libcbor "-DCMAKE_BUILD_TYPE=Release" "-DBUILD_SHARED_LIBS=ON" "-DCBOR_CUSTOM_ALLOC=ON" + "-DWITH_EXAMPLES=OFF" (string-append "-DCMAKE_INSTALL_LIBDIR=" lib) (string-append "-DCMAKE_INSTALL_RPATH=" lib))))) (synopsis "The C library for parsing and generating CBOR") base-commit: d916d3b1568a2def0dfb9089d61f2202db35beb7 -- 2.46.0 From unknown Mon Aug 18 17:58:05 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Christoph Buck Subject: bug#74830: closed (Re: [bug#74830] [PATCH] gnu: libcbor: Fix cross-compiling to 32-bit architecture) Message-ID: References: <87bjxch80q.fsf@gnu.org> <62a9e8b6613b09d0a260007aa2c79ad05cf774df.1734012275.git.dev@icepic.de> X-Gnu-PR-Message: they-closed 74830 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 74830@debbugs.gnu.org Date: Sun, 15 Dec 2024 22:55:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1734303304-32561-1" This is a multi-part message in MIME format... ------------=_1734303304-32561-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #74830: [PATCH] gnu: libcbor: Fix cross-compiling to 32-bit architecture which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 74830@debbugs.gnu.org. --=20 74830: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74830 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1734303304-32561-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 74830-done) by debbugs.gnu.org; 15 Dec 2024 22:54:42 +0000 Received: from localhost ([127.0.0.1]:52542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMxVZ-0008SV-FY for submit@debbugs.gnu.org; Sun, 15 Dec 2024 17:54:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMxVX-0008SD-IK for 74830-done@debbugs.gnu.org; Sun, 15 Dec 2024 17:54:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMxVR-0001T8-96; Sun, 15 Dec 2024 17:54:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=sc9ChQL46YJjyosPS6+OkuS31vugG7vrun7zGQSvgF0=; b=M9gRfGna3dLxLgd5YaCW ID1+ngxW9sXyWk0qpkTjJ2SU50MqbuKL+mNe509FJT+/8tbjgbR7scJ/AQNXTYTya63sjya0gsNiR 4HemVz8YPnIHEkjslMI0+s9jHoji/Xa56Wg3hUscoxrBXLDkDwUoXSnBsgGAkbPhZ2cX5KQmqKGrS gDdBmPps+xEMpWLEHMGrmY56QXQ3OcI8hEhR0k1YUJtAk7Ve9Cd+GIR2qPNnUYEopBvBrxH3NR8qp qQUB7uVRh7HC8tQR9S0svSOdZ2rlBoxLg0hA6dclu1XJRfsRu9cEDie9qKvUp0rRaZVrYiYyF0gth n3FPypsY9lKvsg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Christoph Buck Subject: Re: [bug#74830] [PATCH] gnu: libcbor: Fix cross-compiling to 32-bit architecture In-Reply-To: <62a9e8b6613b09d0a260007aa2c79ad05cf774df.1734012275.git.dev@icepic.de> (Christoph Buck's message of "Thu, 12 Dec 2024 14:04:35 +0000") References: <62a9e8b6613b09d0a260007aa2c79ad05cf774df.1734012275.git.dev@icepic.de> Date: Sun, 15 Dec 2024 23:54:29 +0100 Message-ID: <87bjxch80q.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74830-done Cc: Simon Tournier , paren@disroot.org, Tobias Geerinckx-Rice , jgart , Mathieu Othacehe , Christopher Baines , 74830-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Christoph Buck skribis: > * gnu/packages/compression.scm (libcbor)[arguments]: Disable examples bec= ause > 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=E2=80=99. ------------=_1734303304-32561-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Dec 2024 14:05:16 +0000 Received: from localhost ([127.0.0.1]:38243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLjoZ-0002Xd-FC for submit@debbugs.gnu.org; Thu, 12 Dec 2024 09:05:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:36208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLjoU-0002Vy-14 for submit@debbugs.gnu.org; Thu, 12 Dec 2024 09:05:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLjoI-000750-99 for guix-patches@gnu.org; Thu, 12 Dec 2024 09:05:00 -0500 Received: from mail-108-mta182.mxroute.com ([136.175.108.182]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLjoE-0001fI-UG for guix-patches@gnu.org; Thu, 12 Dec 2024 09:04:58 -0500 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta182.mxroute.com (ZoneMTA) with ESMTPSA id 193bb2fc1130003e01.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 12 Dec 2024 14:04:49 +0000 X-Zone-Loop: 41d340ec30082aeda48f7414b7f55a33cdc72f58b616 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=icepic.de; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To: From:Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=DC+O32huDXLxdJ9cNj5cFMFmjamUetiLn03EHj5X4GQ=; b=Y 0IU5jqL557woSwo52ofeelwadD/XAmm70Rxudywh1Y+bWBQyJdp23gBFd9+J7KK1ahUImxyF+b6IA jpgp9eF0x0Qk163ET17JUHXTZHd0MgTAOlhRFUiKxjjUk0B2/8/gcWB97BH4CvWAL6taAdY40cDKq yWq9FCKTQH6K1W3Vm0BFiNw85DyBf550nrjJFyWBxPNDbYUHBBANkZA9vp4zUQxeeCYZxgX+Hq87v 8WjPk0zrJcZMU+0rb/1ISVQcgPLQ7rG5JI2X3VcBCl1a4jwj/0MyxDdMvk/8uJtBfwZiV+2bQT5M7 AKPJZ1UC1MyHmcCaytR6Iwd2bArhS+OiQ==; From: Christoph Buck To: guix-patches@gnu.org Subject: [PATCH] gnu: libcbor: Fix cross-compiling to 32-bit architecture Date: Thu, 12 Dec 2024 14:04:35 +0000 Message-ID: <62a9e8b6613b09d0a260007aa2c79ad05cf774df.1734012275.git.dev@icepic.de> MIME-Version: 1.0 X-Debbugs-Cc: ( , Christopher Baines , Ludovic Court?s , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice , jgart Content-Transfer-Encoding: 8bit X-Authenticated-Id: dev@icepic.de Received-SPF: pass client-ip=136.175.108.182; envelope-from=dev@icepic.de; helo=mail-108-mta182.mxroute.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Christoph Buck X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * 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 --- gnu/packages/compression.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 99ea090091..eb3968cbce 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -2919,6 +2919,7 @@ (define-public libcbor "-DCMAKE_BUILD_TYPE=Release" "-DBUILD_SHARED_LIBS=ON" "-DCBOR_CUSTOM_ALLOC=ON" + "-DWITH_EXAMPLES=OFF" (string-append "-DCMAKE_INSTALL_LIBDIR=" lib) (string-append "-DCMAKE_INSTALL_RPATH=" lib))))) (synopsis "The C library for parsing and generating CBOR") base-commit: d916d3b1568a2def0dfb9089d61f2202db35beb7 -- 2.46.0 ------------=_1734303304-32561-1--