Subject: cc should use /tmp rather than /var/tmp
To: None <,>
From: FUKAUMI Naoki <>
List: current-users
Date: 09/11/2001 19:59:37
# I don't subscribe current-users and tech-toolchain MLs
# Plz reply with cc me

I found cc uses /var/tmp.

# on NetBSD/sparc64 2001/8/21 snapshot

PR bin/4224 and bin/5700 were similer problems.

Sorry if it is already fixed.

% rm test.c
% touch test.c
% which cc
% cc -v test.c
Using builtin specs.
gcc version 2.95.3 20010315 (release)
 /usr/libexec/cpp0 -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__sparc__ -D__N
etBSD__ -D__ELF__ -D__sparc__ -D__NetBSD__ -D__ELF__ -Asystem(unix) -Asystem(Net
BSD) -D__sparc_v9__ -D__SIZE_TYPE__=long unsigned int -D__PTRDIFF_TYPE__=long in
t -D__arch64__ -Acpu(sparc64) -Amachine(sparc64) -D__sparc64__ test.c /var/tmp/c
GNU CPP version 2.95.3 20010315 (release) (sparc64-netbsd)
#include "..." search starts here:
#include <...> search starts here:
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/libexec/cc1 /var/tmp/cceSIqdD.i -quiet -dumpbase test.c -version -o /var/t
GNU C version 2.95.3 20010315 (release) (sparc64-netbsd) compiled by GNU C versi
on 2.95.3 20010315 (release).
 as -xarch=v8plus -64 -o /var/tmp/ccIjZoo4.o /var/tmp/cc0qvaaj.s
 ld -m elf64_sparc -dy -dc -dp -e __start -dynamic-linker /usr/libexec/ld.elf_so
 /usr/lib/crt0.o /usr/lib/crtbegin.o /var/tmp/ccIjZoo4.o -lgcc -lc -lgcc /usr/li
/usr/lib/crt0.o: In function `___start':
/usr/lib/crt0.o(.text+0x13c): undefined reference to `main'