X-Loop: help-debbugs@HIDDEN Subject: bug#73835: Build failure with gcc 14 and musl on 32 bit Resent-From: Natanael Copa <ncopa@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guile@HIDDEN Resent-Date: Wed, 16 Oct 2024 07:57:01 +0000 Resent-Message-ID: <handler.73835.B.17290654178541 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 73835 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 73835 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guile@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.17290654178541 (code B ref -1); Wed, 16 Oct 2024 07:57:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Oct 2024 07:56:57 +0000 Received: from localhost ([127.0.0.1]:58381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t0ytt-0002Dh-4b for submit <at> debbugs.gnu.org; Wed, 16 Oct 2024 03:56:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:44182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ncopa@HIDDEN>) id 1t0ytr-0002DZ-Nf for submit <at> debbugs.gnu.org; Wed, 16 Oct 2024 03:56:56 -0400 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 <ncopa@HIDDEN>) id 1t0ytX-0003U5-0C for bug-guile@HIDDEN; Wed, 16 Oct 2024 03:56:35 -0400 Received: from gbr-app-1.alpinelinux.org ([213.219.36.190]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ncopa@HIDDEN>) id 1t0ytV-0000fQ-Fa for bug-guile@HIDDEN; Wed, 16 Oct 2024 03:56:34 -0400 Received: from ncopa-desktop (unknown [IPv6:2001:4646:fb05:0:78a3:551:2e7c:311b]) (Authenticated sender: ncopa@HIDDEN) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPSA id 75CB92240A0 for <bug-guile@HIDDEN>; Wed, 16 Oct 2024 07:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alpinelinux.org; s=smtp; t=1729065387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tQmGSengGDQrOjauZE1SKtFhmqFh2+hBoG5y7CPqPUA=; b=j2B9V93y5GwI3Z1AnLm+1lOJCak1677I0omYkzOB8Gi7ek+UYFFTiGrRb+V9heAKrqxN6a Az6ViQI2i5/yUuxr6YlYmaUTSy4BCgWAAHARLfOzy5eqCrC36hd/Io7CuutkA+cgTsVXNy C727ju0QFYQ3jnjrIvnomKgpuHc3j+Y= Date: Wed, 16 Oct 2024 09:56:22 +0200 From: Natanael Copa <ncopa@HIDDEN> Message-ID: <20241016095622.229673d2@ncopa-desktop> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=213.219.36.190; envelope-from=ncopa@HIDDEN; helo=gbr-app-1.alpinelinux.org 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_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_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.6 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.6 (--) Hi, I get this error message when compiling guile 3.0.9 and 3.0.10 with gcc 14 / musl libc on 32 bit Alpine Linux: filesys.c: In function 'scm_sendfile': filesys.c:1405:16: error: assignment to 'off_t *' {aka 'long long int *'} from incompatible pointer type 'scm_t_off *' {aka 'long int *'} [-Wincompatible-pointer-types] 1405 | offset_ptr = SCM_UNBNDP (offset) ? NULL : &c_offset; | ^ It looks like an assumption that off_t is 32 bit, which is not true on musl libc. -nc
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Natanael Copa <ncopa@HIDDEN> Subject: bug#73835: Acknowledgement (Build failure with gcc 14 and musl on 32 bit) Message-ID: <handler.73835.B.17290654178541.ack <at> debbugs.gnu.org> References: <20241016095622.229673d2@ncopa-desktop> X-Gnu-PR-Message: ack 73835 X-Gnu-PR-Package: guile Reply-To: 73835 <at> debbugs.gnu.org Date: Wed, 16 Oct 2024 07:57:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guile@HIDDEN If you wish to submit further information on this problem, please send it to 73835 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 73835: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D73835 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#73835: Build failure with gcc 14 and musl on 32 bit Resent-From: Natanael Copa <ncopa@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guile@HIDDEN Resent-Date: Wed, 16 Oct 2024 08:03:02 +0000 Resent-Message-ID: <handler.73835.B.17290657479594 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 73835 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 73835 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guile@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.17290657479594 (code B ref -1); Wed, 16 Oct 2024 08:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Oct 2024 08:02:27 +0000 Received: from localhost ([127.0.0.1]:58412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t0yzD-0002Ug-8u for submit <at> debbugs.gnu.org; Wed, 16 Oct 2024 04:02:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:40586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ncopa@HIDDEN>) id 1t0yzB-0002UY-LB for submit <at> debbugs.gnu.org; Wed, 16 Oct 2024 04:02:26 -0400 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 <ncopa@HIDDEN>) id 1t0yys-0007An-0S for bug-guile@HIDDEN; Wed, 16 Oct 2024 04:02:06 -0400 Received: from gbr-app-1.alpinelinux.org ([213.219.36.190]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ncopa@HIDDEN>) id 1t0yyq-0001Pp-CN for bug-guile@HIDDEN; Wed, 16 Oct 2024 04:02:05 -0400 Received: from ncopa-desktop (unknown [IPv6:2001:4646:fb05:0:78a3:551:2e7c:311b]) (Authenticated sender: ncopa@HIDDEN) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPSA id B417A2237CD for <bug-guile@HIDDEN>; Wed, 16 Oct 2024 08:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alpinelinux.org; s=smtp; t=1729065722; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IGGDSV65kEKFEWS+7pRR6jbvNiKhmjj7K7PWAcJv7tE=; b=jhNB3/WxbhU2R2YK3gv7c3TQ8GzyS/Wy2sAnkVCrK347PrS7WhSbU3str+GqBDpYbqkf28 sVhMp2KR9wA1b5N/CgKBoMVdZZJzOG5MaDcXUSJxXoHH1tSz5EdPHRC1nccqXYj34p/2FX vyGnkoCogO02LwClsZtzBaUdykQbooo= Date: Wed, 16 Oct 2024 10:02:01 +0200 From: Natanael Copa <ncopa@HIDDEN> Message-ID: <20241016100201.7da5123f@ncopa-desktop> In-Reply-To: <20241016095622.229673d2@ncopa-desktop> References: <20241016095622.229673d2@ncopa-desktop> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=213.219.36.190; envelope-from=ncopa@HIDDEN; helo=gbr-app-1.alpinelinux.org 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_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_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.6 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.6 (--) On Wed, 16 Oct 2024 09:56:22 +0200 Natanael Copa <ncopa@HIDDEN> wrote: > Hi, > > I get this error message when compiling guile 3.0.9 and 3.0.10 with gcc > 14 / musl libc on 32 bit Alpine Linux: > > filesys.c: In function 'scm_sendfile': > filesys.c:1405:16: error: assignment to 'off_t *' {aka 'long long int *'} from incompatible pointer type 'scm_t_off *' {aka 'long int *'} [-Wincompatible-pointer-types] > 1405 | offset_ptr = SCM_UNBNDP (offset) ? NULL : &c_offset; > | ^ > > It looks like an assumption that off_t is 32 bit, which is not true on musl libc. > > -nc This appears to solve it: diff --git a/libguile/filesys.c b/libguile/filesys.c index 70a6ef6..0500d45 100644 --- a/libguile/filesys.c +++ b/libguile/filesys.c @@ -1388,7 +1388,7 @@ SCM_DEFINE (scm_sendfile, "sendfile", 3, 1, 0, ssize_t result SCM_UNUSED; size_t c_count, total = 0; - scm_t_off c_offset; + off_t c_offset; int in_fd, out_fd; VALIDATE_FD_OR_PORT (out_fd, out, 1);
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.