NetBSD Problem Report #47273
From campbell@mumble.net Sun Dec 2 00:22:22 2012
Return-Path: <campbell@mumble.net>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id B8D4963DFC7
for <gnats-bugs@gnats.NetBSD.org>; Sun, 2 Dec 2012 00:22:21 +0000 (UTC)
Message-Id: <20121202002118.AC3F2604E1@jupiter.mumble.net>
Date: Sun, 2 Dec 2012 00:21:18 +0000 (UTC)
From: Taylor R Campbell <campbell+netbsd@mumble.net>
Reply-To: Taylor R Campbell <campbell+netbsd@mumble.net>
To: gnats-bugs@gnats.NetBSD.org
Subject: toolchain doesn't respect TMPDIR and uses stupid default
X-Send-Pr-Version: 3.95
>Number: 47273
>Category: toolchain
>Synopsis: toolchain doesn't respect TMPDIR and uses stupid default
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 02 00:25:00 +0000 2012
>Closed-Date: Sun May 15 01:19:35 +0000 2022
>Last-Modified: Sun May 15 01:19:35 +0000 2022
>Originator: Taylor R Campbell <campbell+netbsd@mumble.net>
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
`env TMPDIR=/tmp/lose ./build.sh ...' doesn't make GCC (and
maybe other tools too) use /tmp/lose for its temporary
directories; instead it stupidly uses /var/tmp, which is for
temporary storage that is supposed to persist across a reboot.
>How-To-Repeat:
Mount a synchronous ffs on /var so that it is reliable but
slow. Mount tmpfs on /tmp so that it is transient but fast.
Run build.sh and observe that the C compiler dumps the
ccXYZ123PQR.s files in /var/tmp instead of /tmp by default.
Run `env TMPDIR=/tmp/lose ./build.sh ...' and observe that the
C compiler *still* dumps crap in /var/tmp. Throw up your hands
in frustration and break /var/tmp by mounting a tmpfs there so
that builds will finish in reasonable amounts of time.
>Fix:
Yes, please!
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Sun, 15 May 2022 01:19:35 +0000
State-Changed-Why:
i fixed this a few years ago. default is /tmp and TMPDIR works.
>Unformatted:
(Contact us)
$NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.