GNU bug report logs - #73835
Build failure with gcc 14 and musl on 32 bit

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Natanael Copa <ncopa@HIDDEN>; dated Wed, 16 Oct 2024 07:57:01 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Oct 2024 08:02:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 16 04:02:27 2024
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>
To: bug-guile@HIDDEN
Subject: Re: Build failure with gcc 14 and musl on 32 bit
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-Debbugs-Envelope-To: submit
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);





Information forwarded to bug-guile@HIDDEN:
bug#73835; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Oct 2024 07:56:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 16 03:56:57 2024
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>
To: bug-guile@HIDDEN
Subject: Build failure with gcc 14 and musl on 32 bit
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-Debbugs-Envelope-To: submit
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




Acknowledgement sent to Natanael Copa <ncopa@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#73835; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.