NetBSD Problem Report #55757

From gson@gson.org  Tue Oct 27 10:06:37 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 4E9531A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 27 Oct 2020 10:06:37 +0000 (UTC)
Message-Id: <20201027100633.F2F6A253EDE@guava.gson.org>
Date: Tue, 27 Oct 2020 12:06:33 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: Builds fail to clean up temporary files
X-Send-Pr-Version: 3.95

>Number:         55757
>Category:       misc
>Synopsis:       Builds fail to clean up temporary files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 27 10:10:00 +0000 2020
>Last-Modified:  Thu Oct 29 16:55:01 +0000 2020
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current (target), NetBSD-9 (host)
>Organization:
>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

Both the TNF testbed and my own are accumulating new files in /tmp
every time they do a build.  For example, on my testbed, after the
latest amd64 release build, which was successful, the following files
remain in /tmp:

  -rw-------    1 gson  wheel     126453 Oct 27 01:02 ccpGAqy9.ld
  -rw-------    1 gson  wheel          0 Oct 27 01:02 ccdid22o.le
  -rw-------    1 gson  wheel          0 Oct 27 01:02 ccHFelWv.cdtor.o
  -rw-------    1 gson  wheel          0 Oct 27 01:02 ccCBtXvF.cdtor.c

The build command was one with TMPDIR=/tmp; the full build command was:

   build.sh -j 24 -D /tmp/build/2020.10.26.21.34.10-amd64-baremetal/destdir -R /bracket/amd64-baremetal/test/2020.10.26.21.34.10/release -T /tmp/build/2020.10.26.21.34.10-amd64-baremetal/tools -O /tmp/build/2020.10.26.21.34.10-amd64-baremetal/obj -m amd64 -V TMPDIR=/tmp -x -U release sourcesets

>How-To-Repeat:

>Fix:

>Audit-Trail:
From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: misc/55757: Builds fail to clean up temporary files
Date: Tue, 27 Oct 2020 21:52:24 +0200

 This is an old problem - it also happens with sources from
 2016.12.10.09.51.43, for example.  I can't easily test versions
 much older than that because they tend to no longer build on 9.0.
 -- 
 Andreas Gustafsson, gson@gson.org

From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@netbsd.org
Cc: misc-bug-people@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org, gson@gson.org (Andreas Gustafsson)
Subject: re: misc/55757: Builds fail to clean up temporary files
Date: Wed, 28 Oct 2020 14:45:57 +1100

 > -rw-------    1 gson  wheel     126453 Oct 27 01:02 ccpGAqy9.ld
 > -rw-------    1 gson  wheel          0 Oct 27 01:02 ccdid22o.le
 > -rw-------    1 gson  wheel          0 Oct 27 01:02 ccHFelWv.cdtor.o
 > -rw-------    1 gson  wheel          0 Oct 27 01:02 ccCBtXvF.cdtor.c

 can you determine the phase of build that 1:02 am was?

 these are compiler temp files, but not the normal ones.
 this is most likely a bug in GCC, but i don't know what
 options generate those files off hand.

 thanks.


 .mrg.

From: Andreas Gustafsson <gson@gson.org>
To: matthew green <mrg@eterna.com.au>
Cc: gnats-bugs@netbsd.org
Subject: re: misc/55757: Builds fail to clean up temporary files
Date: Thu, 29 Oct 2020 09:53:25 +0200

 matthew green wrote:
 > can you determine the phase of build that 1:02 am was?

 Too late for that build, but I ran a new one with the output piped
 through the timestamping tool "ts" from pkgsrc/misc/moreutils, and
 with -j 1 to reduce ambiguity.  This left the following files in /tmp:

 -rw-------    1 gson  wheel     119653 Oct 29 02:01:34 2020 ccF9Yr0e.ld
 -rw-------    1 gson  wheel          0 Oct 29 02:01:34 2020 ccwyu7pT.le
 -rw-------    1 gson  wheel          0 Oct 29 02:01:34 2020 cct7U4rZ.cdtor.o
 -rw-------    1 gson  wheel          0 Oct 29 02:01:34 2020 cc5bxOgO.cdtor.c

 There was more than 30 kB of log output during the second when the
 files in /tmp were created, so I'm not including it here, but it
 was building biosboot. The full build log is at

   https://www.gson.org/netbsd/bugs/build-tmpfile/buildlog.gz

 There may also be some clues in the contents of the .ld file, which
 are human-readable text:

   https://www.gson.org/netbsd/bugs/build-tmpfile/ccF9Yr0e.ld

 -- 
 Andreas Gustafsson, gson@gson.org

From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/55757: Builds fail to clean up temporary files
Date: Thu, 29 Oct 2020 11:51:36 -0500 (CDT)

 I just checked "/tmp" on my build hosts and indeed the leftover files
 present, namely the "*.ld" files, indicate "biosboot" as the target
 being built.  The other files are from about the same time.  In
 timestamp order they are:

 netbsd-9/i386:  cc*.c, cc*.o, cc*.le, cc*.ld

 -current/{amd64,i386}:  cc*.cdtor.c, cc*.cdtor.o, cc*.le, cc*.ld

 All except the "cc*.ld" files are zero length.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

NetBSD Home
NetBSD PR Database Search

(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.