NetBSD Problem Report #55515
From gson@gson.org Fri Jul 24 11:03:06 2020
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 49D6F1A9213
for <gnats-bugs@gnats.NetBSD.org>; Fri, 24 Jul 2020 11:03:06 +0000 (UTC)
Message-Id: <20200724110302.666E3253EDD@guava.gson.org>
Date: Fri, 24 Jul 2020 14:03:02 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: config -x appends strange lines
X-Send-Pr-Version: 3.95
>Number: 55515
>Category: toolchain
>Synopsis: config -x appends strange lines
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 24 11:05:00 +0000 2020
>Last-Modified: Sat May 14 20:12:56 +0000 2022
>Originator: Andreas Gustafsson
>Release: NetBSD-current
>Organization:
>Environment:
System: NetBSD
Architecture: earmv7hf
Machine: evbarm
>Description:
Booting an evbarm-aarch64 image in qemu and running "config -x", the
output ends with the expected
### (end include "dev/usb/usbdevices.config")
followed by some unexpected lines:
ARU_MBOX_OWNER 0x%x
ARU_MBOX_OWNER 0x%x
ARU_SMI_INTR 0x%x
ARU_MBOX_DATA_OUT 0x%x
ARU_MBOX_CMD 0x%x
REG: %08x
With evbarm-earmv7hf, no actual kernel configuration is printed,
presumably because "options INCLUDE_CONFIG_FILE" is disabled, but
similar strange lines containing 0x%x format strings are.
This does not happen on amd64.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-evbarm/55515: config -x appends strange lines
Date: Fri, 24 Jul 2020 16:01:29 +0300
config(1) naively looks for _CFG_ and strips it.
$ strings -a sys/arch/evbarm/compile/.../netbsd | grep _CFG_
XUSB_CFG_ARU_MBOX_OWNER 0x%x
timeout, XUSB_CFG_ARU_MBOX_OWNER 0x%x
XUSB_CFG_ARU_SMI_INTR 0x%x
XUSB_CFG_ARU_MBOX_DATA_OUT 0x%x
XUSB_CFG_ARU_MBOX_CMD 0x%x
-uwe
Responsible-Changed-From-To: port-evbarm-maintainer->toolchain-manager
Responsible-Changed-By: jmcneill@NetBSD.org
Responsible-Changed-When: Sat, 14 May 2022 20:12:56 +0000
Responsible-Changed-Why:
Toolchain issue.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.