NetBSD Problem Report #58737
From www@netbsd.org Thu Oct 10 15:59:49 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id DA1BD1A923B
for <gnats-bugs@gnats.NetBSD.org>; Thu, 10 Oct 2024 15:59:48 +0000 (UTC)
Message-Id: <20241010155947.555B21A923D@mollari.NetBSD.org>
Date: Thu, 10 Oct 2024 15:59:47 +0000 (UTC)
From: andrew.cagney@gmail.com
Reply-To: andrew.cagney@gmail.com
To: gnats-bugs@NetBSD.org
Subject: building against gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) + glibc-2.39-22.fc40.x86_64
X-Send-Pr-Version: www-1.0
>Number: 58737
>Category: toolchain
>Synopsis: building against gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) + glibc-2.39-22.fc40.x86_64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 10 16:00:00 +0000 2024
>Last-Modified: Thu Oct 10 16:30:02 +0000 2024
>Originator: Andrew Cagney
>Release: 10.x
>Organization:
>Environment:
Linux bernard 6.10.12-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Sep 30 21:38:25 UTC 2024 x86_64 GNU/Linux
>Description:
Machine: -m evbarm64
Objdir: -O /home/netbsd/10/evbarm64
Toolsdir: -T /home/netbsd/10/tools
X11: -x -X /home/netbsd/10/xsrc
Jobs: -j 17
(I wonder if this should include the host compiler and libc, hmm Alpine; but I digress)
dependall ===> tools/date
# create date/date.d
/home/netbsd/10/evbarm64/tools/host-mkdep/host-mkdep -f date.d.tmp -- -Wno-error -Wno-literal-suffix -Wno-expansion-to-defined -Wno-implicit-fallthrough -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/netbsd/
10/evbarm64/tools/compat -I/home/netbsd/10/evbarm64/tools/compat/include -I/home/netbsd/10/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/home/netbsd/10/src/tools/date/../../bin/date -Wno-format-nonliteral /home/ne
tbsd/10/src/tools/date/../../bin/date/date.c && mv -f date.d.tmp date.d
# create date/.depend
rm -f .depend
/home/netbsd/10/evbarm64/tools/host-mkdep/host-mkdep -s .lo\ .ln\ .d -d -f .depend date.d
# compile date/date.lo
cc -fcommon -Wno-error -Wno-literal-suffix -Wno-expansion-to-defined -Wno-implicit-fallthrough -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/netbsd/10/evbarm64/tools/compat -I/home/netbsd/10/evbarm64/tools/comp
at/include -I/home/netbsd/10/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/home/netbsd/10/src/tools/date/../../bin/date -c -o date.lo.o -Wno-format-nonliteral /home/netbsd/10/src/tools/date/../../bin/date/date.c
cc1: warning: command-line option '-Wno-literal-suffix' is valid for C++/ObjC++ but not for C
/home/netbsd/10/src/tools/date/../../bin/date/date.c: In function 'setthetime':
/home/netbsd/10/src/tools/date/../../bin/date/date.c:218:21: error: implicit declaration of function 'strptime'; did you mean 'strftime'? [-Wimplicit-function-declaration]
218 | t = strptime(p, fmt, lt);
| ^~~~~~~~
| strftime
/home/netbsd/10/src/tools/date/../../bin/date/date.c:218:19: error: assignment to 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
218 | t = strptime(p, fmt, lt);
| ^
*** Failed target: date.lo
*** Failed command: cc -fcommon -Wno-error -Wno-literal-suffix -Wno-expansion-to-defined -Wno-implicit-fallthrough -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/home/netbsd/10/evbarm64/tools/compat -I/home/netbsd/10/
evbarm64/tools/compat/include -I/home/netbsd/10/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -I/home/netbsd/10/src/tools/date/../../bin/date -c -o date.lo.o -Wno-format-nonliteral /home/netbsd/10/src/tools/date/../../b
in/date/date.c
*** Error code 1
>How-To-Repeat:
>Fix:
I'll try hacking the headers
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: toolchain/58737: building against gcc (GCC) 14.2.1 20240912 (Red
Hat 14.2.1-3) + glibc-2.39-22.fc40.x86_64
Date: Thu, 10 Oct 2024 18:09:55 +0200
This has been fixed in HEAD, needs pullups.
Martin
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: toolchain/58737: building against gcc (GCC) 14.2.1 20240912 (Red
Hat 14.2.1-3) + glibc-2.39-22.fc40.x86_64
Date: Thu, 10 Oct 2024 18:20:23 +0200
There were a few include cleanup commits, like:
https://mail-index.netbsd.org/source-changes/2024/09/16/msg153356.html
https://mail-index.netbsd.org/source-changes/2024/09/16/msg153357.html
https://mail-index.netbsd.org/source-changes/2024/09/16/msg153358.html
and a few changes to date + sed:
https://mail-index.netbsd.org/source-changes/2024/09/17/msg153360.html
https://mail-index.netbsd.org/source-changes/2024/09/17/msg153361.html
https://mail-index.netbsd.org/source-changes/2024/09/17/msg153362.html
https://mail-index.netbsd.org/source-changes/2024/09/17/msg153363.html
but I haven't tested or checked if that was all.
Martin
From: Andrew Cagney <andrew.cagney@gmail.com>
To: gnats-bugs@netbsd.org
Cc: toolchain-manager@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: toolchain/58737: building against gcc (GCC) 14.2.1 20240912 (Red
Hat 14.2.1-3) + glibc-2.39-22.fc40.x86_64
Date: Thu, 10 Oct 2024 12:26:24 -0400
Which commit? Ah, thanks, never mind! Testing.
On Thu, 10 Oct 2024 at 12:15, Martin Husemann via gnats
<gnats-admin@netbsd.org> wrote:
>
> The following reply was made to PR toolchain/58737; it has been noted by GNATS.
>
> From: Martin Husemann <martin@duskware.de>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: toolchain/58737: building against gcc (GCC) 14.2.1 20240912 (Red
> Hat 14.2.1-3) + glibc-2.39-22.fc40.x86_64
> Date: Thu, 10 Oct 2024 18:09:55 +0200
>
> This has been fixed in HEAD, needs pullups.
>
> Martin
>
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.