From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Natanael Copa Newsgroups: gmane.lisp.guile.bugs Subject: bug#73835: Build failure with gcc 14 and musl on 32 bit Date: Wed, 16 Oct 2024 10:02:01 +0200 Message-ID: <20241016100201.7da5123f@ncopa-desktop> References: <20241016095622.229673d2@ncopa-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10607"; mail-complaints-to="usenet@ciao.gmane.io" To: 73835@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed Oct 16 10:03:09 2024 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t0yzs-0002Rd-Pa for guile-bugs@m.gmane-mx.org; Wed, 16 Oct 2024 10:03:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0yzV-0007Kz-2t; Wed, 16 Oct 2024 04:02:45 -0400 Original-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 1t0yzT-0007KW-JM for bug-guile@gnu.org; Wed, 16 Oct 2024 04:02:43 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0yzT-0001TO-B0 for bug-guile@gnu.org; Wed, 16 Oct 2024 04:02:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=IGGDSV65kEKFEWS+7pRR6jbvNiKhmjj7K7PWAcJv7tE=; b=juUnUKp8FUPZRNHQYsWyYbsopNEN26fK04q+jYkiSwZw/1pGs3dyNYS6pNK9YyAFqyOplcJH4RVf1TzLo1T4uS/qyn2ycerMbx3jOfQUD0T+6BhkdCbm2XxmF0GF6Gh9gXFDq7ipD1dG1bD8PV4sJ9GjKcr9Lax1R2lflXymc9Mbk8IoZvp90DvJaYXH2XAz8HFndVtOORZDOsTmypzr4PhihaHnmVu/vm9JL0ReTwSHiURfKD69Be8qEXamlosGVK+EAj8KU6EZfRe6454ijGGwX0wZMLQVKlWoWHAqz9PxjRluXKkYtqxzVV43/w598fPsl1GRv76a/+wHxT6EyQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t0yzm-0002VY-Hl for bug-guile@gnu.org; Wed, 16 Oct 2024 04:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Natanael Copa Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 16 Oct 2024 08:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73835 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17290657479594 (code B ref -1); Wed, 16 Oct 2024 08:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Oct 2024 08:02:27 +0000 Original-Received: from localhost ([127.0.0.1]:58412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0yzD-0002Ug-8u for submit@debbugs.gnu.org; Wed, 16 Oct 2024 04:02:27 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:40586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t0yzB-0002UY-LB for submit@debbugs.gnu.org; Wed, 16 Oct 2024 04:02:26 -0400 Original-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 1t0yys-0007An-0S for bug-guile@gnu.org; Wed, 16 Oct 2024 04:02:06 -0400 Original-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 ) id 1t0yyq-0001Pp-CN for bug-guile@gnu.org; Wed, 16 Oct 2024 04:02:05 -0400 Original-Received: from ncopa-desktop (unknown [IPv6:2001:4646:fb05:0:78a3:551:2e7c:311b]) (Authenticated sender: ncopa@alpinelinux.org) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPSA id B417A2237CD for ; 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= In-Reply-To: <20241016095622.229673d2@ncopa-desktop> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; x86_64-alpine-linux-musl) Received-SPF: pass client-ip=213.219.36.190; envelope-from=ncopa@alpinelinux.org; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:11041 Archived-At: On Wed, 16 Oct 2024 09:56:22 +0200 Natanael Copa 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);