NetBSD Problem Report #57455

From paul@whooppee.com  Mon Jun  5 20:08:38 2023
Return-Path: <paul@whooppee.com>
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 22AAD1A9241
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  5 Jun 2023 20:08:38 +0000 (UTC)
Message-Id: <20230605200835.52DAD999C5@speedy.whooppee.com>
Date: Mon,  5 Jun 2023 13:08:35 -0700 (PDT)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@NetBSD.org
Subject: Build error for MKDEBUG{,LIB,KERNEL}
X-Send-Pr-Version: 3.95

>Number:         57455
>Category:       bin
>Synopsis:       Build fails for MKDEBUG{,LIB,KERNEL}
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 05 20:10:00 +0000 2023
>Closed-Date:    Sat Jun 10 07:37:50 +0000 2023
>Last-Modified:  Sat Jun 10 07:37:50 +0000 2023
>Originator:     Paul Goyette
>Release:        NetBSD 10.99.4
>Organization:
+--------------------+--------------------------+----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul@whooppee.com    |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette@netbsd.org  |
| & Network Engineer |                          | pgoyette99@gmail.com |
+--------------------+--------------------------+----------------------+
>Environment:


System: NetBSD speedy.whooppee.com 10.99.4 NetBSD 10.99.4 (SPEEDY 2023-05-18 17:21:01 UTC) #0: Fri May 19 02:33:15 UTC 2023 paul@speedy.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
	When building with MKDEBUG{,LIB,DEBUG} you get 10 extra files
	in checkflist

=======  10 extra files in DESTDIR  =========
Files in DESTDIR but missing from flist.
File is obsolete or flist is out of date ?
------------------------------------------
./usr/tests/libexec/ld.elf_so/libh_abuse_dynamic_g.a
./usr/tests/libexec/ld.elf_so/libh_abuse_static_g.a
./usr/tests/libexec/ld.elf_so/libh_def_dynamic_g.a
./usr/tests/libexec/ld.elf_so/libh_def_static_g.a
./usr/tests/libexec/ld.elf_so/libh_onlyctor_dynamic_g.a
./usr/tests/libexec/ld.elf_so/libh_onlydef_g.a
./usr/tests/libexec/ld.elf_so/libh_onlyuse_dynamic_g.a
./usr/tests/libexec/ld.elf_so/libh_onlyuse_static_g.a
./usr/tests/libexec/ld.elf_so/libh_use_dynamic_g.a
./usr/tests/libexec/ld.elf_so/libh_use_static_g.a
=========  end of 10 extra files  ===========


>How-To-Repeat:
	see above
>Fix:
not sure, but here is relevant discussion on IRC/ICB

<Riastradh> looks like it should be NODEBUGLIB= # defined
<Riastradh> or LIBISPRIVATE= # defined
<Riastradh> lukem: halp ^
<PaulG> ok i will try NODEBUGLIB
* _fox_ (fox@fox.trouble.is) has joined
<Riastradh> except it has to be defined before including bsd.own.mk, looks like
<Riastradh> so, maybe set LIBISPRIVATE=yes instead of all the MKFOO=no lines
<PaulG> ah - sounds like complicated make-goo I better leave it for you and lukem
<phone> yes, must be defined before
<PaulG> so set LIBISPRIVATE ?  in all the helper*/Makefile ?
<joerg> LIBISPRIVATE doesn't allow shared libs?
<Riastradh> PaulG: maybe, not paying enough attention right now to say for sure
<PaulG> oh.
<Riastradh> point is, only .so is relevant, no .a

some additional discussion on whether the .a files are ever useful.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: gnats-admin->bin-bug-people
Responsible-Changed-By: pgoyette@NetBSD.org
Responsible-Changed-When: Mon, 05 Jun 2023 20:51:54 +0000
Responsible-Changed-Why:
assign to category owner


From: "Paul Goyette" <pgoyette@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57455 CVS commit: src/distrib/sets/lists/debug
Date: Tue, 6 Jun 2023 06:51:00 +0000

 Module Name:	src
 Committed By:	pgoyette
 Date:		Tue Jun  6 06:51:00 UTC 2023

 Modified Files:
 	src/distrib/sets/lists/debug: mi

 Log Message:
 Fix MKDEBUGLIB build by adding these installed files to the debug
 set list.

 XXX
 One could argue that these files are not of any use, so why install
 them?  I don't have a good argument either way, and this is (for
 now) a simple work-around for PR bin/57455   Please feel free to
 commit a different fix to avoid installing these files at all.


 To generate a diff of this commit:
 cvs rdiff -u -r1.401 -r1.402 src/distrib/sets/lists/debug/mi

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Sat, 10 Jun 2023 07:37:50 +0000
State-Changed-Why:
Seems fixed after martin@ commit after your commit


>Unformatted:

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