NetBSD Problem Report #58959

From www@netbsd.org  Sat Jan  4 07:14:04 2025
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 E08611A923A
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  4 Jan 2025 07:14:03 +0000 (UTC)
Message-Id: <20250104071402.F418D1A923B@mollari.NetBSD.org>
Date: Sat,  4 Jan 2025 07:14:02 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: tools pax: implicit declaration of ffs
X-Send-Pr-Version: www-1.0

>Number:         58959
>Category:       toolchain
>Synopsis:       tools pax: implicit declaration of ffs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 04 07:15:00 +0000 2025
>Originator:     Taylor R Campbell
>Release:        10/9
>Organization:
The PaxBSD Ffoundations
>Environment:
>Description:
Building netbsd-10 on a netbsd-9 userland gives this warning:

/usr/src/10/tools/pax/../../bin/pax/options.c: In function 'printflg':
/usr/src/10/tools/pax/../../bin/pax/options.c:1890:16: warning: implicit declaration of function 'ffs' [-Wimplicit-function-declaration]
  while ((nxt = ffs(flg)) != 0) {
                ^~~

The build succeeds but the warning is alarming, may become a compiler error later, and could risk miscompilation.
>How-To-Repeat:
build netbsd-10/aarch64 on a netbsd-9/amd64 userland
>Fix:
Yes, please!

NetBSD Home
NetBSD PR Database Search

(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-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.