NetBSD Problem Report #58178

From www@netbsd.org  Sat Apr 20 18:15:21 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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 7A3891A923E
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 20 Apr 2024 18:15:21 +0000 (UTC)
Message-Id: <20240420161932.40D6B1A923C@mollari.NetBSD.org>
Date: Sat, 20 Apr 2024 16:19:32 +0000 (UTC)
From: hashikaw@mail.ru
Reply-To: hashikaw@mail.ru
To: gnats-bugs@NetBSD.org
Subject: While building x11 with build.sh with use_tools, make use nbhost-mkdep instead of nbmkdep
X-Send-Pr-Version: www-1.0

>Number:         58178
>Category:       xsrc
>Synopsis:       While building x11 with build.sh with use_tools, make use nbhost-mkdep instead of nbmkdep
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 20 18:20:00 +0000 2024
>Last-Modified:  Mon Apr 22 11:15:02 +0000 2024
>Originator:     Kouichi Hashikawa
>Release:        NetBSD-current, 10
>Organization:
>Environment:
>Description:
When building NetBSD-10's x11 with build.sh with use_tools,
nbhost-mkdep is used, then generate broken .d files.

dependall ===> external/mit/xorg/tools/fc-cache
nbmake[8]: /usr/obj/buildobs/obj/usr/obj/src/external/mit/xorg/tools/fc-cache/.depend, 1906: ignoring stale .depend for fcobjshash.gperf
#    create  fc-cache/fcobjs.d
/usr/obj/buildobs/tools/bin/nbhost-mkdep -f fcobjs.d.tmp  --      -DFONTCONFIG_PATH='"/usr/obj/buildobs/dest/etc/X11/fonts"
...
/usr/obj/xsrc/external/mit/fontconfig/dist/src/fcobjs.c &&  mv -f fcobjs.d.tmp fcobjs.d

On this stage, should we use nbmkdep (on tools)?

>How-To-Repeat:
always (but found the problem, sometimes).
>Fix:

>Audit-Trail:
From: matthew green <mrg@eterna23.net>
To: gnats-bugs@netbsd.org, hashikaw@mail.ru
Cc: xsrc-manager@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org
Subject: re: xsrc/58178: While building x11 with build.sh with use_tools, make use nbhost-mkdep instead of nbmkdep
Date: Mon, 22 Apr 2024 11:31:10 +1000

 hi Kouichi,


 > >Description:
 > When building NetBSD-10's x11 with build.sh with use_tools,
 > nbhost-mkdep is used, then generate broken .d files.
 >
 > dependall =3D=3D=3D> external/mit/xorg/tools/fc-cache
 > nbmake[8]: /usr/obj/buildobs/obj/usr/obj/src/external/mit/xorg/tools/fc-=
 cache/.depend, 1906: ignoring stale .depend for fcobjshash.gperf
 > #    create  fc-cache/fcobjs.d
 > /usr/obj/buildobs/tools/bin/nbhost-mkdep -f fcobjs.d.tmp  --      -DFONT=
 CONFIG_PATH=3D'"/usr/obj/buildobs/dest/etc/X11/fonts"
 > ...
 > /usr/obj/xsrc/external/mit/fontconfig/dist/src/fcobjs.c &&  mv -f fcobjs=
 .d.tmp fcobjs.d
 >
 > On this stage, should we use nbmkdep (on tools)?

 what do you think the problem is?

 this is a host tool, so we use the host mkdep.


 .mrg.

From: Kouichi Hashikawa <hashikaw@mail.ru>
To: gnats-bugs@netbsd.org
Cc: xsrc-manager@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: xsrc/58178: While building x11 with build.sh with use_tools, make use nbhost-mkdep instead of nbmkdep
Date: Mon, 22 Apr 2024 18:29:57 +0900

 > what do you think the problem is?
 > this is a host tool, so we use the host > mkdep.

 Thank you for asking my question.

 I check my build log,=20

 do-x11 =3D=3D=3D> .
 all =3D=3D=3D> external/mit/xorg/tools
 all =3D=3D=3D> external/mit/xorg/tools/bdftopcf
 all =3D=3D=3D> external/mit/xorg/tools/fc-cache

 on this phase, make use nbmkdep, and after,=20

 do-build =3D=3D=3D> .
 dependall =3D=3D=3D> .        (with: BUILD_tools=3Dno BUILD_lib=3Dno)
 ...
 dependall =3D=3D=3D> external/mit/xorg/tools/fc-cache
 ...
 #    create  fc-cache/fcobjs.d
 /usr/obj/c/buildobs/tools/bin/nbhost-mkdep -f fcobjs.d.tmp  -- ...=20
 /usr/obj/c/xsrc/external/mit/fontconfig/dist/src/fcobjs.c

 make use nbhost-mkdep. This error message is from .d file generated by=20
 nbhost-mkdep.

 nbmake[7]:=20
 /usr/obj/c/buildobs/obj/usr/obj/c/src/external/mit/xorg/tools/fc-cache/.depe=
 nd,
 1906: ignoring stale .depend for fcobjshash.gperf

 .depend:
 1906: fcobjs.lo fcobjs.ln fcobjs.d: fcobjshash.gperf

 The problem is, I think...
 o diffrent tool is used at target all or dependall.
 o nbhost-mkdep is shell script, and use platform's awk (please refer=20
 xsrc/58104).
 o the result of nbhost-mkdep and nbmkdep is diffrent.

 --=20
 Kouichi Hashikawa=

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